< Home

mac-address multicast

Function

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.

Format

mac-address multicast mac-address vlan vlan-id

undo mac-address multicast mac-address vlan vlan-id

Parameters

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.

Views

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

Default Level

2: Configuration level

Usage Guidelines

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

  • The specified VLAN exists and the interfaces have been added to the VLAN.
  • The switch has been configured to forward multicast data based on MAC addresses using the l2-multicast forwarding-mode mac command.

Precautions

  • The MAC address specified in the command must be a multicast MAC address with the rightmost bit as 1 (xxxx xxx1).
  • The VLAN specified in the command cannot be a super-VLAN, leased line VLAN, control VLAN of a Smart Ethernet Protocol (SEP) segment, or control VLAN of a Rapid Ring Protection Protocol (RRPP) ring.
  • When the static multicast MAC address configured on an interface is an IPv4 multicast MAC address starting with 0x01-00-5e or an IPv6 multicast MAC address starting with 0x3333, Layer 2 multicast snooping cannot be enabled in the VLANs on the interface.
  • Before configuring static multicast MAC addresses on an interface of the S2720-EI, S5720-LI, S5720S-LI, S6720-LI, S6720S-LI, S5720-SI, S5720I-SI, S5720S-SI, S5730-SI, S5730S-EI, S6720-SI, and S6720S-SI, set the multicast data forwarding mode to MAC address based mode in the VLAN to which the interface belongs.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >