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.
Usage Guidelines
Usage Scenario
In some scenarios, multicast data do 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 prevent multicast data from being sent to these interfaces. The configuration conserves bandwidth in this scenario.
Precautions
- 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.
<AC6605> system-view [AC6605] igmp-snooping enable [AC6605] vlan 10 [AC6605-vlan10] l2-multicast router-port-discard [AC6605-vlan10] igmp-snooping enable
# Disable the switch from forwarding multicast data to router ports in VLAN 10 on an IPv6 network.
<AC6605> system-view [AC6605] mld-snooping enable [AC6605] vlan 10 [AC6605-vlan10] l2-multicast router-port-discard [AC6605-vlan10] mld-snooping enable