No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Static Multicast MAC Address Configuration Commands

Static Multicast MAC Address Configuration Commands

display mac-address multicast

Function

The display mac-address multicast command displays the static multicast MAC address entries.

Format

display mac-address multicast [ mac-address ] [ vlan vlan-id ]

Parameters

Parameter

Description

Value

mac-address

Specifies a multicast MAC address. If this parameter is not specified, the system displays all the configured multicast MAC address entries.

The value is in the H-H-H format. An H contains 1 to 4 hexadecimal digits.

vlan vlan-id

Displays multicast MAC address entries in a specified VLAN. If this parameter is not specified, the system displays multicast MAC address entries in all VLANs.

The value is an integer that ranges from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command displays static multicast MAC address entries. To configure a static multicast MAC address on the device, use the mac-address multicast interface or mac-address multicast command.

Example

# Display static multicast MAC address entries in VLAN 10.

<HUAWEI> display mac-address multicast vlan 10
--------------------------------------------------------------------
 MAC Address         VLANID         Out-Interface
--------------------------------------------------------------------

 0100-2100-2200      10             10GE1/0/1
                                            1 port(s)
--------------------------------------------------------------------
 Total Group(s) : 1 
Table 10-105  Description of the display mac-address multicast vlan 10 command output

Item

Description

MAC Address

Static multicast MAC address.

VLANID

VLAN that the interface bound to the multicast MAC address belongs to.

Out-Interface

Interface bound to the multicast MAC address.

Total Group(s)

Total number of multicast groups.

display mac-address multicast total-number

Function

The display mac-address multicast total-number command displays the number of static multicast MAC address entries.

Format

display mac-address multicast [ vlan vlan-id ] total-number

Parameters

Parameter

Description

Value

vlan vlan-id

Displays the number of static multicast MAC address entries in a specified VLAN. If this parameter is not specified, the system displays the total number of static multicast MAC address entries in all VLANs.

The value is an integer that ranges from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenarios

The display mac-address multicast total-number displays the number of static multicast MAC address entries.

Precautions

If no static MAC address entry is configured, the total number of MAC address entries is displayed as 0. You can use the mac-address multicast command to statically bind a multicast MAC address to an interface or use the mac-address multicast interface command to statically bind a MAC address to multiple interfaces.

Example

# Display the number of static multicast MAC address entries in VLAN 10.

<HUAWEI> display mac-address multicast vlan 10 total-number
Total number of mac-address : 3  
Table 10-106  Description of the display mac-address multicast vlan 10 total-number command output

Item

Description

Total number of mac-address

Number of static multicast MAC address entries.

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. It cannot be any reserved VLAN IDs configured using the vlan reserved command.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the switch broadcasts received multicast packets in a VLAN. This wastes network bandwidth and threatens network security. To reduce broadcasting of multicast packets, configure IGMP 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 static multicast MAC address entries are configured, multicast packets destined for a multicast MAC address are forwarded only to the interfaces with this multicast MAC address configured in a VLAN.

Prerequisites

The specified VLAN exists and the interfaces have been added to the VLAN.

Precautions

  • The MAC address specified in the command must be a multicast MAC address with the rightmost bit as 1 (xxxx xxx1). MAC addresses starting with 0x01 are recommended.
  • The VLAN specified in the command cannot be a super-VLAN.
  • If the switch uses MAC address based multicast forwarding mode, static groups configured on an interface using the igmp snooping static-group command implement the same function as static multicast MAC addresses configured on the interface.
  • The following table lists the scenarios where IPv4 multicast MAC addresses (first 24 bits are 0x0100-5e and bit 25 is 0) are valid.

    Scenario

    Valid or invalid

    No other multicast services configured

    Valid

    Layer 3 multicast or both Layer 2 and Layer 3 multicast configured

    Valid

    IP address based Layer 2 multicast forwarding

    Valid, but may cause conflicts

    MAC address based Layer 2 multicast forwarding

    Valid, but may cause conflicts

    A conflict occurs in the following situation: If IGMP snooping is enabled, the switch forwards multicast packets based on destination MAC addresses of the packets. When a static multicast MAC address is configured, a conflict may occur, causing data forwarding errors. For example, the VRRP protocol uses a permanent IPv4 multicast address 224.0.0.18, which is mapped to multicast MAC address 01-00-5E-00-00-12. If 01-00-5E-00-00-12 is configured as a static multicast MAC address, VRRP protocol packets cannot be forwarded normally. Therefore, you are advised not to configure static multicast MAC addresses when the switch is running IGMP snooping.

Example

# Configure static MAC address 0100-2100-2200 on 10GE1/0/1 in VLAN 10.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk allow-pass vlan 10
[*HUAWEI-10GE1/0/1] mac-address multicast 0100-2100-2200 vlan 10

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. It cannot be any reserved VLAN IDs configured using the vlan reserved command.

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 a VLAN.

Prerequisites

The specified VLAN exists and the interfaces have been added to the VLAN.

Precautions

  • If you run the mac-address multicast command multiple times, all the configurations take effect.
  • The MAC address specified in the command must be a multicast MAC address with the rightmost bit as 1 (xxxx xxx1). MAC addresses starting with 0x01 are recommended.
  • The VLAN specified in the command cannot be a super-VLAN.
  • If the switch uses MAC address based multicast forwarding mode, static groups configured on an interface using the igmp snooping static-group command implement the same function as static multicast MAC addresses configured on the interface.
  • The following table lists the scenarios where IPv4 multicast MAC addresses (first 24 bits are 0x0100-5e and bit 25 is 0) are valid.

    Scenario

    Valid or invalid

    No other multicast services configured

    Valid

    Layer 3 multicast or both Layer 2 and Layer 3 multicast configured

    Valid

    IP address based Layer 2 multicast forwarding

    Valid, but may cause conflicts

    MAC address based Layer 2 multicast forwarding

    Valid, but may cause conflicts

    A conflict occurs in the following situation: If IGMP snooping is enabled, the switch forwards multicast packets based on destination MAC addresses of the packets. When a static multicast MAC address is configured, a conflict may occur, causing data forwarding errors. For example, the VRRP protocol uses a permanent IPv4 multicast address 224.0.0.18, which is mapped to multicast MAC address 01-00-5E-00-00-12. If 01-00-5E-00-00-12 is configured as a static multicast MAC address, VRRP protocol packets cannot be forwarded normally. Therefore, you are advised not to configure static multicast MAC addresses when the switch is running IGMP snooping.

Example

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

<HUAWEI> system-view
[~HUAWEI] mac-address multicast 0100-2100-2200 interface 10ge 1/0/1 to 10ge 1/0/4 vlan 10
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 43821

Downloads: 330

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next