< Home

mac-address multicast interface

Function

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.

Format

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 }

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

  • If you run the mac-address multicast command multiple times, all the configurations take effect.
  • Before running this command, ensure that the VLAN has been created, and the interface where the multicast MAC address is configured has been added to this VLAN. Otherwise, configuration of this command does not take effect.
  • 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

# Bind multicast MAC address 0100-2100-2200 to interfaces GE0/0/1 to GE0/0/4 in VLAN 10.

<HUAWEI> system-view
[HUAWEI] mac-address multicast 0100-2100-2200 interface gigabitethernet 0/0/1 to gigabitethernet 0/0/4 vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >