Operation Manual – VRRP
H3C S3610&S5510 Series Ethernet Switches
Chapter 1 VRRP Configuration
1-21
II. Network diagram
Host A
Switch A
Switch B
Virtual IP address:
202.38.160.111/24
Vlan-int2
202.38.160.1/24
Vlan-int2
202.38.160.2/24
Host B
202.38.160.3/24
203.2.3.1/24
Internet
Figure 1-7
Network diagram for single VRRP standby group configuration
III. Configuration procedure
1)
Configure Switch A
# Configure VLAN 2.
<SwitchA> system-view
[SwitchA] vlan 2
[SwitchA-vlan2] port GigabitEthernet 2/0/5
[SwitchA-vlan2] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 202.38.160.1 255.255.255.0
# Create standby group 1 and set its virtual IP address to be 202.38.160.111.
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the priority of Switch A in standby group 1 to 110.
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
# Set Switch A to work in preemption mode. The preemption delay is five seconds.
[SwitchA-Vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
2)
Configure Switch B
# Configure VLAN 2.
<SwitchB> system-view
[SwitchB] vlan 2
[SwitchB-Vlan2] port GigabitEthernet 2/0/5
[SwitchB-vlan2] quit
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 202.38.160.2 255.255.255.0