Now, let’s make VRRP first in R1 and R2
R1#
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
vrrp 1 ip 12.12.12.12
vrrp 1 priority 110
vrrp 1 authentication md5 key-string cisco
!
interface Serial0/0
ip address 13.13.13.1 255.255.255.0
!
router eigrp 1
network 0.0.0.0
no auto-summary
R2#
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
vrrp 1 ip 12.12.12.12
vrrp 1 authentication md5 key-string cisco
!
interface Serial0/0
ip address 23.23.23.2 255.255.255.0
!
router eigrp 1
network 0.0.0.0
no auto-summary
R3#
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 13.13.13.3 255.255.255.0
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
ip address 23.23.23.3 255.255.255.0
clock rate 2000000
!
router eigrp 1
network 0.0.0.0
no auto-summary
Check vrrp before add ip sla
R1(config)#do sh vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/0 1 110 3570 Y Master 12.12.12.1 12.12.12.12
R2#sh vrrp bri
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/0 1 100 3609 Y Backup 12.12.12.1 12.12.12.12
Let’s make ip sla
R1#
ip sla monitor 1
type echo protocol ipIcmpEcho 3.3.3.3
timeout 2000
frequency 3
!
ip sla monitor schedule 1 start-time now
track 1 rtr 1
Let’s down loopback 0 in R3
R3(config)#int lo0
R3(config-if)#shut
Wait ...
R1(config-track)#
*Mar 1 00:10:33.107: %TRACKING-5-STATE: 1 rtr 1 state Up->Down
R1(config-track)#
*Mar 1 00:10:36.499: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Master -> Backup
R1(config-track)#
R2#
*Mar 1 00:10:16.963: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup -> Master
R2#
Now check vrrp in R1 & R2
R1(config-track)#do sh vrrp bri
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/0 1 90 3570 Y Backup 12.12.12.2 12.12.12.12
R2#sh vrrp bri
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/0 1 100 3609 Y Master 12.12.12.2 12.12.12.12
No comments:
Post a Comment