H3C Technologies H3C SR8800 User Manual

Page 79

Advertising
background image

70

[RouterA] interface GigabitEthernet 4/1/1

[RouterA-GigabitEthernet4/1/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.

[RouterA-GigabitEthernet4/1/1] vrrp vrid 1 virtual-ip 202.38.160.111

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

[RouterA-GigabitEthernet4/1/1] vrrp vrid 1 priority 110

# Configure the authentication mode of the VRRP group as simple and authentication key as hello.

[RouterA-GigabitEthernet4/1/1] vrrp vrid 1 authentication-mode simple hello

# Configure the master to send VRRP packets every five seconds.

[RouterA-GigabitEthernet4/1/1] vrrp vrid 1 timer advertise 5

# Configure Router A to work in preemptive mode, so that it can become the master whenever it
works normally. Configure the preemption delay as five seconds to avoid frequent status

switchover.

[RouterA-GigabitEthernet4/1/1] vrrp vrid 1 preempt-mode timer delay 5

# Set interface GigabitEthernet 4/1/2 on Router A to be tracked, and configure the amount by

which the priority value decreases to be more than 10 (30 in this example), so that when
GigabitEthernet 4/1/2 fails, the priority of Router A in VRRP group 1 decreases to a value lower

than 100 and thus Router B can become the master.

[RouterA-GigabitEthernet4/1/1] vrrp vrid 1 track interface GigabitEthernet 4/1/2

reduced 30

2.

Configure Router B:

<RouterB> system-view

[RouterB] interface GigabitEthernet 4/1/1

[RouterB-GigabitEthernet4/1/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.

[RouterB-GigabitEthernet4/1/1] vrrp vrid 1 virtual-ip 202.38.160.111

# Configure the authentication mode of the VRRP group as simple and authentication key as hello.

[RouterB-GigabitEthernet4/1/1] vrrp vrid 1 authentication-mode simple hello

# Configure the master to send VRRP packets every five seconds.

[RouterB-GigabitEthernet4/1/1] vrrp vrid 1 timer advertise 5

# Configure Router B to work in preemptive mode, so that Router B can become the master after the
priority of Router A decreases to a value lower than 100. Configure the preemption delay as five

seconds to avoid frequent status switchover.

[RouterB-GigabitEthernet4/1/1] vrrp vrid 1 preempt-mode timer delay 5

3.

Verify the configuration:
After the configuration, Host B can be pinged successfully on Host A. To verify your configuration,
use the display vrrp verbose command.
# Display the detailed information of VRRP group 1 on Router A.

[RouterA-GigabitEthernet4/1/1] display vrrp verbose

IPv4 Standby Information:

Run Mode : Standard

Run Method : Virtual MAC

Total number of virtual routers : 1

Interface GigabitEthernet4/1/1

VRID : 1 Adver Timer : 5

Advertising
This manual is related to the following products: