beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 34

background image

33

Step2

Configure Device B

# Configure VRRP to work in load balancing mode.

system-view

[DeviceB] vrrp mode load-balance

# Create VRRP group 1 and configure its virtual IP address as 10.1.1.1.

[DeviceB] interface gigabitethernet 0/1

[DeviceB-GigabitEthernet0/1] ip address 10.1.1.3 24

[DeviceB-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 10.1.1.1

# Set the priority of Device B in VRRP group 1 to 110.

[DeviceB-GigabitEthernet0/1] vrrp vrid 1 priority 110

# Set Device B to work in preemptive mode. The preemption delay is five seconds.

[DeviceB-GigabitEthernet0/1] vrrp vrid 1 preempt-mode timer delay 5

Step3

Configure Device C

# Configure VRRP to work in load balancing mode.

system-view

[DeviceC] vrrp mode load-balance

# Create VRRP group 1 and configure its virtual IP address as 10.1.1.1.

[DeviceC] interface gigabitethernet 0/1

[DeviceC-GigabitEthernet0/1] ip address 10.1.1.4 24

[DeviceC-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 10.1.1.1

# Set Device C to work in preemptive mode. The preemption delay is five seconds.

[DeviceC-GigabitEthernet0/1] vrrp vrid 1 preempt-mode timer delay 5

Step4

Verify the configuration

After the configuration, Host A can ping the external network. To verify the configuration, use the
display vrrp verbose
command.
# Display detailed information of VRRP group 1 on Device A.

[DeviceA-GigabitEthernet0/1] display vrrp verbose

IPv4 Standby Information:

Run Mode : Load Balance

Run Method : Virtual MAC

Total number of virtual routers : 1

Interface GigabitEthernet0/1

VRID : 1 Adver Timer : 1

Admin Status : Up State : Master

Config Pri : 120 Running Pri : 120

Preempt Mode : Yes Delay Time : 5

Auth Type : None

Virtual IP : 10.1.1.1

Member IP List : 10.1.1.2 (Local, Master)

10.1.1.3 (Backup)

10.1.1.4 (Backup)

Forwarder Information: 3 Forwarders 1 Active

Config Weight : 255