beautypg.com

H3C Technologies H3C MSR 5600 User Manual

Page 32

background image

24

[RouterA] interface ethernet 1/1

[RouterA-Ethernet1/1] ip address 10.1.1.1 255.255.255.0

# Create VRRP group 1 and set its virtual IP address to 10.1.1.111.

[RouterA-Ethernet1/1] vrrp vrid 1 virtual-ip 10.1.1.111

# Assign Router A a higher priority than Router B in VRRP group 1, so Router A can become the
master in the group.

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

# Create VRRP group 2, and set its virtual IP address to 10.1.1.112.

[RouterA-Ethernet1/1] vrrp vrid 2 virtual-ip 10.1.1.112

2.

Configure Router B:
# Specify an IP address for Router B.

system-view

[RouterB] interface ethernet 1/1

[RouterB-Ethernet1/1] ip address 10.1.1.2 255.255.255.0

# Create VRRP group 1, and set its virtual IP address to 10.1.1.111.

[RouterB-Ethernet1/1] vrrp vrid 1 virtual-ip 10.1.1.111

# Create VRRP group 2, and set its virtual IP address to 10.1.1.112.

[RouterB-Ethernet1/1] vrrp vrid 2 virtual-ip 10.1.1.112

# Assign Router B a higher priority than Router A in VRRP group 2, so Router B can become the
master in the group.

[RouterB-Ethernet1/1] vrrp vrid 2 priority 110

3.

Verify the configuration:
# Display detailed information about the VRRP groups on Router A.

[RouterA-Ethernet1/1] display vrrp verbose

IPv4 Virtual Router Information:

Running Mode : Standard

Total number of virtual routers : 2

Interface Ethernet1/1

VRID : 1 Adver Timer : 100

Admin Status : Up State : Master

Config Pri : 110 Running Pri : 110

Preempt Mode : Yes Delay Time : 0

Auth Type : None

Virtual IP : 10.1.1.111

Virtual MAC : 0000-5e00-0101

Master IP : 10.1.1.1

Interface Ethernet1/1

VRID : 2 Adver Timer : 100

Admin Status : Up State : Backup

Config Pri : 100 Running Pri : 100

Preempt Mode : Yes Delay Time : 0

Become Master : 201ms left

Auth Type : None

Virtual IP : 10.1.1.112

Master IP : 10.1.1.2

This manual is related to the following products: