The display l2-multicast forwarding-mode command displays the Layer 2 multicast forwarding mode in VLANs.
Parameter | Description | Value |
---|---|---|
vlan [ vlan-id ] | Displays the Layer 2 multicast forwarding mode in a specified VLAN. If vlan-id is not specified, the system displays the Layer 2 multicast forwarding mode in all VLANs. |
The value is an integer ranging from 1 to 4094. |
Usage Scenario
After Layer 2 multicast is enabled on the switch, the switch maintains a Layer 2 multicast forwarding table. When receiving a multicast packet, the switch searches the Layer 2 multicast forwarding table for the outbound interface based on the multicast address of the packet. The switch determines the outbound interface based on the IP multicast address or IP multicast MAC address, depending on the configured Layer 2 multicast forwarding mode.
To check which Layer 2 multicast forwarding mode is used, run the display l2-multicast forwarding-mode command.
Precautions
You can change the forwarding mode using the l2-multicast forwarding-mode command.
# Display the Layer 2 multicast forwarding mode in all VLANs.
<HUAWEI> display l2-multicast forwarding-mode vlan
VLAN Forwarding-mode Router-discard
------------------------------------------------------------
1 IP disable
2 IP disable
3 MAC disable
Item |
Description |
---|---|
VLAN |
VLAN ID. |
Forwarding-mode |
Forwarding mode used in a VLAN, which can be:
This parameter can be configured using the l2-multicast forwarding-mode { ip | mac } command. |
Router-discard |
Whether the switch is configured not to forward multicast data packets to router ports in a VLAN.
This function is configured using the l2-multicast router-port-discard command. |