Using the mac-address multicast interface command, you can bind a multicast MAC address to multiple interfaces. Multicast packets destined for the specified multicast MAC address are forwarded by these interfaces.
Using the undo mac-address multicast interface command, you can delete a MAC address from multiple interfaces.
mac-address multicast mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id
undo mac-address multicast mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id
undo mac-address multicast { all | [ mac-address ] vlan vlan-id }
Parameter |
Description |
Value |
---|---|---|
mac-address |
Specifies a multicast MAC address. |
The value is in the H-H-H format. H is a hexadecimal number of 1 to 4 digits. |
interface-type interface-number1 |
Specifies the start interface to which the MAC address is bound. |
- |
to interface-type interface-number2 |
Specifies the end interface to which the MAC address is bound. The specified interfaces and interface-number2 must be greater than interface-number1. |
- |
all |
Deletes the multicast MAC address from all interfaces. |
- |
vlan vlan-id |
Specifies the VLAN that the interfaces belong to. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenarios
If Layer 2 multicast snooping is disabled on a switch, the switch broadcasts all the received multicast data packets in corresponding VLANs. This wastes network bandwidth and threatens network security.
Configuring static multicast MAC addresses on interfaces can solve this problem. This configuration ensures that multicast packets destined for a multicast MAC address are forwarded only to interfaces configured with this multicast MAC address in the VLAN.
Precautions