< Home

l2-multicast router-port-discard

Function

The l2-multicast router-port-discard command disables the switch from sending multicast data to router ports in a VLAN.

The undo l2-multicast router-port-discard command restores the default configuration.

By default, multicast data can be forwarded to router ports in a VLAN.

Format

l2-multicast router-port-discard

undo l2-multicast router-port-discard

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In some scenarios, multicast data does not need to be forwarded to router ports in a VLAN. For example, when all interfaces on a switch are configured as static router ports in a VLAN, you can use this command to conserve bandwidth by preventing multicast data from being sent to these interfaces.

Precautions

This command can only be used in VLANs with Layer 2 multicast snooping disabled. After running this command in a VLAN, enable Layer 2 multicast snooping in the VLAN for the configuration to take effect.
  • On an IPv4 network, run the igmp-snooping enable (VLAN view) command to enable IGMP snooping in the VLAN.
  • On an IPv6 network, run the mld-snooping enable command to enable MLD snooping in the VLAN.

Example

# Disable the switch from forwarding multicast data to router ports in VLAN 10 on an IPv4 network.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] vlan 10
[HUAWEI-vlan10] l2-multicast router-port-discard
[HUAWEI-vlan10] igmp-snooping enable

# Disable the switch from forwarding multicast data to router ports in VLAN 10 on an IPv6 network.

<HUAWEI> system-view
[HUAWEI] mld-snooping enable
[HUAWEI] vlan 10
[HUAWEI-vlan10] l2-multicast router-port-discard
[HUAWEI-vlan10] mld-snooping enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >