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

S12700 V200R013C00 Command Reference

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

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific 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.

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                Status
---------------------------------------------------------------------------
 0111-1111-2222      10             GigabitEthernet1/0/1         InActive
                                    GigabitEthernet1/0/2         InActive
                                            2 port(s)
---------------------------------------------------------------------------
 Total Group(s) : 1 
Table 8-141  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.

Status

Status of a VLAN. InActive indicates that the VLAN has not been created or no physical interface is added to the VLAN after it is created. Active indicates that the VLAN has been created and has physical interfaces in it.

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.

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 8-142  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.

Views

GE interface view, XGE 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.

Example

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

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type trunk
[HUAWEI-GigabitEthernet1/0/1] port trunk allow-pass vlan 10
[HUAWEI-GigabitEthernet1/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 must be on the same board 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.

Example

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

<HUAWEI> system-view
[HUAWEI] mac-address multicast 0100-2100-2200 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4 vlan 10
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 123996

Downloads: 88

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