< Home

Configuring a Static Multicast MAC Address

Pre-configuration Tasks

Before configuring a static multicast MAC address on an interface, create a VLAN and add the interface to the VLAN.

Context

By default, Layer 2 devices broadcast all received multicast data packets in a VLAN. This wastes network bandwidth and threatens network security. One way to reduce broadcast packets is to configure Internet Group Management Protocol (IGMP) snooping or Multicast Listener Discovery (MLD) snooping on the switch to create Layer 2 multicast forwarding entries. Another method is to configure static multicast MAC addresses on interfaces to create multicast MAC address entries.

After a multicast MAC address is configured on interfaces, multicast packets destined for the multicast MAC address are forwarded only to the specified interfaces in the VLAN.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    The VLAN view is displayed.

  3. Run l2-multicast forwarding-mode mac

    The multicast data forwarding mode in a VLAN is set to MAC address-based forwarding.

    By default, multicast data is forwarded in a VLAN based on IP addresses.

  4. Run quit

    Return to the system view.

  5. Configure a static multicast MAC address using either of the following methods:

    • Configure a static multicast MAC address on one interface:

      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run mac-address multicast mac-address vlan vlan-id

        A multicast MAC address is configured on the interface.

    • Configure a static multicast MAC address on multiple interfaces:

      Run mac-address multicast mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id

      A static multicast MAC address is configured on multiple interfaces.

      The interface numbers must be consecutive. interface-number2 must be larger than interface-number1.

Verifying the Configuration

After completing the configuration, run the following commands in any view to check static multicast MAC addresses.

  • Run the display mac-address multicast [ [ mac-address ] vlan vlan-id ] command to check the configured static multicast MAC address entries.
  • Run the display mac-address multicast [ vlan vlan-id ] total-number command to check the number of configured static multicast MAC address entries.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >