The display l2-multicast forwarding-table vlan command displays the Layer 2 multicast forwarding table in VLANs.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Displays Layer 2 multicast forwarding entries in a specified VLAN. If vlan-id is not specified, the command displays Layer 2 multicast forwarding entries in all VLANs. |
The value is an integer that ranges from 1 to 4094. |
source-address source-address |
Displays the forwarding entries of a specified Layer 2 multicast source. |
The value is in dotted decimal notation. |
group-address group-address |
Displays multicast forwarding entries of a specified Layer 2 multicast group. |
The value ranges from 224.0.1.0 to 239.255.255.255 in dotted decimal notation. |
router-group | Displays Layer 2 multicast forwarding entries of all router ports. |
- |
Usage Scenario
After completing IGMP snooping configuration, you can use the display l2-multicast forwarding-table command to view the Layer 2 multicast forwarding table. This command displays statically configured and dynamically learned multicast forwarding entries.
Each entry contains the multicast source, multicast group, list of outbound interfaces, and VLAN ID of multicast data packets. When the IGMP snooping version is set to v3 in a VLAN or when the IGMP snooping version is set to v2 or v1 but SSM mapping is configured, the display l2-multicast forwarding-table command displays (S, G) entries.
Precautions
This command displays Layer multicast forwarding entries in a VLAN only when the VLAN is in Up state (At least one interface in the VLAN is in Up state. If interfaces in the VLAN are dynamic group member ports, the interfaces must have received IGMP Report messages and have not been aged out.)
# Display multicast forwarding entries in VLAN 10.
<HUAWEI> display l2-multicast forwarding-table vlan 10 VLAN ID : 10, Forwarding Mode : IP Total Group(s): 2 -------------------------------------------------------------------------------- (Source, Group) Interface Out-Vlan -------------------------------------------------------------------------------- Router-port GigabitEthernet0/0/1 10 (*, 225.1.1.6) GigabitEthernet0/0/1 10 GigabitEthernet0/0/2 10 (*, 235.80.68.83) GigabitEthernet0/0/1 10 GigabitEthernet0/0/2 10 --------------------------------------------------------------------------------
Item |
Description |
---|---|
VLAN ID |
VLAN ID of the forwarding entries. |
Forwarding Mode |
Multicast forwarding mode in the VLAN, which can be:
|
(Source, Group) |
(S, G) entry, specifying the multicast source and multicast group. The Router-port field indicates a router port. |
Interface |
Outbound interface. |
Out-Vlan |
VLAN ID of packets. |
Total Group(s) |
Total number of multicast forwarding entries. |