The mac-address multicast command configures a static multicast MAC address on an interface.
The undo mac-address multicast command deletes the static MAC address from an interface.
By default, no static multicast MAC address is configured on an interface.
mac-address multicast mac-address vlan vlan-id
undo mac-address multicast mac-address vlan vlan-id
Parameter |
Description |
Value |
---|---|---|
mac-address |
Specifies a multicast MAC address. |
The value is in H-H-H format. An H contains 1 to 4 hexadecimal digits. |
vlan vlan-id |
Specifies the VLAN that the interface belongs to. |
The value is an integer that ranges from 1 to 4094. |
MultiGE interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view
Usage Scenario
By default, the switch broadcasts received multicast packets in a VLAN, wasting network bandwidth and threatens network security. To reduce broadcasting of multicast packets, configure IGMP snooping or MLD snooping on the switch so that the switch can generate Layer 2 multicast forwarding entries. Alternatively, configure static multicast MAC address entries by binding multicast MAC addresses to interfaces.
After a static multicast MAC address is configured on an interface, multicast packets destined for this multicast MAC address are forwarded only to the interface in the specified VLAN.
Prerequisites
Precautions
# Configure static MAC address 0100-2100-2200 on GE0/0/1 in VLAN 10.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type trunk [HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 [HUAWEI-GigabitEthernet0/0/1] mac-address multicast 0100-2100-2200 vlan 10