beautypg.com

Single vrrp group configuration example at the cli, Network requirements, Configuration procedure – H3C Technologies H3C SecBlade LB Cards User Manual

Page 43

background image

35

Single VRRP group configuration example at the CLI

Network requirements

Host A needs to access Host B on the Internet, using 202.38.160.111/24 as its default gateway.

LB A and LB B belong to VRRP group 1 with the virtual IP address of 202.38.160.111/24.

If LB A operates properly, packets sent from Host A to Host B are forwarded by LB A. If LB A fails,
packets sent from Host A to Host B are forwarded by LB B.

Figure 21 Network diagram

Configuration procedure

1.

Configure LB A:

system-view

[LBA] interface gigabitethernet0/1

[LBA-GigabitEthernet0/1] ip address 202.38.160.1 255.255.255.0

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

[LBA-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 202.38.160.111

# Configure the priority of LB A in the VRRP group 1 as 110, which is higher than that of LB B (100),
so that LB A can become the master.

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

# Configure LB A to operate in preemptive mode so that it can become the master whenever it

works properly. Configure the preemption delay as five seconds to avoid frequent status

switchover.

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

2.

Configure LB B:

system-view

[LBB] interface gigabitethernet0/1

[LBB-GigabitEthernet0/1] ip address 202.38.160.2 255.255.255.0

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

[LBB-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 202.38.160.111

# Configure LB B to operate in preemptive mode, with the preemption delay set to five seconds.

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

This manual is related to the following products: