1-6
virtual-mac: Maps the virtual MAC address of the VRRP group to the virtual IP address of the VRRP
group.
Description
Use the vrrp method command to configure the MAC-Virtual IP address mapping for VRRP groups.
You can configure to map the real MAC address of the switch to the virtual IP address of a VRRP group
or configure to map the virtual MAC address of a VRRP group to the virtual IP address of the VRRP
group.
Use the undo vrrp method command to restore the default.
By default, the virtual MAC address of a VRRP group is mapped to the virtual IP address of the VRRP
group.
Note that the mapping relationship between the MAC address and the virtual IP address must be
configured before any VRRP group is created. If a VRRP group already exists on the switch, you are not
allowed to modify the mapping relationship.
Examples
# Map the MAC address of a VLAN interface to the virtual IP address of the VRRP group.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] vrrp method real-mac
vrrp ping-enable
Syntax
vrrp ping-enable
undo vrrp ping-enable
View
System view
Parameters
None
Description
Use the vrrp ping-enable command to enable a VRRP group to respond to ping packets destined for
its virtual router IP address.
Use the undo vrrp ping-enable command to restore the default.
By default, a VRRP group does not respond to ping packets destined for its virtual router IP address.
Note that this command must be configured before any VRRP group is created. If a VRRP group
already exists on the switch, you are not allowed to execute the command.
Examples
# Enable a VRRP group to respond to ping packets destined for its virtual router IP address.
<Sysname> system-view
System View: return to User View with Ctrl+Z.