3Com 5500-SI Switch User Manual


 
VRRP Configuration Example 159
Network diagram
Figure 40 Network diagram for interface tracking configuration
Configuration procedure
1 Configure Switch A.
a Configure 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
b Configure that the virtual router can be pinged.
[LSW-A ] vrrp ping-enable
c Create a backup group.
[LSW-A] interface vlan-interface 2
[LSW-A-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
d Set the priority for the backup group.
[LSW-A-Vlan-interface2] vrrp vrid 1 priority 110
e Set the authentication key for the backup group.
[LSW-A-Vlan-interface2] vrrp authentication-mode md5 switch
f Configure that the master switch to send VRRP packets once in every 5 seconds.
[LSW-A-Vlan-interface2] vrrp vrid 1 timer advertise 5
g Set 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