cisco HSRP 實際範例

R1#show run

Building configuration...

Current configuration : 1133 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r3

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

!

!

ip cef

!

!

!

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

interface Ethernet0/0

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/1

 ip address 10.10.10.2 255.255.255.0

 full-duplex

 standby priority 200

 standby track Ethernet0/2 100

 standby 1 ip 10.10.10.254

 standby 1 priority 200

 standby 1 preempt

!

interface Ethernet0/2

 ip address 172.16.10.2 255.255.255.0

 full-duplex

 standby 2 ip 172.16.10.254

 standby 2 priority 150

 standby 2 preempt

!

interface Ethernet0/3

 no ip address

 shutdown

 half-duplex

!

interface Serial1/0

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/1

 no ip address

 shutdown 

 serial restart-delay 0

!

interface Serial1/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/3

 no ip address

 shutdown

 serial restart-delay 0

!

ip http server

ip classless

!

!

!

!

!

!

!

!

!         

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end
 
 
 
 
 
 
 
 
 

 

R2#show 

*Mar  1 00:37:13.647: %SYS-5-CONFIG_I: Configured from console by console

r2#show run

Building configuration...

Current configuration : 1111 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r2

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

!

!

ip cef

!

!

!

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

interface Ethernet0/0

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/1

 ip address 172.16.10.1 255.255.255.0

 full-duplex

 standby track Ethernet0/2 100

 standby 2 ip 172.16.10.254

 standby 2 priority 200

 standby 2 preempt

!

interface Ethernet0/2

 ip address 10.10.10.1 255.255.255.0

 full-duplex

 standby 1 ip 10.10.10.254

 standby 1 priority 150

 standby 1 preempt

!

interface Ethernet0/3

 no ip address

 shutdown

 half-duplex

!

interface Serial1/0

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/1

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/3

 no ip address

 shutdown

 serial restart-delay 0

!

ip http server

ip classless

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章