The display mld-snooping forwarding-table command displays the Layer 2 multicast forwarding table.
display mld-snooping forwarding-table vlan [ vlan-id [ [ source-address source-ipv6-address ] group-address { group-ipv6-address | router-group } ] ]
Parameter |
Description |
Value |
---|---|---|
vlan [ vlan-id ] |
Displays Layer 2 multicast forwarding entries in a specified VLAN. If vlan-id is not specified, information about the MLD snooping forwarding table of all VLANs. |
The value is an integer that ranges from 1 to 4094. |
source-address source-ipv6-address |
Displays the forwarding entries of a specified Layer 2 multicast source. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
group-address group-ipv6-address |
Displays multicast forwarding entries of a specified Layer 2 multicast group. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. An IPv6 multicast address starts with FF. |
router-group | Displays Layer 2 multicast forwarding entries of all router ports. |
- |
Usage Scenario
After completing MLD snooping configuration, you can use the display mld-snooping forwarding-table command to view the MLD snooping 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 MLD snooping version is set to v2 in a VLAN or when the MLD snooping version is set to v2, the display mld-snooping forwarding-table command displays (S, G) entries.
Precautions
This command displays Layer 2 multicast forwarding entries in a VLAN only when at least one interface in the VLAN is in Up state.
# Display multicast forwarding entries in VLAN 10.
<HUAWEI> display mld-snooping 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 (*, ff1e:0:0:0:0:0:0:1) GigabitEthernet0/0/1 10 GigabitEthernet0/0/2 10 (*, ff1e:0:0:0:0:0:0:2) 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. |
Router-port |
Router port in the VLAN. |
Total Group(s) |
Total number of multicast forwarding entries. |