Operation Manual – VRRP
H3C S5600 Series Ethernet Switches
Chapter 1 VRRP Configuration
1-14
# Create a VRRP group.
[LSW-A] interface Vlan-interface 2
[LSW-A-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the priority for Switch A in the VRRP group.
[LSW-A-Vlan-interface2] vrrp vrid 1 priority 110
# Configure the preemptive mode for the VRRP group.
[LSW-A-Vlan-interface2] vrrp vrid 1 preempt-mode
Note:
By default, a VRRP group adopts the preemptive mode.
z
Configure Switch B.
# Configure VLAN 3.
<LSW-B> system-view
[LSW-B] vlan 3
[LSW-B-vlan3] port GigabitEthernet1/0/10
[LSW-B-vlan3] quit
[LSW-B] interface Vlan-interface 3
[LSW-B-Vlan-interface3] ip address 10.100.10.3 255.255.255.0
[LSW-B-Vlan-interface3] quit
# Configure VLAN 2.
[LSW-B] vlan 2
[LSW-B-Vlan2] port GigabitEthernet 1/0/5
[LSW-B-vlan2] quit
[LSW-B] interface Vlan-interface 2
[LSW-B-Vlan-interface2] ip address 202.38.160.2 255.255.255.0
[LSW-B-Vlan-interface2] quit
# Enable a VRRP group to respond to ping operations destined for its virtual router IP
address.
[LSW-B] vrrp ping-enable
# Create a VRRP group.
[LSW-B] interface vlan 2
[LSW-B-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Configure the preemptive mode for the VRRP group.
[LSW-B-Vlan-interface2] vrrp vrid 1 preempt-mode
The IP address of the default gateway of Host A is configured as 202.38.160.111.