Step 1 : Configure ip address and routing protocol.
ISP
Conf t
interface Loopback1
ip address 8.8.8.8 255.255.255.0
!
interface FastEthernet0/0
ip address 11.1.1.4 255.255.255.0
no shudown
!
interface FastEthernet1/0
ip address 22.1.1.4 255.255.255.0
no shutdown
!
interface FastEthernet1/1
ip address 33.1.1.4 255.255.255.0
no shutdown
!
router eigrp 100
network 11.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
network 33.1.1.0 0.0.0.255
exit
R1
Conf t
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
!
interface FastEthernet1/0
ip address 11.1.1.1 255.255.255.0
no shutdown
!
router eigrp 100
network 192.168.1.0
network 11.1.1.0 0.0.0.255
passive-interface FastEthernet0/0
!
R2
Conf t
interface FastEthernet0/0
ip address 22.1.1.2 255.255.255.0
no shutdown
!
interface FastEthernet1/0
ip address 192.168.1.2 255.255.255.0
no shutdown
!
router eigrp 100
network 192.168.1.0
network 22.1.1.0 0.0.0.255
passive-interface FastEthernet1/0
!
R3
conf
interface FastEthernet0/0
ip address 33.1.1.3 255.255.255.0
no shutdown
!
interface FastEthernet1/0
ip address 192.168.1.3 255.255.255.0
no shutdown
!
router eigrp 100
network 192.168.1.0
network 33.1.1.0 0.0.0.255
passive-interface FastEthernet1/0
!
Step 2 : Configure VRRP
VRRP ENABLE
R1
R1(config)#int fa0/0
R1(config-if)#vrrp 1 ip 192.168.1.100
!
R2
R1(config)#int fa1/0
R1(config-if)#vrrp 1 ip 192.168.1.100
!
R3
R1(config)#int fa1/0
R1(config-if)#vrrp 1 ip 192.168.1.100
!
R1#show vrrp
FastEthernet0/0 – Group 1
State is Master
Virtual IP address is 192.168.1.100
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 120
Track object 10 state Up decrement 30
Master Router is 192.168.1.1 (local), priority is 120
Master Advertisement interval is 1.000 sec
Master Down interval is 3.531 sec
R2#show vrrp
FastEthernet1/0 – Group 1
State is Backup
Virtual IP address is 192.168.1.100
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 110
Master Router is 192.168.1.1, priority is 120
Master Advertisement interval is 1.000 sec
Master Down interval is 3.570 sec (expires in 3.234 sec)
TRACK ENABLE
R1(config)#track 10 interface fastEthernet 0/0 line-protocol
R1(config-track)#delay down 2
R1(config-track)#delay up 10
!
R1#sh track
Track 10
Interface FastEthernet0/0 line-protocol
Line protocol is Up
2 changes, last change 00:26:21
Delay up 10 secs, down 2 secs
Tracked by:
VRRP FastEthernet0/0 1
IMPLEMENT TRACK ON INTERFACE
R1(config)#track 10 interface fastEthernet 1/0 line-protocol
R1(config-track)#delay down 2
R1(config-track)#delay up 10
!
SHOW VRRP
R1#show vrrp
FastEthernet0/0 – Group 1
State is Master
Virtual IP address is 192.168.1.100
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 120
Track object 10 state Up decrement 30
Master Router is 192.168.1.1 (local), priority is 120
Master Advertisement interval is 1.000 sec
Master Down interval is 3.531 sec
WAN INTERFACE GET DOWN
R1(config)#int fa1/0
R1(config-if)#shutdown
R1#show vrrp
FastEthernet0/0 – Group 1
State is Backup
Virtual IP address is 192.168.1.100
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 90 (cfgd 120)
Track object 10 state Down decrement 30
Master Router is 192.168.1.2, priority is 110
Master Advertisement interval is 1.000 sec
Master Down interval is 3.531 sec (expires in 3.247 sec)
R1#show track
Track 10
Interface FastEthernet1/0 line-protocol
Line protocol is Down (hw admin-down)
7 changes, last change 00:00:05
Delay up 10 secs, down 2 secs
Tracked by:
VRRP FastEthernet0/0 1
WAN INTERFACE COME UP
R1#show track
Track 10
Interface FastEthernet1/0 line-protocol
Line protocol is Up
8 changes, last change 00:00:08
Delay up 10 secs, down 2 secs
Tracked by:
VRRP FastEthernet0/0 1
R1#show vrrp
FastEthernet0/0 – Group 1
State is Master
Virtual IP address is 192.168.1.100
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 120
Track object 10 state Up decrement 30
Master Router is 192.168.1.1 (local), priority is 120
Master Advertisement interval is 1.000 sec
MASTER DOWN INTERVAL IS 3.531 SEC
Step 3 : Perform the testing
PING
PC-1#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8,
timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 44/81/144 ms
CCIE Certified experts like Law Sah and Punit Pandey bring deep knowledge in CCIE Enterprise, Security, and Data Center tracks. Their expertise helps professionals master advanced networking concepts and achieve success in global IT infrastructure careers.
About The Author