VRRP Interface Tracking
Configuration Example
VRID
Admin Status
Config Pri
Preempt Mode
Auth Type
Virtual IP
Virtual MAC
Master IP
The above information indicates that if Switch A fails, Switch B becomes the
master, and packets sent from Host A to Host B are forwarded by Switch B.
Network requirements
Host A needs to access Host B on the Internet, using 202.38.160.111/24 as its
■
default gateway.
Switch A and Switch B belong to standby group 1 with the virtual IP address of
■
202.38.160.111.
If Switch A operates normally, packets sent from Host A to Host B are
■
forwarded by Switch A; if Switch A is in work, but its VLAN-interface 3 which
connects to the Internet is not available, packets sent from Host A to Host B are
forwarded by Switch B.
Network diagram
Figure 325 Network diagram for VRRP interface tracking
202 .38 .160 .3/24
Host A
Configuration procedure
1 Configure Switch A
# Configure VLAN 2.
<SwitchA> system-view
[SwitchA] vlan 2
[SwitchA-vlan2] port GigabitEthernet 1/0/5
[SwitchA-vlan2] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 202.38.160.1 255.255.255.0
IPv4-Based VRRP Configuration Examples
: 1
: UP
: 100
: YES
: NONE
: 202.38.160.111
: 0000-5e00-0101
: 202.38.160.2
Virtual IP address:
202.38.160.111/24
Vlan- int2
202 .38 .160 .1 /24
Switch A
Vlan -int2
202.38.160.2/24
Switch B
Adver. Timer
State
Run Pri
Delay Time
Vlan -int3
203 .2 .3.1/24
Internet
Host B
1091
: 1
: Master
: 100
: 5