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.
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
# 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