beautypg.com

Configuration guidelines – H3C Technologies H3C MSR 50 User Manual

Page 75

background image

67

Step Command

Remarks

54.

Enter interface view.

interface interface-type interface-number N/A

55.

Specify the version of

VRRP.

vrrp version version-number

Optional.
By default, VRRPv2 is used.

Specifying the type of MAC addresses mapped to virtual IP

addresses

You can configure VRRP in standard mode to map real or virtual MAC addresses to the virtual IP

addresses of VRRP groups, so the master in a VRRP group uses the specified type of MAC address as the
source MAC address for sending packets and answering ARP requests.

Virtual MAC to virtual IP mapping—By default, a virtual MAC address is automatically assigned
when a VRRP group is created, and the virtual IP address of the VRRP group is mapped to the virtual

MAC address. In this mapping method, the hosts do not need to update the gateway IP and MAC

mapping entry when the master changes.

Real MAC address of an interface—If a VRRP group has an IP address owner, configure real MAC
to virtual IP mapping to avoid the problem of one IP address mapped to two MAC addresses (the
real and the virtual). In this method, the virtual IP address of the VRRP group is mapped to the real

MAC address of the IP address owner, and all packets from hosts are forwarded to the IP address

owner.

If VRRP groups with the same ID are created on multiple interfaces, and the VRRP advertisements of these

VRRP groups are to be sent across a QinQ network, H3C recommends that you use real MAC to virtual
IP mapping to guarantee successful transmission of the VRRP advertisements.
When VRRP operates in load balancing mode, the address mapping setting does not take effect, and

virtual IP addresses are always mapped to virtual MAC addresses.
Specify the type of the MAC addresses mapped to the virtual IP addresses before creating a VRRP group.
You cannot change the address mapping setting after a VRRP group is created.
To specify the type of MAC addresses mapped to virtual IP addresses:

Step Command

Remarks

56.

Enter system view.

system-view

N/A

57.

Specify the type of MAC
addresses mapped to virtual

IP addresses.

vrrp method { real-mac |
virtual-mac }

Optional.
Virtual MAC address by default.

Creating a VRRP group and assigning a virtual IP address

Configuration guidelines

You can configure multiple virtual IP addresses for the VRRP group on an interface that connects to

multiple subnets for router backup on different subnets.

The VRRP group is automatically created when you specify the first virtual IP address. If you later
specify another virtual IP address for the VRRP group, the virtual IP address is added to the virtual

IP address list of the VRRP group.

This manual is related to the following products: