The vrrp advertise send-mode command configures a mode in which the master sends VRRP Advertisement packets in a super-VLAN.
The undo vrrp advertise send-mode command restores the default mode in which the master sends VRRP Advertisement packets in a super-VLAN.
By default, the master sends VRRP Advertisement packets to a sub-VLAN that is Up and has the smallest VLAN ID in a super-VLAN.
Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
Parameter | Description | Value |
---|---|---|
sub-vlan-id | Specifies the ID of a sub-VLAN where the master sends VRRP Advertisement packets. | The value is an integer that ranges from 1 to 4094. |
all | Indicates that the master sends VRRP Advertisement packets to all sub-VLANs in a super-VLAN. | - |
When a VRRP group is configured in a super-VLAN, run the vrrp advertise send-mode command to configure the master to send VRRP Advertisement packets to a specified sub-VLAN or all sub-VLANs in the super-VLAN. If there are a large number of sub-VLANs in a super-VLAN, to save bandwidth, configure the master to send VRRP Advertisement packets to a specified sub-VLAN.
PrerequisitesA VRRP group has been configured on the VLANIF interface corresponding to the super-VLAN.
PrecautionsUsing all is not recommended. If all is configured, a super VLAN broadcasts a VRRP Advertisement packet to all its Sub-VLANs. This causes CPU usage to increase.
If VRRP is enabled on a VLANIF interface, a virtual IP address cannot be an IP address that maps to a MAC address in a static ARP entry. If a virtual IP address maps to a MAC address in a static ARP entry, a forwarding failure occurs. For example, if a MAC address in a static ARP entry on a VLANIF interface maps to an IP address of 10.1.1.1, the IP address of 10.1.1.1 cannot be a virtual IP address of a VRRP IPv4 backup group configured on the VLANIF interface.
After a VLANIF interface is configured with a VRRP IPv4 backup group and a static ARP entry, the virtual IP address of the VRRP IPv4 backup group cannot be an IP address that maps to the MAC address in the static ARP entry. Otherwise, a forwarding failure occurs. For example, if a VRRP IPv4 backup group on a VLANIF interface is assigned an IP address of 10.1.1.1, the IP address of 10.1.1.1 cannot map to a MAC address in a static ARP entry configured on the VLANIF interface.
# Configure the master to broadcast VRRP Advertisement packets to all sub-VLANs in super-VLAN 100.
<HUAWEI> system-view [HUAWEI] vlan 100 [HUAWEI-vlan100] aggregate-vlan [HUAWEI-vlan100] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] vrrp vrid 1 virtual-ip 10.10.10.10 [HUAWEI-Vlanif100] vrrp advertise send-mode all