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).
Multicast VLAN Configuration Commands

Multicast VLAN 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 l2-multicast-bind

Function

The display l2-multicast-bind command displays bindings between multicast VLANs and user VLANs.

Format

display l2-multicast-bind [ mvlan vlan-id ]

Parameters

Parameter

Description

Value

mvlan vlan-id

Displays the binding between user VLANs and a specified multicast VLAN. vlan-id specifies a multicast VLAN ID.

The value is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After configuring multicast VLAN replication on an interface, you can run the display l2-multicast-bind command to view the configuration. This command can be used for fault location when multicast VLAN replication fails.

Precautions

If there is no binding between any multicast VLAN and user VLAN, the display l2-multicast-bind command does not display any information.

Example

# Display bindings between user VLANs and multicast VLAN 400.

<HUAWEI> display l2-multicast-bind mvlan 400
 -------------------------------------------------------------------            
 Port                          Startvlan        Endvlan        Mvlan            
 -------------------------------------------------------------------            
 GigabitEthernet1/0/1                222             --          400            
 -------------------------------------------------------------------            
 Total Table(s) : 1   
Table 8-143  Description of the display l2-multicast-bind command output

Item

Description

Port

Interface where user VLANs are bound to the multicast VLAN.

Startvlan

First user VLAN ID.

Endvlan

Last user VLAN ID. If "--" is displayed, only one user VLAN is bound to the multicast VLAN.

Mvlan

Multicast VLAN ID.

Total Table(s)

Total number of multicast VLAN binding entries.

display multicast-vlan

Function

The display multicast-vlan command displays information about multicast VLANs.

Format

display multicast-vlan vlan [ vlan-id ]

Parameters

Parameter

Description

Value

vlan [ vlan-id ]

Specifies the ID of a multicast VLAN.

  • If vlan-id is specified, detailed information about the specified multicast VLAN and its user VLANs is displayed.
  • If vlan-id is not specified, brief information about all the multicast VLANs is displayed.

The value is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display multicast-vlan command displays configuration of multicast VLANs. You can run the display multicast-vlan command to check whether any user VLAN is bound to the multicast VLAN and whether IGMP snooping or MLD snooping is enabled in the multicast VLAN and user VLAN. This command can be used to locate faults when the multicast service fails.

Example

# Display information about all multicast VLANs and user VLANs.

<HUAWEI> display multicast-vlan vlan
  Total multicast vlan   2                                                       
  multicast-vlan     user-vlan number     snooping-state                         
  ----------------------------------------------------------------               
  5                  1                    IGMP Enable /MLD Disable
  7                  2                    IGMP Enable /MLD Disable
Table 8-144  Description of the display multicast-vlan vlan command output

Item

Description

Total multicast vlan

Number of multicast VLANs.

multicast-vlan

ID of a multicast VLAN.

user-vlan number

Number of user VLANs bound to a multicast VLAN.

snooping-state

Whether IGMP snooping and MLD snooping is enabled in a multicast VLAN.

# Display information about multicast VLAN 7 and its user VLANs.

<HUAWEI> display multicast-vlan vlan 7
 Multicast-vlan         : 7
 User-vlan Number       : 2
 IGMP snooping state    : Enable
 MLD  snooping state    : Disable
 User-vlan              Snooping-state
 Prune-source-port state: Disable
 -------------------------------------
 8                      IGMP Enable /MLD Disable
 9                      IGMP Enable /MLD Disable    
Table 8-145  Description of the display multicast-vlan vlan vlan-id command output

Item

Description

Multicast-vlan

ID of a multicast VLAN.

User-vlan Number

Number of user VLANs bound to a multicast VLAN.

IGMP snooping state

Whether IGMP snooping is enabled in a multicast VLAN.

MLD snooping state

Whether MLD snooping is enabled in a multicast VLAN.

User-vlan

ID of a user VLAN.

Prune-source-port state

Whether permits Query messages received in a multicast VLAN to be sent back to from the upstream interface through user VLANs.

Snooping-state

Whether IGMP snooping and MLD snooping are enabled in a user VLAN.

display user-vlan

Function

Using the display user-vlan command, you can view information about a user VLAN.

Format

display user-vlan vlan [ vlan-id ]

Parameters

Parameter

Description

Value

vlan [ vlan-id ]

Specifies the ID of a user VLAN. If vlan-id is specified, information about the specified user VLAN is displayed. If vlan-id is not specified, information about all user VLANs is displayed.

The value is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After binding a user VLAN to a multicast VLAN, you can run the display user-vlan command to verify the configuration and check whether IGMP snooping or MLD Snooping is enabled. This command can be used to locate faults when the multicast service fails.

Example

# Display information about all user VLANs.

<HUAWEI> display user-vlan vlan
 Total user vlan   3
 user-vlan  snooping-state            multicast-vlan  snooping-state
 -----------------------------------------------------------------------------
 8          IGMP Disable/MLD Disable  7               IGMP Enable /MLD Disable
 9          IGMP Disable/MLD Disable  7               IGMP Enable /MLD Disable
 11         IGMP Disable/MLD Disable  7               IGMP Enable /MLD Disable
 

# Display information about user VLAN 8.

<HUAWEI> display user-vlan vlan 8
 user-vlan  snooping-state            multicast-vlan                            
 ---------------------------------------------------                            
 8         IGMP Disable/MLD Disable   7                   
Table 8-146  Description of the display user-vlan command output

Item

Description

Total user vlan

Number of user VLANs.

user-vlan

ID of a user VLAN.

multicast-vlan

ID of the multicast VLAN that a user VLAN belongs to.

snooping-state

Whether IGMP snooping and MLD snooping are enabled in a multicast VLAN or a user VLAN.

l2-multicast-bind vlan

Function

The l2-multicast-bind vlan command binds user VLANs to a multicast VLAN on an interface.

The undo l2-multicast-bind vlan command restores the default setting.

By default, no user VLAN is bound to a multicast VLAN on an interface.

Format

l2-multicast-bind vlan vlan-id1 [ to vlan-id2 ] mvlan mvlan-id

undo l2-multicast-bind vlan { vlan-id1 [ to vlan-id2 ] | all }

Parameters

Parameter Description Value
vlan vlan-id1 [ to vlan-id2 ]

Specifies the ID of a user VLAN.

The value is an integer that ranges from 1 to 4094.
mvlan mvlan-id

Specifies the ID of a multicast VLAN.

The value is an integer that ranges from 1 to 4094.
all Unbinds all user VLANs from the multicast VLAN on an interface. -

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

A carrier provides the multicast service for multiple Internet service providers (ISPs), and each ISP is assigned a multicast VLAN to isolate multicast data and routes of different ISPs. Users connected to different user-side interfaces of the switch may order multicast services of different ISPs but belong to the same user VLAN. If multicast replication based on user VLANs is used in this case, users may receive multicast data they do not require. This affects the income of the ISPs.

To solve this problem, bind the user VLAN to multicast VLANs of the ISPs whose services are ordered on user-side interfaces. Then the user-side interfaces accept only the data from multicast VLANs of the specified ISPs.

Prerequisites

IGMP snooping has been enabled using the igmp-snooping enable (VLAN view) command on the multicast VLAN.

Precautions

Before running this command, run the vlan command to create the corresponding user VLAN and multicast VLAN. Otherwise, configuration of this command does not take effect.

The user VLANs cannot be used to configure Layer 2 multicast call admission control (CAC) on an interface after they are bound to a multicast VLAN.

On an interface, a user VLAN can be bound to only one multicast VLAN.

Currently, the binding of user VLANs to a multicast VLAN on an interface is only supported on IPv4 networks.

Example

# Bind user VLAN100 to multicast VLAN20 on GE1/0/1.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] vlan 100
[HUAWEI-vlan100] igmp-snooping enable
[HUAWEI-vlan100] quit
[HUAWEI] vlan 20
[HUAWEI-vlan20] igmp-snooping enable
[HUAWEI-vlan20] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] l2-multicast-bind vlan 100 mvlan 20

multicast-vlan enable

Function

The multicast-vlan enable command configures a VLAN as a multicast VLAN.

The undo multicast-vlan enable command restores the default configuration.

By default, a VLAN is a common VLAN.

Format

multicast-vlan enable

undo multicast-vlan enable

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Generally, a switch needs to replicate multicast packets for each VLAN when users in different VLANs need to receive multicast data from the same multicast source. If a multicast VLAN is configured and the VLANs that users belong to are configured as the user VLANs of the multicast VLAN, the switch only needs to replicate the multicast data for the multicast VLAN. Multicast data is then replicated to the user VLANs by the multicast VLAN. This reduces load on the upstream router and separates the multicast source from the users.

Prerequisites

IGMP snooping or MLD snooping has been enabled in a VLAN using the igmp-snooping enable (VLAN view) or mld-snooping enable command.

Follow-up Procedure

Run the multicast-vlan user-vlan command to bind user VLANs to the multicast VLAN.

Precautions

  • A multicast VLAN cannot be configured as a user VLAN. A user VLAN cannot be configured as a multicast VLAN.
  • If MAC address-based forwarding is configured using the l2-multicast forwarding-mode command in a VLAN, the VLAN cannot be configured as a multicast VLAN.
  • Before running the undo multicast-vlan enable command in a multicast VLAN, delete all the user VLANs from the multicast VLAN. If OAM is bound to the multicast VLAN, unbind OAM from the multicast VLAN first.

Example

# Configure VLAN 2 as a multicast VLAN.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] vlan 2
[HUAWEI-vlan2] igmp-snooping enable
[HUAWEI-vlan2] multicast-vlan enable

multicast-vlan send-query prune-source-port

Function

The multicast-vlan send-query prune-source-port command prevents Query messages received in a multicast VLAN to be sent back to from the upstream interface through user VLANs.

The undo multicast-vlan send-query prune-source-port command restores the default configuration.

By default, Query messages received in a multicast VLAN can be sent back from the upstream interface through user VLANs.

Format

multicast-vlan send-query prune-source-port

undo multicast-vlan send-query prune-source-port

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In multicast VLAN application, an upstream interface usually belongs to a multicast VLAN and user VLANs bound to the multicast VLAN. By default, Query messages received in a multicast VLAN can be sent back from the upstream interface through user VLANs.

To prevent Query messages from being sent back to the upstream device, run this command in the multicast VLAN.

Prerequisites

The multicast VLAN function has been enabled using the multicast-vlan enable command in the VLAN view.

Example

# Prevent Query messages received in multicast VLAN 10 from being sent back to the upstream interface through user VLANs.

<HUAWEI> system-view
[HUAWEI] vlan 10
[HUAWEI-vlan10] multicast-vlan enable
[HUAWEI-vlan10] multicast-vlan send-query prune-source-port
Related Topics

multicast-vlan user-vlan

Function

The multicast-vlan user-vlan command binds user VLANs to a multicast VLAN.

The undo multicast-vlan user-vlan command unbinds user VLANs from a multicast VLAN.

By default, a multicast VLAN does not have any user VLAN.

Format

multicast-vlan user-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo multicast-vlan user-vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Specifies IDs of the user VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than the value of vlan-id1. The vlan-id1 and vlan-id2 parameters identify a range of VLANs. If to vlan-id2 is not specified, only one user VLAN is bound to the multicast VLAN.
The settings of the parameters are as follows:
  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

all

Deletes all the user VLANs from a multicast VLAN.

-

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After configuring a multicast VLAN, you can use the multicast-vlan user-vlan command to bind user VLANs to the multicast VLAN. The Layer 3 device replicates multicast data only in the multicast VLAN and sends the multicast data to the Layer 2 device. This saves bandwidth and reduces load on the Layer 3 device because it does not need to replicate multicast data in every user VLAN.

Prerequisites

A user VLAN and a multicast VLAN have been created using the vlan command, and the multicast VLAN function has been enabled using the multicast-vlan enable command on the multicast VLAN.

Precautions

When configuring user VLANs for a multicast VLAN, note the following limitations:

  • A user VLAN cannot be configured as a multicast VLAN.
  • The user VLANs must exist.

Example

# Bind user VLAN 10 to multicast VLAN 2.

<HUAWEI> system-view
[HUAWEI] vlan batch 2 10
[HUAWEI] vlan 2
[HUAWEI-vlan2] multicast-vlan enable
[HUAWEI-vlan2] multicast-vlan user-vlan 10

# Bind user VLANs 3 to 10 to multicast VLAN 2.

<HUAWEI> system-view
[HUAWEI] vlan batch 2 to 10
[HUAWEI] vlan 2
[HUAWEI-vlan2] multicast-vlan enable
[HUAWEI-vlan2] multicast-vlan user-vlan 3 to 10
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 114039

Downloads: 83

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