< Home

display l2-multicast forwarding-mode

Function

The display l2-multicast forwarding-mode command displays the Layer 2 multicast forwarding mode in VLANs.

Format

display l2-multicast forwarding-mode vlan [ vlan-id ]

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
Table 1 Description of the display l2-multicast forwarding-mode vlan command output

Item

Description

VLAN

VLAN ID.

Forwarding-mode

Forwarding mode used in a VLAN, which can be:
  • MAC address-based forwarding
  • IP address-based forwarding

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.
  • enable: The switch does not forward multicast data packets to router ports in the VLAN.
  • disable: The switch forwards multicast data packets to router ports in the VLAN.

This function is configured using the l2-multicast router-port-discard command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >