2016年2月3日 星期三

HSRP track on ethernet

hsrp track on ethernet



==================================
R1#
R1#sh run
version 12.4
!
hostname R1
!
!
ip tcp synwait-time 5
!
track 1 rtr 1
!
interface FastEthernet0/0
 ip address 192.168.1.250 255.255.255.0
 duplex auto
 speed auto
 standby 1 ip 192.168.1.254
 standby 1 priority 110
 standby 1 preempt
 standby 1 authentication md5 key-string 123
 standby 1 track 1 decrement 50
!
interface FastEthernet0/1
 ip address 10.1.1.1 255.255.255.252
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 10.1.1.0 0.0.0.3 area 0.0.0.0
 network 192.168.1.0 0.0.0.255 area 0.0.0.0
!
!
ip sla 1
 icmp-echo 10.1.1.2 source-interface FastEthernet0/1
 frequency 5
ip sla schedule 1 life forever start-time now
!
webvpn cef
!
end
          

R1#   
==================================




==================================
R2#
R2#sh run
Building configuration...
!
hostname R2
!
!
track 1 rtr 1
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.1.251 255.255.255.0
 duplex auto
 speed auto
 standby 1 ip 192.168.1.254
 standby 1 preempt
 standby 1 authentication md5 key-string 123
 standby 1 track 1 decrement 50
!
interface FastEthernet0/1
 ip address 10.1.2.1 255.255.255.252
 duplex auto
 speed auto
!
!
router ospf 1
 log-adjacency-changes
 network 10.1.2.0 0.0.0.3 area 0.0.0.0
 network 192.168.1.0 0.0.0.255 area 0.0.0.0
!
!
ip sla 1
 icmp-echo 10.1.2.2 source-interface FastEthernet0/1
 frequency 5
ip sla schedule 1 life forever start-time now
!
!
end

R2#   
==================================




==================================

R3#sh run
!
hostname R3
!
track 1 rtr 1
!
interface FastEthernet0/0
 ip address 172.22.0.250 255.255.255.0
 duplex auto
 speed auto
 standby 1 ip 172.22.0.254
 standby 1 priority 110
 standby 1 preempt
 standby 1 authentication md5 key-string 123
 standby 1 track 1 decrement 50
!
interface FastEthernet0/1
 ip address 10.1.1.2 255.255.255.252
 shutdown
 duplex auto
 speed auto
!
!
router ospf 1
 log-adjacency-changes
 network 10.1.1.0 0.0.0.3 area 0.0.0.0
 network 172.22.0.0 0.0.0.255 area 0.0.0.0
!         
!
ip sla 1
 icmp-echo 10.1.1.1 source-interface FastEthernet0/1
 frequency 5
ip sla schedule 1 life forever start-time now
!
end       


R3#   


==================================



==================================


R4#sh  run
!
hostname R4
!
track 1 rtr 1
!
interface FastEthernet0/0
 ip address 172.22.0.251 255.255.255.0
 duplex auto
 speed auto
 standby 1 ip 172.22.0.254
 standby 1 preempt
 standby 1 authentication md5 key-string 123
!
interface FastEthernet0/1
 ip address 10.1.2.2 255.255.255.252
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 10.1.2.0 0.0.0.3 area 0.0.0.0
 network 172.22.0.0 0.0.0.255 area 0.0.0.0
!
!         
ip sla 1
 icmp-echo 10.1.2.1 source-interface FastEthernet0/1
 frequency 5
ip sla schedule 1 life forever start-time now
!
end


R4# 

==================================




















沒有留言:

張貼留言