vrrp method

Syntax

vrrp method { real-mac | virtual-mac }

undo vrrp method

View

System view

Default level

2: System level

Parameters

real-mac: Maps the real MAC address of the interface to the virtual IP address of the VRRP group.

virtual-mac: Maps the virtual MAC address to the virtual IP address of the VRRP group.

Description

Use vrrp method to specify the type of the MAC addresses mapped to the virtual IP addresses of the VRRP groups.

Use undo vrrp method to restore the default.

By default, the virtual MAC addresses are mapped to the virtual IP addresses of the VRRP groups.

Specify the type of the MAC addresses mapped to the virtual IP address before creating a VRRP group. Otherwise, you cannot change the type of the MAC address by using this command. .

When VRRP operates in load balancing mode, a virtual IP address is always mapped to a virtual MAC address regardless of which type of the MAC addresses to be mapped to the virtual IP address is specified.

Related commands: display vrrp.

Examples

# Map the virtual IP address of a VRRP group to the real MAC address of the interface.

<Sysname> system-view
[Sysname] vrrp method real-mac