Professional Documents
Culture Documents
Objectives
Internet
R1
10.0.0.1/16
Internet
R1 VIP: R2
10.0.0.1/16 10.0.0.3/16
10.0.0.2/16
Problems :
End host systems on a LAN are often configured to send packets to a
statically configured default router.
If this default router becomes unavailable, all the hosts that use it as
their first hop router become isolated on the network
Solution :
VRRP groups several physical routers into a VRRP virtual router, and
assigns a virtual IP and a MAC addresses to the virtual router,
The end devices use the VRRP virtual router address as their default
gateway.
VRRP (Multicast)
VRRP (Multicast)
IP:10.1.1.1
VRID : 6
PRI : 100 I have not
VIP : 10.1.1.254 Source IP Target IP Master received the
10.1.1.2 224.0.0.18 10.1.1.2 master packets
for a long period.
Choose me.
VRRP (Multicast)
IP:10.1.1.1
VRID: 6
PRI: 100
VIP:10.1.1.254 Source IP Target IP Master
10.1.1.2 224.0.0.18 10.1.1.2 We have the same priority.
Let’s check the IP address.
My IP address is greater
than yours, so choose me.
Master is IP:10.1.1.2
10.1.1.2. Source IP Target IP Master VRID: 6
10.1.1.1 224.0.0.18 10.1.1.2 PRI: 100
VIP: 10.1.1.254
VMAC:00005E000106
VRRP (Multicast)
IP:10.1.1.2
VRID: 6
PRI: 100
VIP: 10.1.1.254
VMAC:00005E000106
ARP
(Broadcast)
I am master.
Source MAC Target MAC Please record
00005E000106 FFFFFFFFFFFF down my MAC.
I am the IP
owner, so I must
be master. Source IP Target IP Master
10.1.1.1 224.0.0.18 10.1.1.1 IP:10.1.1.2
VRID: 6
PRI: 100
VIP: 10.1.1.1
VRRP (Multicast)
VRRP (Multicast)
IP:10.1.1.2
VRID: 6
PRI: 100
VIP: 10.1.1.254
VMAC: 00005E000106
IP:10.1.1.2
VRID : 6
PRI : 100
VIP : 10.1.1.254
VMAC:00005E000106
ARP
(Broadcast)
If the master owns the virtual MAC, it can transfer the data packets.
If the backup router has not received the protocol packets from the
master with a period, it performs the re-election.
40.1.1.0/24
30.1.1.0/24 20.1.1.0/24
R1 R2
Target MAC
00005E000106
Target IP : 40.1.1.1
G:10.1.1.254
00005e0006
© ZTE Corporation. All rights reserved
VRRP Working Process – Network Fault
Route Table
40.1.1.0/24
Dest Next-hop
40.1.1.0/24 10.1.1.1
G:10.1.1.254
00005e0006
The Master forwards the data packet and the backup does not
forward it.
VRRP Load
VRRP Monitoring Balancing
Interface Status
Actual Networking
Application of VRRP
The router with the highest priority becomes Master. Until now
the switchover between the master and backup router is
completed.
© ZTE Corporation. All rights reserved
VRRP Monitoring Interface Status (2)
Virtual IP : 10.0.0.1
VRRP Group1
Router A
Network
Switc Router C
h
Router B
VRRP group 1 monitors the port with red indicator on Router A. If the port is normal, Router A is
Master. If the port is in Down status, it decreases the priority of Router A, so that the priority of
Router A is lower than that of Router B, to perform the switchover between master and backup.
Router B
RouterA is the Master in backup group 1, and is the Backup in backup group 2.
RouterB is the Master in backup group 2, and is the Backup in backup group 1.
The VRRP protocol packet can be forwarded by the heartbeat line, instead of the interface
that configures the VRRP group.
If the VRRP group has configured the heartbeat line, configure the outgoing interface that
sends the packet as the heartbeat line interface. If the heartbeat line is not configured,
configure the outgoing interface as the interface that configures the VRRP group.
IP bearer
network
PE A PE B
Heartbeat line
Master Backup
link link
Router A
BFD
Switch Router C
fei-0/1/0/1
10.0.0.2/24 Router B
Is the IP address of virtual router the same as one router in the VRRP
router group?
Is the IP address owner the same as the master router? When are they
the same router, and when are they different routers?
After the IP address owner is down, which backup router will take over
its job of master router? At this time, if the master router is down again,
who will take charge of the new master router? If the IP address owner is
up again, will it take back its identity of master router? If the router in up
status is not the IP address owner, will it take back its identity of master
router?