55 lines
984 B
Plaintext
55 lines
984 B
Plaintext
enable
|
|
configure terminal
|
|
no ip domain-lookup
|
|
service password-encryption
|
|
hostname R6
|
|
enable secret class
|
|
line console 0
|
|
password cisco
|
|
login
|
|
logging synchronous
|
|
exit
|
|
line vty 0 4
|
|
password cisco
|
|
login
|
|
exit
|
|
banner motd #Unauthorized access prohibited#
|
|
interface g0/1.1
|
|
encapsulation dot1Q 1
|
|
ip address 192.168.0.1 255.255.255.0
|
|
interface g0/1.30
|
|
encapsulation dot1Q 30
|
|
ip address 192.168.3.1 255.255.255.0
|
|
interface g0/1.40
|
|
encapsulation dot1Q 40
|
|
ip address 192.168.4.1 255.255.255.0
|
|
exit
|
|
int g0/1
|
|
no shut
|
|
exit
|
|
int g0/1.1
|
|
standby version 2
|
|
standby 1 ip 192.168.0.254
|
|
standby 1 priority 100
|
|
standby 1 preempt
|
|
exit
|
|
int g0/1.30
|
|
standby version 2
|
|
standby 1 ip 192.168.3.254
|
|
standby 1 priority 100
|
|
standby 1 preempt
|
|
exit
|
|
int g0/1.40
|
|
standby version 2
|
|
standby 1 ip 192.168.4.254
|
|
standby 1 priority 100
|
|
standby 1 preempt
|
|
exit
|
|
router ospf 1
|
|
network 10.0.20.0 0.0.0.7 area 0
|
|
passive-interface g0/1.1
|
|
passive-interface g0/1.30
|
|
passive-interface g0/1.40
|
|
end
|
|
copy running-config startup-config
|