
VRRP Configuration Example 159
Network diagram
Figure40 Network diagram for inte rface tracking configuration
Configuration procedure
1Configure Switch A.aConfigure VLAN 2.
<LSW-A> system-view
System View: return to User View with Ctrl+Z.
[LSW-A] vlan 2
[LSW-A-vlan2] port Ethernet 1/0/6
[LSW-A-vlan2] quit
[LSW-A] interface vlan-interface 2
[LSW-A-Vlan-interface2] ip address 202.38.160.1 255.255.255.0
[LSW-A-Vlan-interface2] quit
bConfigure that the virtual router can be pinged.[LSW-A ] vrrp ping-enable
cCreate a backup group.[LSW-A] interface vlan-interface 2
[LSW-A-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
dSet the priority for the backup group.[LSW-A-Vlan-interface2] vrrp vrid 1 priority 110
eSet the authentication key for the backup group.[LSW-A-Vlan-interface2] vrrp authentication-mode md5 switch
fConfigure that the master switch to send VRRP packets once in every 5 seconds.[LSW-A-Vlan-interface2] vrrp vrid 1 timer advertise 5
gSet the tracked VLAN interface.[LSW-A-Vlan-interface2] vrrp vrid 1 track vlan-interface 3 reduced
30
Virtual IP address: 202.38.160.111
Switch_A
Host A
202.38.160.3
-
Vlan-interface2: 202.38.160.1
Internet
Switch_B
-
Vlan-interface2: 202.38.160.2
-
Vlan-interface3: 10.100.10.2
Host B
10.2.3.1
Virtual IP address: 202.38.160.111
Switch_A
Host A
202.38.160.3
-
Vlan-interface2: 202.38.160.1
Internet
Switch_B
-
Vlan-interface2: 202.38.160.2
-
Vlan-interface3: 10.100.10.2
Host B
10.2.3.1