0% found this document useful (0 votes)
20 views6 pages

04.01.2021 - Script Laboratório

Uploaded by

cllausares
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views6 pages

04.01.2021 - Script Laboratório

Uploaded by

cllausares
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

SCRIPT-RT

enable
configure terminal
hostname RT
security password min-length 9
login block-for 120 attempts 3 within 60
line console 0
password ciscoccna
login
logging synchronous
exec-timeout 30
exit
line vty 0 4
password ciscoccna
login
logging synchronous
exec-timeout 30
exit
enable secret ciscoccna
service password-encryption
banner motd #ACESSO RESTRITO#
ip domain-name cisco.com
crypto key generate rsa
1024
ip ssh version 02
no ip ssh version 01
ip ssh authentication-retries 03
ip ssh time-out 30
username admin secret ciscoccna
line vty 0 4
transport input ssh
login local
exit
interface loopback 0
description ISP
ip address 209.165.200.225 255.255.255.252
exit
interface gigabitethernet 0/0
description LAN_01
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
interface gigabitethernet 0/1
description LINK_TO_SA
ip address 192.168.2.1 255.255.255.252
no shutdown
exit
interface gigabitethernet 0/2
description LAN_02
ip address 192.168.5.1 255.255.255.0
no shutdown
exit
ip route 192.168.3.0 255.255.255.0 192.168.2.2
ip route 192.168.4.0 255.255.255.0 192.168.2.2
exit
copy running-config startup-config
copy running-config tftp:
Address or name of remote host []? 192.168.1.254
Destination filename [RT-confg]?

Writing running-config....!!
[OK - 1643 bytes]

1643 bytes copied in 3.038 secs (540 bytes/sec)

SCRIPT-S1

enable
configure terminal
hostname S1
line console 0
password cisco
login
logging synchronous
exec-timeout 30
exit
line vty 0 15
password ccna
login
logging synchronous
exec-timeout 30
exit
enable secret cisco
service password-encryption
banner motd #RESTRICTED ACCESS#
ip domain-name cisco.com
crypto key generate rsa
1024
ip ssh version 02
no ip ssh version 01
ip ssh authentication-retries 03
ip ssh time-out 30
username admin secret ccna
line vty 0 15
transport input ssh
login local
exit
interface vlan 01
description MANAGEMENT
ip address 192.168.1.99 255.255.255.0
no shutdown
exit
ip default-gateway 192.168.1.1
exit
ip dhcp snooping //Ativando Rastreamento DHCP
ip dhcp snooping vlan 1 //Ativando Rastreamento DHCP para as VLANs
interface fastethernet 0/24 //Acessando a Interface FastEthernet 0/24
ip dhcp snooping trust - //Definindo confiabilidade DHCP para a Interface
exit
copy running-config startup-config

SCRIPT-SA

enable
configure terminal
hostname SA
line console 0
password cisco
login
logging synchronous
exec-timeout 30
exit
line vty 0 15
password ccna
login
logging synchronous
exec-timeout 30
exit
enable secret cisco
service password-encryption
banner motd #RESTRICTED ACCESS#
ip domain-name cisco.com
crypto key generate rsa
1024
ip ssh version 02
no ip ssh version 01
ip ssh authentication-retries 03
ip ssh time-out 30
username admin secret ccna
line vty 0 15
transport input ssh
login local
exit
ip routing
interface gigabitethernet 0/1
description LINK_TO_RT
no switchport
ip address 192.168.2.2 255.255.255.252
exit
vlan 03
name ADM
exit
vlan 04
name LAB
exit
interface range fastethernet 0/1-12
switchport mode acess
switchport access vlan 03
shutdown
exit
interface range fastethernet 0/13-24
switchport mode acess
switchport access vlan 04
shutdown
exit
interface vlan 03
description ADM
ip address 192.168.3.1 255.255.255.0
no shutdown
exit
interface vlan 04
description LAB
ip address 192.168.4.1 255.255.255.0
no shutdown
exit
ip dhcp excluded 192.168.3.1 192.168.3.10
ip dhcp pool ADM
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
exit
ip dhcp excluded 192.168.4.1 192.168.4.10
ip dhcp pool LAB
network 192.168.4.0 255.255.255.0
default-router 192.168.4.1
exit
ip route 192.168.1.0 255.255.255.0 192.168.2.1
ip route 192.168.5.0 255.255.255.0 192.168.2.1
exit
copy running-config startup-config

SCRIPT-SB

enable
configure terminal
hostname SB
line console 0
password cisco
login
logging synchronous
exec-timeout 30
exit
line vty 0 15
password ccna
login
logging synchronous
exec-timeout 30
exit
enable secret cisco
service password-encryption
banner motd #RESTRICTED ACCESS#
ip domain-name cisco.com
crypto key generate rsa
1024
ip ssh version 02
no ip ssh version 01
ip ssh authentication-retries 03
ip ssh time-out 30
username admin secret ccna
line vty 0 15
transport input ssh
login local
exit
vlan 03
name ADM
exit
vlan 04
name LAB
exit
interface range fastethernet 0/1-12
switchport mode acess
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 02
switchport port-security violation shutdown
switchport access vlan 03
exit
interface range fastethernet 0/13-24
switchport mode acess
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 02
switchport port-security violation shutdown
switchport access vlan 04
exit
interface gigabitethernet 0/1
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 03,04
exit
interface vlan 03
ip default-gateway 192.168.3.1
interface vlan 04
ip default-gateway 192.168.4.1
ip dhcp snooping //Ativando Rastreamento DHCP
ip dhcp snooping vlan 3,4 //Ativando Rastreamento DHCP para as VLANs
interface gigabitethernet 0/1 //Acessando a Interface Gigabitethernet 0/1
ip dhcp snooping trust - //Definindo confiabilidade DHCP para a Interface
exit
show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Interface Holdtime* Capability Platform Port ID
SA Gig 0/1 170 3560 Gig 0/2
* - Holdtime - Tempo de espera

show cdp neighbors detail


Device ID: SA
Entry address(es):
IP address : 192.168.3.1
Platform: cisco 3560, Capabilities:
Interface: GigabitEthernet0/1, Port ID (outgoing port): GigabitEthernet0/2
Holdtime: 153

Version :
Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version 12.2(37)SE1,
RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 05-Jul-07 22:22 by pt_team

advertisement version: 2
Duplex: full
copy running-config startup-config

SCRIPT-S2

enable
configure terminal
hostname S2
line console 0
password cisco
login
logging synchronous
exec-timeout 30
exit
line vty 0 15
password ccna
login
logging synchronous
exec-timeout 30
exit
enable secret cisco
service password-encryption
banner motd #RESTRICTED ACCESS#
ip domain-name cisco.com
crypto key generate rsa
1024
ip ssh version 02
no ip ssh version 01
ip ssh authentication-retries 03
ip ssh time-out 30
username admin secret ccna
line vty 0 15
transport input ssh
login local
exit
interface vlan 99
description MANAGEMENT
ip address 192.168.5.99 255.255.255.0
no shutdown
exit
ip default-gateway 192.168.5.1
exit
copy running-config startup-config

You might also like