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).
MLD Snooping Configuration Commands

MLD Snooping Configuration Commands

NOTE:

The CE6880EI and CE5855EI do not support this feature.

display mld snooping

Function

The display mld snooping command displays MLD snooping parameter settings, including default and non-default parameter settings.

Format

display mld snooping [ vlan [ vlan-id ] ] [ configuration ]

Parameters

Parameter Description Value
vlan vlan-id Displays MLD snooping parameter settings of a specified VLAN. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
configuration Displays non-default MLD snooping parameter settings. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check MLD snooping parameter settings, run the display mld snooping command. The command output helps you locate multicast service faults.

The command can display MLD snooping parameter settings of a VLAN only if the VLAN is in the Up state.

When using the display mld snooping command, note the following points:
  • The display mld snooping command can display MLD snooping parameter settings of all VLANs.

  • If vlan vlan-id is not set, the command displays MLD snooping parameter settings of all VLANs.

Prerequisites

MLD snooping has been enabled globally and for the specified VLAN.

Example

# Display all default and non-default MLD snooping parameter settings.

<HUAWEI> display mld snooping 
  MLD Snooping Information for VLAN 1
     MLD Snooping is Enabled
     MLD Version is Set to default 2     
     MLD Query Interval is Set to default 125     
     MLD Max Response Interval is Set to default 10     
     MLD Robustness is Set to default 2     
     MLD Last Member Query Interval is Set to default 1     
     MLD Router Port Aging Interval is Set to 180s or holdtime in hello     
     MLD Filter Group-Policy is Set to default: Permit All 
     MLD Filter IP-Source-Policy is Set to default: Permit All
     MLD Filter Query IP-Source-Policy is Set to default: Permit All    
     MLD Prompt Leave Disable     
     MLD Router Alert is Not Required     
     MLD Send Router Alert Enable     
     MLD Router Port Learning Enable     
     MLD Proxy Disable
     MLD Proxy Router Protocol Action is Set to default: Terminate All   
     MLD Report Suppress Disable     
     MLD Querier Disable
     MLD Snooping querier-election Disable
     MLD ASM-SSM
     MLD SSM-Mapping Disable     
     MLD Suppress-dynamic-join Disable

# Display all non-default MLD snooping settings.

<HUAWEI> display mld snooping configuration
  MLD Snooping Configuration for VLAN 1
     mld snooping enable
Table 10-97  Description of the display mld snooping command output

Item

Description

MLD Snooping is Enabled

Indicates that MLD snooping is enabled in the VLAN.

MLD Version is Set to default 2

Indicates that the default MLD version MLDv2 is used in the VLAN. With this default setting, the device can process both MLDv1 and MLDv2 messages.

MLD Query Interval is Set to default 125

Indicates that the querier in the VLAN sends general Query messages at the default interval (125s).

MLD Max Response Interval is Set to default 10

Indicates that the maximum time for the querier in the VLAN to wait for responses from downstream hosts is the default value (10s).

MLD Robustness is Set to default 2

Indicates that the number of group-specific Query messages that the querier in the VLAN sends is the default value (2).

MLD Last Member Query Interval is Set to default 1

Indicates that the querier in the VLAN sends group-specific Query messages at the default interval (1s).

MLD Router Port Aging Interval is Set to 180s or holdtime in hello

Indicates that the aging time of a router interface in the VLAN is the default value 180s or the Holdtime value contained in PIM Hello messages.

MLD Filter Group-Policy is Set to default : Permit All

Indicates that the default multicast group policy is used in the VLAN. With this default setting, the device allows hosts in the VLAN to join any multicast groups.

MLD Filter IP-Source-Policy is Set to default : Permit All

Indicates that the default source IP policy is used in the VLAN.

MLD Filter Query IP-Source-Policy is Set to default: Permit All

Indicates that the default filtering policy is used for MLD Query messages of this VLAN. With this default setting, the device allows all hosts in the VLAN to join multicast groups.

MLD Prompt Leave Disable

Indicates that prompt leave is disabled on the interfaces in the VLAN.

MLD Router Alert is Not Required

Indicates that the device permits MLD messages that do not carry the Router Alert option in IP headers received from interfaces in the VLAN.

MLD Send Router Alert Enable

Indicates that the device sends MLD messages carrying the Router-Alert option in IP headers to interfaces in the VLAN.

MLD Router Port Learning Enable

Indicates that router interface learning is enabled in the VLAN.

MLD Proxy Disable

Indicates that MLD proxy is disabled in the VLAN.

MLD Proxy Router Protocol Action is Set to default: Terminate All

Indicates that the MLD proxy-enabled device in the VLAN receives but does not transparently transmit MLD messages. With this setting, the MLD proxy-enabled router terminates received Report, Done, group-specific Query, and source-and group-specific Query messages.

MLD Report Suppress Disable

Indicates that MLD Report message suppression is disabled in the VLAN.

MLD Querier Disable

Indicates that the querier function is disabled in the VLAN.

MLD Snooping querier-election disable

Indicates that the querier election function is disabled in the VLAN.

MLD ASM-SSM

Indicates that the ASM-SSM group module is used in the VLAN. With this setting, the device supports both ASM and SSM messages.

MLD SSM-Mapping Disable

Indicates that SSM mapping is disabled in the VLAN.

MLD Suppress-dynamic-join Disable Disable interfaces in VLAN 1 from forwarding Report and Done messages to router interfaces with static groups configured.

display mld snooping group

Function

The display mld snooping group command displays multicast group information dynamically learned on a specified interface.

Format

display mld snooping group interface interface-type interface-number vlan vlan-id [ [ source-address source-address ] group-address group-address ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays multicast group information dynamically learned on a specified interface.

-

vlan vlan-id

Displays multicast group information dynamically learned in a specified VLAN.

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

source-address source-address

Displays dynamically learned information about multicast groups with a specified source address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

group-address group-address

Displays dynamically learned information about a specified multicast group.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value ranges from FF00::0 to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check multicast group information dynamically learned on a specified interface or from a specified remote peer, run the display mld snooping group command.

Precautions

This command displays information only if the device has dynamically learned multicast group information on a specified interface or from a specified remote peer.

Example

# Display multicast group information dynamically learned on 10GE 1/0/1 in VLAN 2, with the source IP address being 2000:5::105 and multicast group address being FF33::1.

<HUAWEI> display mld snooping group interface 10ge 1/0/1 vlan 2 source-address 2000:5::105 group-address ff33::1
Group FF33::1 information:
 Uptime: 00h38m36s
 Expire: --
 Group timer: Not exist
 Retran count: 0
 Last member query: No
 Router filter mode: Include
 Compat mode: V2
 V1 host timer: Not exist
 Source last member query: No
 Last member query timer: Not exist
  Source 2000:5::105 infor:
   Uptime: 00h38m36s
   Expire: 00h02m20s
   Source timer: Exist
   Retran count: 0
   Source last member query: No
Table 10-98  Description of the display mld snooping group command output

Item

Description

Group FF33::1information

Information about the multicast group FF33::1

Uptime

Time since the multicast group became active

Expire

Time before the multicast group expires

Group timer

Whether a multicast group timer exists:
  • Exist
  • Not exist

Retran count

Number of times group Query messages were sent

Last member query

Whether the multicast group has a member:
  • Yes
  • No

Router filter mode

Multicast group filtering mode:
  • Include
  • Exclude

Compat mode

Running MLD version:
  • V1: MLDv1
  • V2: MLDv2

V1 host timer

Whether an MLDv1 host timer exists:
  • Exist
  • Not exist

Source last member query

Whether to send Query messages to the members of a source-specific multicast group:
  • Yes
  • No

Last member query timer

Whether a timer exists to control the sending of last member query messages:
  • Exist
  • Not exist

Source 2000:5::105 infor

Information about the multicast source 2000:5::105

Source timer

Whether a multicast source timer exists:
  • Exist
  • Not exist

display mld snooping invalid-packet

Function

The display mld snooping invalid-packet command displays statistics about invalid MLD messages received by the device.

Format

display mld snooping invalid-packet [ packet-number ] verbose

display mld snooping invalid-packet vlan [ vlan-id ] [ message-type { done | query | report | hello } ]

Parameters

Parameter Description Value
vlan [ vlan-id ] Displays statistics about invalid MLD snooping messages received by the specified VLAN:
  • If vlan-id is not specified, statistics about invalid MLD snooping messages received by all VLANs are displayed.

  • If vlan-id is specified, statistics about invalid MLD snooping messages received by the specified VLAN are displayed.

The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
message-type Displays statistics about the specified type of invalid message. -
done Displays statistics about invalid Done messages. -
query Displays statistics about invalid Query message. -
report Displays statistics about invalid Report message. -
hello Displays statistics about invalid Hello messages. -
packet-number

Displays detailed information about the specified number of invalid MLD snooping packets latest received.

The value is an integer ranging from 1 to 100.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check statistics about invalid MLD messages received by the device, run the display mld snooping invalid-packet command. The command output helps locate and rectify faults.

If MLD snooping entries cannot be created on a multicast network, run the display mld snooping invalid-packet command to check whether this fault is caused by invalid MLD snooping messages received.

Example

# Display statistics about invalid MLD snooping messsages received by a device.

<HUAWEI> display mld snooping invalid-packet vlan
                                                                                

           Statistics of invalid packets for VLAN 1
--------------------------------------------------------------------
MLD Snooping General invalid packet:
Fault Length             : 0           Invalid MLD Type         : 0           
Bad Checksum             : 0           Fault RouterAlert        : 0           
    
MLD Snooping Query invalid packet:
Invalid Multicast Source : 0           Invalid Multicast Group  : 0           

MLD Snooping Done invalid packet:
Invalid MLD Version      : 0           Invalid Multicast Group  : 0           

MLD Snooping Report invalid packet:
Invalid MLD Version      : 0           Invalid Multicast Group  : 0           
Invalid Multicast Source : 0           

PIM Hello invalid packet:
Invalid PIM Version      : 0           Bad Checksum             : 0           
Fault Length             : 0           Bad GenID Length         : 0           
Bad Holdtime Length      : 0           Bad LanPruneDelay Length : 0           
Bad DrPriority Length    : 0           
--------------------------------------------------------------------
Table 10-99  Description of the display mld snooping invalid-packet command output

Item

Description

Statistics of invalid packets for VLAN

Statistics about invalid MLD snooping messages received by a VLAN

MLD Snooping General invalid packet

Statistics about general invalid MLD snooping messages

Fault Length

Number of messages with invalid message length

Invalid MLD Type

Number of messages with invalid message types

Invalid Multicast Group

Number of messages with invalid multicast group addresses

Bad Checksum

Number of messages with invalid checksum

Fault RouterAlert

Number of messages with error Router-Alert fields

MLD Snooping Query invalid packet

Statistics about invalid MLD snooping Query messages

Invalid Multicast Source

Number of messages with invalid multicast source addresses

MLD Snooping Done invalid packet

Statistics about invalid MLD snooping Done messages

Invalid MLD Version

Number of messages with invalid MLD version information

MLD Snooping Report invalid packet

Statistics about invalid MLD snooping Report messages

PIM Hello invalid packet

Statistics about invalid PIM Hello messages

Invalid PIM Version

Number of messages with invalid PIM version information

Bad GenID Length

Number of messages with invalid GenerationID length

Bad Holdtime Length

Number of messages with invalid Holdtime length

Bad LanPruneDelay Length

Number of messages with invalid LanPruneDelay length

Bad DrPriority Length

Number of messages with invalid DrPriority length

display mld snooping port-info

Function

The display mld snooping port-info command displays information about multicast interfaces, including static and dynamic member interfaces and router interfaces, on the switch.

Format

display mld snooping port-info [ vlan vlan-id [ group-address ipv6-group-address ] ] [ verbose ]

Parameters

Parameter Description Value
vlan vlan-id Displays information about multicast interfaces in a specified VLAN. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
group-address ipv6-group-address Displays information about multicast interfaces of specified multicast group in a specified VLAN. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value ranges from FF00::0 to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF.
verbose Displays detailed information about multicast interfaces. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The command displays information only after MLD snooping is enabled globally and in a specified VLAN view.

Information about multicast member interfaces is displayed only when these member interfaces are in the Up state. When using the command, note the following points:

  • The display mld snooping port-info command displays information about all multicast interfaces.

  • The display mld snooping port-info vlan vlan-id command displays information about all multicast interfaces in a specified VLAN.

  • The display mld snooping port-info vlan vlan-id group-address ipv6–group-address command displays information about interfaces of a specified multicast group in a specified VLAN.

Example

# Display information about multicast member interfaces.

<HUAWEI> display mld snooping port-info vlan 10
 --------------------------------------------------------------------------------------
  Flag: S:Static     D:Dynamic     M:Ssm-mapping
        A:Active     P:Protocol    T:Trill
(Source, Group)                       Port                                         Flag
 --------------------------------------------------------------------------------------
 VLAN 10, 1 Entry(s)
(*, FF16::1)                                                                       P--
                                      10GE1/0/1                                    S--
                                                        1 port(s) include
Table 10-100  Description of the display mld snooping port-info command output

Item

Description

Source

Multicast source address

Group

Multicast group address

Port

Interface of a multicast group

Flag

Entry type

  • P: indicates entries generated using protocol messages or static configuration.
  • A: indicates entries triggered through multicast data flows.
  • T: indicates entries generated through fast channel configuration.

Interface type

  • S: indicates statically configured member interfaces.
  • D: indicates dynamically selected member interfaces.
  • M: indicates SSM mapping interfaces.

display mld snooping querier

Function

The display mld snooping querier command displays querier configurations.

Format

display mld snooping querier vlan [ vlan-id ]

Parameters

Parameter Description Value
vlan vlan-id Displays querier configurations in a specified VLAN. If vlan-id is not specified, MLD querier configurations in all VLANs are displayed. The value is an integer ranging 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 Scenario

If MLD messages sent from an upstream Layer 3 device fail to reach a downstream Layer 2 device or the upstream device is not configured to learn multicast forwarding entries dynamically, queriers can be configured on the Layer 2 device to send MLD Query messages on behalf of the Layer 3 device. This reduces the burden of the upstream device. To check querier configurations, run the display mld snooping querier command.

Example

# Display querier configurations in all VLANs.

<HUAWEI> display mld snooping querier vlan
VLAN                            Querier-state Querier
---------------------------------------------------------------
1                               Disable       --
2                               Disable       --
---------------------------------------------------------------
 total entry 2
Table 10-101  Description of the display mld snooping querier command output

Item

Description

VLAN

VLAN ID

Querier-state

Querier status:
  • Disable: The querier has not been started.

  • Enable: The querier has been started.

Querier

IP address of a querier

total entry 2

Total two pieces of querier information

display mld snooping router-port

Function

The display mld snooping router-port command displays router interface information.

Format

display mld snooping router-port vlan vlan-id

Parameters

Parameter Description Value
vlan vlan-id Displays router interface information of a specified VLAN. The value is an integer ranging 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

Precautions

The information about a router interface is displayed only if the interface is in the Up state.

Example

# Display information about router interfaces in VLAN 10.

<HUAWEI> display mld snooping router-port vlan 10
 Port Name                            UpTime        Expires       Flags
 --------------------------------------------------------------------------
 VLAN 10, 1 router-port(s)
 10GE1/0/1                            00h02m48s     --            STATIC
Table 10-102  Description of the display mld snooping router-port command output

Item

Description

Port Name

Interface type and number

UpTime

Period during which the interface functions as a router interface

Expires

Remaining aging time of the interface functioning as a router interface

Flags

Router interface type. The value is one of the following two types or the combination of the two:
  • STATIC: static router interface

  • DYNAMIC: dynamic router interface

display mld snooping statistics

Function

The display mld snooping statistics command displays MLD snooping statistics.

Format

display mld snooping statistics vlan [ vlan-id ]

Parameters

Parameter Description Value
vlan vlan-id Displays MLD snooping statistics of a specified VLAN. The value is an integer ranging 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

If vlan-id is specified, only MLD snooping statistics in the specified VLAN is displayed and the number of Layer 2 events occurring in the VLAN is not displayed.

Example

# Display the MLD snooping statistics of VLAN 10.

<HUAWEI> display mld snooping statistics vlan 10
 MLD Snooping Packets Counter:
   Statistics for VLAN 10
     Receive V1 Report:          0
     Receive V2 Report:          0
     Receive V1 Query:           0
     Receive V2 Query:           0
     Receive Done:               0
     Receive Pim Hello:          0
     Send Query (S=0):           0
     Send Query (S!=0):          0
     Proxy Send General Query:               0
     Proxy Send Group-Specific Query:        0
     Proxy Send Group-Source-Specific Query: 0
     Recv Invalid Packet:                    0
     Recv Ignore Packet:                     0
Table 10-103  Description of the display mld snooping statistics command output

Item

Description

Receive V1 Report

Number of received MLDv1 Report messages

Receive V2 Report

Number of received MLDv2 Report messages

Receive V1 Query

Number of received MLDv1 Query messages

Receive V2 Query

Number of received MLDv2 Query messages

Receive Done

Number of received MLD Done messages

Receive Pim Hello

Number of received PIM Hello messages

Send Query(S=0)

Number of sent MLD Query messages with the source address 0.0.0.0

Send Query(S!=0)

Number of sent MLD Query messages with the source address that is not 0.0.0.0

Proxy Send General Query

Number of general Query messages sent by the proxy

Proxy Send Group-Specific Query

Number of group-specific Query messages sent by the proxy

Recv Invalid Packet

Number of received invalid PIM messages

Recv Ignore Packet

Number of MLD messages that were received but ignored

Proxy Send Group-Source-Specific Query

Number of source-and group-specific Query messages sent by the proxy

display multicast layer-2 ipv6 fib

Function

The display multicast layer-2 ipv6 fib command displays the Layer 2 multicast forwarding table.

Format

display multicast layer-2 ipv6 fib [ vlan vlan-id [ [ source source-address ] group group-address ] ]

Parameters

Parameter

Description

Value

vlan vlan-id

Displays Layer 2 multicast forwarding entries in a specified VLAN.

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

source source-address

Displays the forwarding entries of a specified multicast source.

The value is a 32-digit hexadecimal number in X:X:X:X:X:X:X:X format.

group group-address

Displays multicast forwarding entries of a specified multicast group.

The value is a 32-digit hexadecimal number in X:X:X:X:X:X:X:X format. The value ranges from FF00:: to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After completing MLD snooping configuration, you can use the display multicast layer-2 ipv6 fib command to view the Layer 2 multicast forwarding table. This command displays statically configured and dynamically learned multicast forwarding entries.

Each entry contains the multicast source, multicast group, list of outbound interfaces, and VLAN ID of multicast data packets. When the MLD snooping version is set to v2 in a VLAN or when the MLD snooping version is set to v1 but SSM mapping is configured, the display multicast layer-2 ipv6 fib command displays (S, G) entries.

Precautions

This command displays multicast forwarding entries in a VLAN only when at least one interface in the VLAN is in Up state.

Example

# Display multicast forwarding entries.

<HUAWEI> display multicast layer-2 ipv6 fib
--------------------------------------------------------------------------------
Forwarding Mode: IP
VLAN  Total                            (Source,Group)  Interface                
--------------------------------------------------------------------------------
10     1 
                             (FC00:0:0:3::3, FF13::3)  10GE1/0/1                   
                                                       10GE1/0/3                
--------------------------------------------------------------------------------
Table 10-104  Description of the display multicast layer-2 ipv6 fib command output

Item

Description

Forwarding Mode

Multicast forwarding mode in the VLAN, which can be:
  • IP: forwards multicast data based on IP addresses.
  • MAC: forwards multicast data based on MAC addresses..

VLAN

VLAN ID of the forwarding entries.

Total

Total number of multicast forwarding entries.

(Source,Group)

(S, G) entry, specifying the multicast source and multicast group.

Interface

Outbound interface.

group (IPv6)

Function

The group command configures IPv6 static SSM mapping source/group address mappings.

The undo group command deletes the IPv6 static SSM mapping source/group address mappings.

By default, no IPv6 static SSM mapping source/group address mapping is configured.

NOTE:

The CE6810LI does not support this command.

Format

group group-ipv6-address { mask-length } source source-ipv6-address

undo group { group-ipv6-address { mask-length } [ source source-ipv6-address ] | all }

Parameters

Parameter Description Value
group-ipv6-address Indicates the IPv6 address of the multicast group.

The value is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value ranges from FF00::0 to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF.

mask-length Indicates the mask length of a multicast group.

The value is an integer, which can be 16, 32, 64, or 128.

source source-ipv6-address Indicates the mask of a multicast group.

The value is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

all Delete all static SSM mapping source/group address mappings. -

Views

IPv6 SSM mapping policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When users connected to different interfaces want to watch programs multicast by different multicast sources, run the group command to configure different SSM mappings for IPv6 policies of different interfaces. After that, MLD packets received by different interfaces can be mapped to different multicast sources and users' requirements can be answered.

Prerequisites

SSM mapping and a corresponding policy have been enabled on the interface using the mld snooping ssm-mapping enable [ policy policy-name ] command.

Example

# Configure the static SSM mapping between the multicast source 1::1 and the multicast group FF33::1/32 for the MLD SSM mapping policy ssmmap1.

<HUAWEI> system-view
[~HUAWEI] ssm-mapping ipv6 policy ssmmap1
[*HUAWEI-ssm-map-igmp-ssmmap1] group ff33::1 32 source 1::1

mld snooping

Function

The mld snooping command sets a multicast group model in a VLAN.

The undo mld snooping command restores the default multicast group model.

By default, the multicast group model is ASM-SSM, allowing the device to support both any-source multicast (ASM) and source-specific multicast (SSM) messages in a VLAN.

NOTE:

The CE6810LI does not support this command.

Format

mld snooping { ssm-only | asm-only | asm-ssm }

undo mld snooping { asm-only | ssm-only }

Parameters

Parameter Description Value
ssm-only

Enables the device to learn multicast group entries in the SSM range.

-
asm-only

Enables the device to learn multicast group entries in the ASM range.

-
asm-ssm

Enables the device to learn multicast group entries in both the ASM and SSM ranges.

-

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Based on whether multicast messages carry source addresses, multicast messages are categorized as ASM and SSM messages. To configure the type of multicast message that the device can process in a VLAN, run the mld snooping command.

Prerequisites

MLD snooping has been enabled both globally and in the VLAN view using the mld snooping enable command.

Configuration Impact

If asm-only is specified, only (*, G) messages are processed, and other messages are discarded.

If ssm-only is specified, only (S, G) messages are processed, and other packets are discarded.

Precautions

The mld snooping command applies only to MLDv2.

Example

# Configure the device to process only ASM messages in VLAN 2.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] vlan 2
[*HUAWEI-vlan2] mld snooping enable
[*HUAWEI-vlan2] mld snooping asm-only
Related Topics

mld snooping enable

Function

The mld snooping enable command enables MLD snooping.

The undo mld snooping enable command disables MLD snooping.

By default, MLD snooping is disabled.

Format

mld snooping enable

undo mld snooping enable

Parameters

None

Views

System view, VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MLD snooping runs on a Layer 2 device that is deployed between a Layer 3 device and user hosts. The Layer 2 device can then maintain multicast forwarding entries by listening to multicast protocol messages transmitted between the upstream device and hosts, controlling multicast data packet forwarding. Enabling MLD snooping is the prerequisite for implementing Layer 2 multicast. To enable MLD snooping for a specific VLAN, run the mld snooping enable command.

NOTE:
  • Running the mld snooping enable command or its undo form in the system view enables or disables MLD snooping globally.
  • Running the mld snooping enable command or its undo form in the VLAN view enables or disables MLD snooping only for this VLAN. MLD snooping can be enabled for a VLAN only if MLD snooping is enabled globally. After MLD snooping is enabled in the system view, MLD snooping is still disabled for a VLAN by default.

Precautions

In the scenario when both IPv6 Layer 2 and Layer 3 multicast are enabled, that is, when Layer 2 multicast is configured in a VLAN and Layer 3 multicast is configured on the corresponding VLANIF interface, the following functions must be configured simultaneously to ensure normal on-demand forwarding of multicast traffic:
  • MLD Snooping must be enabled in a VLAN.
  • IPv6 PIM (PIM-SM or Bidir-PIM) and MLD must be enabled on the corresponding VLANIF interface.
The command fails to be run in a VLAN view in any of the following conditions:

Example

# Enable MLD snooping globally.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
# Enable MLD snooping in VLAN 2.
<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] mld snooping enable
Related Topics

mld snooping enable vlan

Function

The mld snooping enable vlan command enables MLD snooping for VLANs.

The undo mld snooping enable vlan command disables MLD snooping for VLANs.

By default, MLD snooping is disabled for all VLANs.

Format

mld snooping enable [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

undo mld snooping enable [ vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> } ]

Parameters

None

Parameter

Description

Value

vlan vlan-id1 [ to vlan-id2 ]

Specifies a VLAN or VLAN range for which MLD snooping is to be enabled. vlan-id1 and to vlan-id2 specify a VLAN range.

  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. If to vlan-id2 is not specified, MLD snooping is enabled only for the VLAN specified by vlan-id1.

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

vlan-id2 must be greater than vlan-id1.

all

Disables MLD snooping for all VLANs.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MLD snooping runs on a Layer 2 device that is deployed between a Layer 3 device and user hosts. The Layer 2 device can then maintain multicast forwarding entries by listening to multicast protocol messages transmitted between the upstream device and hosts, controlling multicast data packet forwarding. Enabling MLD snooping is the prerequisite for implementing Layer 2 multicast. To enable MLD snooping for specific VLANs, run the mld snooping enable vlan command.

Precautions

The mld snooping enable command fails to be run in a VLAN view in any of the following conditions:
  • The MLD snooping configuration for a VLAN conflicts with the mld on-demand command configuration for a VLANIF interface.

Example

# Enable MLD snooping for multiple VLANs.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable vlan 2 to 10

mld snooping group-policy

Function

The mld snooping group-policy command sets the range of multicast groups that hosts can join.

The undo mld snooping group-policy command cancels the configuration.

By default, hosts can join any multicast groups.

Format

# Command syntax in the VLAN view:

mld snooping group-policy { acl6-number | acl6-name acl6-name } [ version number ]

undo mld snooping group-policy

# Command syntax in the interface view:

mld snooping group-policy { acl6-number | acl6-name acl6-name } [ version number ] { vlan vlan-id1 [ to vlan-id2 ] &<1-10> }

undo mld snooping group-policy [ { acl6-number | acl6-name acl6-name } [ version number ] ] { vlan { all | vlan-id [ to vlan-id2 ] &<1-10> } }

Parameters

Parameter Description Value
acl6-number Specifies an ACL6 number. The value is an integer ranging from 2000 to 3999.
acl6-name acl6-name Specifies the name of a named ACL6. The value is a string of 1 to 32 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.
version number Specifies an MLD version.

The value can be 1 or 2.For the CE6810LI, the value can only be 1.

vlan { vlan-id1 [ to vlan-id2 ] }

Specifies a VLAN or VLAN range to which the group policy is to be applied. vlan-id1 and to vlan-id2 specify a VLAN range.

  • vlan-id1 specifies the start VLAN ID.

  • to vlan-id2 specifies the end VLAN ID. If to vlan-id2 is not specified, the group policy is applied only to the VLAN specified by vlan-id1.

The values of vlan-id1 and vlan-id2 are integers ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.

vlan-id2 must be greater than vlan-id1.

all Indicates all VLANs. -

Views

VLAN view, VLAN-range view, Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To limit the range of multicast groups that hosts can join, run the mld snooping group-policy command.

Prerequisites

MLD snooping has been enabled globally and in the VLAN view.

Rules have been configured in the specified ACL6.

Configuration Impact

After the mld snooping group-policy command is run, hosts cannot join multicast groups out of the configured multicast group range. If the mld snooping group-policy command is run more than once in the same view, the latest configuration overrides the previous one.

Precautions

If an MLD version is not set, the device will apply the configured group policy to all MLDv1 and MLDv2 messages. The ACL6 configured for the group policy must be a basic ACL6.

Example

# Allow users in VLAN 2 to join only the multicast group FF15::1.
<HUAWEI> system-view
[~HUAWEI] acl ipv6 2008
[*HUAWEI-acl6-basic-2008] rule permit source ff15::1 128
[*HUAWEI-acl6-basic-2008] quit
[*HUAWEI] vlan 2
[*HUAWEI-vlan2] mld snooping group-policy 2008

mld snooping ip-source-policy

Function

The mld snooping ip-source-policy command configures a filtering policy to permit or deny MLD Report messages of hosts in a VLAN, controlling the multicast groups that the hosts can join.

The undo mld snooping ip-source-policy command restores the default configuration.

By default, no filtering policy is configured, so that all hosts in a VLAN can join multicast groups.

Format

mld snooping ip-source-policy { acl6-number | acl6-name acl6-name }

undo mld snooping ip-source-policy

Parameters

Parameter Description Value
acl6-number Specifies an ACL6 number. The value is an integer ranging from 2000 to 3999. The ACL6 is used to permit or deny services requests of hosts in a VLAN based on source or destination addresses carried in MLD Report messages.
acl6-name acl6-name Specifies the name of a named ACL6. The value is a string of 1 to 32 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To improve multicast service deployment security, run the mld snooping ip-source-policy command to configure a filtering policy to permit or deny MLD Report messages of hosts in a VLAN.

If you specify a basic ACL6, the device filters the MLD Report messages based on the carried source IP addresses. If an advanced ACL6 is specified, the device filters MLD Report messages based on the carried source and destination addresses.

Precautions

This command takes effect only for MLD Report messages.

Configuration Impact

After the command is run, MLD Report messages are discarded if the carried source or destination IP addresses match the deny clause in the specified ACL6.

Example

# Configure the device to deny a host of VLAN 11 if its MLD Report messages carry the source IP address 1::1.

<HUAWEI> system-view
[~HUAWEI] acl ipv6 2000
[*HUAWEI-acl6-basic-2000] rule deny source 1::1 128
[*HUAWEI-acl6-basic-2000] rule permit source any
[*HUAWEI-acl6-basic-2000] quit
[*HUAWEI] vlan 11
[*HUAWEI-vlan11] mld snooping ip-source-policy 2000

mld snooping learning disable

Function

The mld snooping learning disable command disables an interface in VLANs to dynamically learn forwarding entries.

The undo mld snooping learning disable command disables the function.

By default, interfaces in VLANs are enabled to dynamically learn forwarding entries.

Format

mld snooping learning disable vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

undo mld snooping learning disable vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

Parameters

Parameter

Description

Value

vlan { vlan-id1 [to vlan-id2 ] }
Specifies a VLAN or VLAN range to which an interface belongs. vlan-id1 and to vlan-id2 specify a VLAN range.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. If to vlan-id2 is not specified, the forwarding entry learning function is enabled only for the interface in the VLAN specified by vlan-id1.

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

vlan-id2 must be greater than vlan-id1.

all

Disables an interface in all VLANs to learn forwarding entries.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

To enable an interface to dynamically learn forwarding entries in MLD Report messages received, run the mld snooping learning command. After this command is run for an interface, the interface can be added to a multicast group manually. However, after the undo mld snooping learning command is run for an interface, the interface cannot dynamically learn forwarding entries, but can still be added to a multicast group manually.

If the undo mld snooping learning command is run more than once, all configurations take effect.

Example

# Disable 10GE 1/0/1 in VLAN 3 and VLAN 4 from dynamically learning forwarding entries.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] vlan 3
[*HUAWEI-vlan3] mld snooping enable
[*HUAWEI-vlan3] quit
[*HUAWEI] vlan 4
[*HUAWEI-vlan4] mld snooping enable
[*HUAWEI-vlan4] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk allow-pass vlan 3 to 4
[*HUAWEI-10GE1/0/1] mld snooping learning disable vlan 3 to 4

mld snooping prompt-leave

Function

The mld snooping prompt-leave command enables prompt leave.

The undo mld snooping prompt-leave command disables prompt leave.

By default, prompt leave is disabled.

Format

mld snooping prompt-leave [ group-policy { acl6-number | acl6-name acl6-name } ]

undo mld snooping prompt-leave

Parameters

Parameter Description Value
group-policy Configures a group policy to enable prompt leave for member interfaces of a specified or all multicast groups. -
acl6-number Specifies the number of an ACL6. The value is an integer ranging from 2000 to 3999.
acl6-name acl6-name Specifies the name of a named ACL6. The value is a string of 1 to 32 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After receiving an MLD Done message for a multicast group from a host, a device enabled with prompt leave directly deletes the forwarding entry of the multicast group, without sending group-specific Query messages. If an interface is connected to only one host, the prompt leave mechanism can be used to shorten the response delay and release bandwidth resources in a timely manner.

If group-policy acl6-number or group-policy acl6-name acl6-name is not set, prompt leave will take effect for all multicast groups.

If group-policy acl6-number or group-policy acl6-name acl6-name is set, prompt leave will take effect for groups of which the MLD Done messages meet the permit clause of the ACL6.

  • If a multicast group meets the permit clause of the specified ACL6, the device deletes the member interface of the group immediately after receiving an MLD Done message of this group and notifies the upstream device of the user leave event.

  • If a multicast group does not meet the permit clause of the specified ACL6, the device notifies the upstream device of a user leave event after receiving an MLD Done message of a group. The upstream device can then send a group-specific Query message to learn whether members exist in the group.

Prerequisites

MLD snooping has been enabled globally and in the VLAN view.

Rules have been configured in the specified ACL6. By default, the ACL6 rule in which the action is permit applies to all multicast groups. To enable prompt leave for a multicast group, you need to run the rule (ACL6 view) deny source any command.

Configuration Impact

Do not enable prompt leave for a VLAN if a multicast member interface connects to multiple receiver hosts. If a member interface connects to multiple receivers, the prompt-leave-capable device will interrupt the multicast services of a group for all receivers of the group when a receiver leaves the multicast group.

If the mld snooping prompt-leave command is run more than once in the same view, the latest configuration overrides the previous one.

Example

# Enable prompt leave for VLAN 2 member interfaces of the multicast group FF18::1.

<HUAWEI> system-view
[~HUAWEI] acl ipv6 2008
[*HUAWEI-acl6-basic-2008] rule permit source ff18::1 64
[*HUAWEI-acl6-basic-2008] quit
[*HUAWEI] vlan 2
[*HUAWEI-vlan2] mld snooping prompt-leave group-policy 2008

mld snooping proxy

Function

The mld snooping proxy command enables MLD snooping proxy in a VLAN.

The undo mld snooping proxy command disables MLD snooping proxy in a VLAN.

By default, MLD snooping proxy is disabled in a VLAN.

Format

mld snooping proxy

undo mld snooping proxy

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Forwarding entries are set up based on MLD messages exchanged between a Layer 3 device and user hosts. If there are many user hosts, redundant MLD messages increase the workload of the Layer 3 device.

MLD snooping proxy can address this problem. MLD snooping proxy provides two functions: querier and unified message transmission, which should be both implemented on the Layer 3 device without MLD snooping proxy. With the querier function, a Layer 2 device can send MLD Query messages. With the unified message transmission function, a Layer 2 device can receive and terminate MLD Query messages sent from users, and then send them in a unified manner. To enable MLD snooping proxy, run the mld snooping proxy command, which helps reduce the burden of the Layer 3 device and saves bandwidth resources on the Layer 2 and Layer 3 devices.

Precautions

The mld snooping proxy command fails to be run in a VLAN view in any of the following conditions:
  • The querier function is enabled in the VLAN.

  • IPv6 PIM is enabled on Layer 3 VLANIF interface of the VLAN.

  • Report message suppression is enabled in the VLAN using the mld snooping report-suppress command.

Configuration Impact

After MLD snooping proxy is enabled on a device, users' Report messages will be terminated on the device and cannot be sent to upstream devices.

Example

# Enable MLD snooping proxy in VLAN 10.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping proxy

mld snooping proxy router-protocol-pass

Function

The mld snooping proxy router-protocol-pass command configures an MLD snooping proxy-enabled device to transparently transmit MLD Report messages.

The undo mld snooping proxy router-protocol-pass command restores the default configuration.

By default, an MLD snooping proxy-enabled device does not transparently transmit MLD Report messages.

Format

mld snooping proxy router-protocol-pass

undo mld snooping proxy router-protocol-pass

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If MLD snooping proxy is enabled on a Layer 2 device and its upstream device, the devices will learn the same multicast forwarding entries and constantly exchange MLD Query and Report messages, causing multicast entries not to age. Such multicast protocol and data message forwarding is meaninglessly. To address this issue, run the mld snooping proxy router-protocol-pass command to enable the Layer 2 device to transparently transmit MLD Report messages from a router interface to other router interfaces.

Running the mld snooping proxy router-protocol-pass command is recommended on a network where an MLD snooping proxy-enabled device is dual-homed to upstream devices.

Prerequisites

MLD snooping proxy has been enabled for the VLAN using the mld snooping proxy command.

Configuration Impact

After the mld snooping proxy command is run, the processing action for MLD Report messages changes on router interfaces of the MLD snooping proxy-enabled device. The device does not terminate the protocol messages received from router interfaces but forwards them to upstream devices.

Example

# Configure router interfaces in VLAN 10 to transparently transmit MLD Report messages.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping proxy router-protocol-pass
Related Topics

mld snooping querier enable

Function

The mld snooping querier enable command enables the querier function for a VLAN.

The undo mld snooping querier enable disables the querier function for a VLAN.

By default, the querier is disabled for a VLAN.

Format

mld snooping querier enable

undo mld snooping querier enable

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the querier function is enabled using the mld snooping querier enable command on a Layer 2 device, this device will send MLD Query messages, freeing its interworking upstream device from doing this. The Layer 2 device will then also create and maintain multicast forwarding entries to forward data at the link layer.

Before running the mld snooping querier enable command, note the following points:
  • Static multicast groups have been configured on the upstream device. Otherwise, user join messages cannot be sent to the upstream device, and multicast data flows cannot be sent to receivers.

  • If the links from a multicast source to user hosts are on the same Layer 2 network, the querier function can be enabled on a Layer 2 device. This does not affect the normal receiving of multicast data packets.

Precautions

The mld snooping querier enable command fails to be run in a VLAN view in any of the following conditions:

  • IPv6 PIM is enabled for Layer 3 VLANIF interfaces of the VLAN.

  • The proxy function is enabled for the VLAN using the mld snooping proxy command.

Example

# Enable the querier function for VLAN 10.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping querier enable

mld snooping querier-election

Function

The mld snooping querier-election command enables the querier election function.

The undo mld snooping querier-election command disables the querier election function.

By default, querier election is disabled for a VLAN.

Format

mld snooping querier-election

undo mld snooping querier-election

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If queriers are enabled on multiple devices in the same VLAN, run the mld snooping querier-election command to elect a device that sends MLD Query messages with the minimum source IP address as the querier, thus freeing the upstream device from sending Query messages to users. To set source IP addresses for MLD Query messages, run the mld snooping send-query source-address command. By default, the source IP addresses of MLD Query messages are FF80::.

Prerequisites

The querier function has been enabled for a VLAN using the mld snooping querier enable command. Otherwise, the querier election function does not take effect.

Example

# Enable the querier election function for VLAN 10.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping querier-election

mld snooping query interval

Function

The mld snooping query interval command sets an interval at which the querier sends general Query messages.

The undo mld snooping query interval command restores the interval.

The default interval is 125s.

Format

mld snooping query interval query-interval

undo mld snooping query interval

Parameters

Parameter Description Value
query-interval Sets an interval at which the querier sends general Query messages. The value is an integer ranging from 1 to 65535, in seconds. The default value is 125.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The mld snooping query interval command provides the following functions:

  • Sets an interval at which the querier sends general Query messages.

    After the querier function is enabled and an interval is set using the mld snooping query interval command, the querier sends general Query messages at the configured interval to maintain group member information. The shorter the interval is, the more sensitive the device is and the more bandwidth and system resources are occupied.

    The interval for the querier to send general Query messages must be greater than the maximum time for the querier to wait for responses from hosts. Otherwise, multicast group members may be deleted mistakenly.

  • Adjusts the aging time of member interfaces.

    After receiving a Report message from a downstream host, the device sets the aging time of the member interface using the following formula: Member interface aging time = Number of group-specific Query messages to be sent x Interval at which general Query messages are sent + Maximum time for the the querier to wait for responses from downstream hosts. By default, the device sets the aging time to 130s. Run the mld snooping query interval command to set an interval at which general Query messages are sent, run the mld snooping robust-count command to set the number of group-specific Query messages to be sent, and run the mld snooping query max-response-time command to set the maximum time that the querier waits for responses from downstream hosts.

Prerequisites

MLD snooping has been enabled using the mld snooping enable command.

Precautions

To use the mld snooping query interval configuration as a factor of adjusting the member interface aging time, set the same interval as that specified on its upstream device. Otherwise, multicast data transmission will be interrupted between the Layer 2 and Layer 3 devices.

Configuration Impact

If the mld snooping query interval command is run more than once in the same view, the latest configuration overwrites the previous one.

Example

# Configure the querier in VLAN 10 to send general Query messages at an interval of 100s.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping query interval 100

mld snooping query ip-source-policy

Function

The mld snooping query ip-source-policy command configures an MLD Query message filtering policy for a VLAN.

The undo mld snooping query ip-source-policy command restores the default configuration.

By default, no MLD Query message filtering policy is configured in a VLAN. With this default setting, all hosts in the VLAN to join multicast groups.

Format

mld snooping query ip-source-policy { acl6-number | acl6-name acl-name }

undo mld snooping query ip-source-policy

Parameters

Parameter Description Value
acl6-number Specifies the number of a basic ACL6. The ACL6 defines source addresses based on which MLD Query messages in a VLAN are permitted or denied. The value is an integer ranging from 2000 to 3999.
acl6-name acl6-name Specifies the name of a named ACL6. The value is a string of 1 to 32 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

Views

VLAN view, or VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

To enable a device to filter out specific MLD Query messages, run the mld snooping query ip-source-policy command to configure an MLD Query message filtering policy, improving the multicast service security. This command takes effect only for MLD Query messages.

Example

# Enable the device to deny the MLD Query messages with the source IP address 100::1 64 in VLAN 11.

<HUAWEI> system-view
[~HUAWEI] acl ipv6 2000
[*HUAWEI-acl6-basic-2000] rule deny source 100::1 64
[*HUAWEI-acl6-basic-2000] rule permit source any
[*HUAWEI-acl6-basic-2000] quit
[*HUAWEI] vlan 11
[*HUAWEI-vlan11] mld snooping query ip-source-policy 2000

mld snooping query last-member-interval

Function

The mld snooping query last-member-interval command sets an interval at which a querier sends group-specific or source-and group-specific Query messages.

The undo mld snooping query last-member-interval command restores the default interval.

By default, a querier sends group-specific or source-and group-specific Query messages at an interval of 1s.

Format

mld snooping query last-member-interval lastmember-queryinterval

undo mld snooping query last-member-interval

Parameters

Parameter Description Value
lastmember-queryinterval Sets an interval at which a querier sends group-specific or source-and group-specific Query messages. The value is an integer ranging from 1 to 5, in seconds.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The mld snooping query last-member-interval command provides the following functions:

  • Sets an interval at which a querier sends group-specific or source-and group-specific multicast group Query messages.

    After the querier function is enabled, run this command to set a shorter interval if multicast group members change frequently. The device can then rapidly respond to users' requests.

  • Adjusts the aging time of member interfaces.

    After receiving an MLD Snooping Done message from a host, a device sets the aging time of the corresponding member interface based on the following formula: Member interface aging time = Interval at which group-specific or source-and group-specific Query messages are sent x Number group-specific or source-and group-specific multicast group Query messages to be sent. By default, the device sets the aging time to 2s. To adjust the aging time, run the mld snooping query last-member-interval command to set the message sending interval, and run the mld snooping robust-count command to set the number of group-specific or source-and group-specific multicast group Query messages to be sent.

    If the querier receives a Report message for the multicast group from another host within the robust-count x lastmember-queryinterval period, it continues to maintain the member interface information for the group. Otherwise, the querier considers that there is no member of the group on the network segment, and does not maintain the member interface information for the group any more.

Prerequisites

MLD snooping has been enabled globally and in the VLAN view.

Precautions

To use the mld snooping query last-member-interval command configuration as a factor of adjusting the member interface aging time, set the same interval as that specified on its upstream device. Otherwise, multicast data transmission will be interrupted between the Layer 2 and Layer 3 devices.

Configuration Impact

If the mld snooping query last-member-interval command is run more than once in the same VLAN view, the latest configuration overrides the previous one.

Example

# Configure the querier in VLAN 2 to send group-specific or source-and group-specific Query messages at an interval of 2s.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] mld snooping query last-member-interval 2

mld snooping query max-response-time

Function

The mld snooping query max-response-time command sets the maximum time for a querier to wait for responses from downstream hosts.

The undo mld snooping query max-response-time restores the default value.

By default, the maximum time for a querier to wait for responses from downstream hosts is 10s.

Format

mld snooping query max-response-time max-response-time

undo mld snooping query max-response-time

Parameters

Parameter Description Value
max-response-time Sets the maximum time for a querier to wait for responses from downstream hosts. The value is an integer ranging from 1 to 25, in seconds.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The mld snooping query max-response-time command provides the following functions:

  • Sets the maximum time for a querier to wait for responses from downstream hosts.

    After the querier function is enabled, if you want hosts to rapidly respond to the querier, set a smaller value for max-response-time; if you want to prevent traffic congestions caused by frequently sent response messages, set a larger value for max-response-time.

    Ensure that max-response-time is smaller than the interval at which general Query messages are sent; otherwise, multicast group member entries may be deleted mistakenly.

  • Adjusts the aging time of member interfaces.

    After receiving an MLD Report message from a host, a device sets the aging time of the corresponding member interface based on the following formula: Member interface aging time = Number of group-specific Query messages to be sent x Interval at which general Query messages are sent + Maximum time for a querier to wait for responses from downstream hosts. By default, the device sets the aging time to 130s. To adjust the aging time, run the mld snooping query max-response-time command to set the maximum time for a querier to wait for responses from downstream hosts, run the mld snooping robust-count command to set the number of group-specific Query message to be sent, and run the mld snooping query interval command to set the sending interval of general Query messages.

Prerequisites

MLD snooping has been enabled using the mld snooping enable command.

Precautions

To use the mld snooping query max-response-time configuration as a factor of adjusting the member interface aging time, set the same maximum wait time as that specified on its upstream device. Otherwise, multicast data transmission will be interrupted between the Layer 2 and Layer 3 devices.

Configuration Impact

If the mld snooping query max-response-time command is run more than once in the same view, the latest configuration overrides the previous one.

Example

# Set the maximum time for a querier in VLAN 10 to wait for responses from downstream hosts to 20s.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping query max-response-time 20

mld snooping report-suppress

Function

The mld snooping report-suppress command enables MLD Report message suppression.

The undo mld snooping report-suppress command disables MLD Report message suppression.

By default, MLD Report message suppression is disabled.

Format

mld snooping report-suppress

undo mld snooping report-suppress

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The mld snooping report-suppress command allows a device to respond only one MLD Report message to an MLD Query message of a group sent by the upstream multicast switch, regardless of the number of interfaces that have joined the same multicast group. This function reduces network-side traffic.

Example

# Enable MLD Report message suppression in VLAN 10.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping report-suppress

mld snooping require-router-alert

Function

The mld snooping require-router-alert command configures interfaces in a VLAN to discard MLD messages that do not carry the Router-Alert option in IP headers.

The undo mld snooping require-router-alert command restores the default configuration.

By default, the MLD messages accepted by a device from a VLAN do not need to carry the Router Alert option.

Format

mld snooping require-router-alert

undo mld snooping require-router-alert

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Router-Alert is a mechanism used to identify protocol messages. Messages carrying the Router-Alert option are delivered to the routing protocol layer for processing.

By default, devices do not check whether messages carry Router-Alert options for the sake of compatibility, and send all MLD messages to the upper layer for processing. To improve device performance, reduce costs, and ensure protocol security, run the mld snooping require-router-alert command to configure a device to discard MLD messages that do not carry Router-Alert options. After the command is run, the device checks whether a received MLD message carries the Router-Alert option and discards the message if it does not carry the Router-Alert option.

Prerequisites

MLD snooping has been enabled using the mld snooping enable command.

Example

# Configure interfaces in VLAN 2 to discard MLD messages that do not carry the Router-Alert option in IP headers.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] vlan 2
[*HUAWEI-vlan2] mld snooping require-router-alert

mld snooping robust-count

Function

The mld snooping robust-count command configures the robustness variable. The robustness variable decides the number of group-specific Query messages to be sent by the querier.

The undo mld snooping robust-count command restores the default robustness variable.

By default, the robustness variable is 2.

Format

mld snooping robust-count robust-count

undo mld snooping robust-count

Parameters

Parameter Description Value
robust-count robust-count Sets the number of group-specific Query messages to be sent by the querier. The value is an integer ranging from 2 to 5.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The mld snooping robust-count command provides the following functions:

  • Adjusts the number of group-specific Query messages to be sent by a querier, preventing messages loss on a network.

    When receiving an MLD Done message of a multicast group, the device sends group-specific Query messages for robust-count times to check whether there are any other members in this group. Run the mld snooping query last-member-interval command to set the interval at which group-specific Query messages are sent.

  • Changes the aging time of member interfaces.

    After receiving a Report messages from a downstream host, the device sets the aging time of the member interface using the following formula: Member interface aging time = Number of group-specific Query messages to be sent x Interval at which general Query messages are sent + Maximum time for the querier to wait for responses from downstream hosts. By default, the device sets the aging time to 130s. Run the mld snooping query interval command to set the interval at which general Query messages are sent, and run the mld snooping query max-response-time command to set the maximum time for the querier to wait for responses from downstream hosts.

    After receiving a Done message, the device sets the aging time of the member interface using the following formula: Member interface aging time = Interval at which group-specific Query messages are sent x Number of group-specific Query messages to be sent. By default, the device sets the aging time to 2s. Run the mld-snooping robust-count command to set the number of group-specific Query messages to be sent, and run the mld snooping query last-member-interval command to set the interval at which group-specific Query messages are sent.

    If the querier receives a Report message for the multicast group from another host within the robust-count x lastmember-queryinterval period, it continues to maintain the member interface information for the group. If the querier does not receive a Report message for the multicast group within this period, the querier considers that there is no member of the group on the network segment, and does not maintain the member interface information for the group.

Prerequisites

MLD snooping has been enabled using the mld snooping enable command.

Precautions

To use the mld snooping robust-count configuration as a factor of adjusting the member interface aging time, set the same number of group-specific Query messages to be sent as that specified on its upstream device. Otherwise, multicast data transmission will be interrupted between the Layer 2 and Layer 3 devices.

Configuration Impact

If the mld snooping robust-count command is run more than once in the same view, the latest configuration overwrites the previous one.

Example

# Configure the querier of VLAN 10 to send five group-specific Query messages.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping robust-count 5

mld snooping router-aging-time

Function

The mld snooping router-aging-time command sets the aging time of dynamic router interfaces.

The undo mld snooping router-aging-time command restores the default value.

By default, the aging time of dynamic router interfaces is 180s or equals the Holdtime value contained in a Protocol Independent Multicast (PIM) Hello message.

Format

mld snooping router-aging-time router-aging-time

undo mld snooping router-aging-time

Parameters

Parameter Description Value
router-aging-time router-aging-time

Specifies the aging time of dynamic router interfaces.

The value is an integer ranging from 1 to 1000, in seconds.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Network congestion may delay the transmission of a Query message from an MLD Querier. If a dynamic router interface does not receive any MLD Query message with source IP addresses other than 0::0 or PIM hello message within the aging time, it becomes a non-router interface. The device will then not send Report or Done messages to the interface. This may lead to multicast data transmission interruption. Therefore, if a network is instable, run the mld snooping router-aging-time command to set larger aging time for dynamic router interfaces. The device resets the aging time of a dynamic router interface when the interface receives an MLD Query or PIM Hello message from the interface.

Configuration Impact

If the remaining aging time of a dynamic router interface is less than router-aging-time, the device sets the aging time of the dynamic router port to router-aging-time, irrespective of whether the device receives a PIM Hello messages or MLD Query message from the interface.

Example

# Set the aging time of dynamic router interfaces in VLAN 10 to 500s.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping router-aging-time 500

mld snooping router-learning

Function

The mld snooping router-learning command disables router interfaces from dynamically learning forwarding entries.

The undo mld snooping router-learning command enables router interfaces to dynamically learn forwarding entries.

By default, router interfaces are enabled to dynamically learn forwarding entries.

Format

mld snooping router-learning disable

undo mld snooping router-learning disable

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a device enabled with MLD snooping, interfaces that receive MLD general Query messages with source IP addresses other than 0::0 or Protocol Independent Multicast (PIM) Hello packets are considered as dynamic router interfaces. The device records all router interfaces in a list. Using this mechanism, the device is incapable of controlling data forwarding to users. To resolve this issue, run the undo mld snooping router-learning disable command to disable router interfaces in a VLAN from dynamically learning forwarding entries.

Prerequisites

MLD snooping has been enabled using the mld snooping enable command.

Follow-up Procedure

Run the mld snooping static-router-port command to configure static router interfaces.

Configuration Impact

After the undo mld snooping router-learning command is run, interfaces in the specified VLAN do not listen to MLD Query messages and static router interfaces must be configured.

Precautions

If multicast VLAN is enabled for a VLAN, do not run the undo mld-snooping router-learning command.

Example

# Enable interfaces in VLAN 10 to dynamically learn forwarding entries.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] undo mld snooping router-learning disable

mld snooping send-query enable

Function

The mld snooping send-query enable command enables the device to send MLD Query messages to non-router interfaces when the network topology changes.

The undo mld snooping send-query enable command disables the device from sending MLD Query messages to non-router interfaces when the network topology changes.

By default, the device is disabled from sending MLD Query messages to non-router interfaces when the network topology changes.

Format

mld snooping send-query enable

undo mld snooping send-query enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the network topology changes, the device receives a topology change event. By default, the device does not send MLD general Query messages in this case. The network topology change triggers ring network protocol recalculation, but multicast data messages cannot be switched to the new path immediately. To enable multicast data flows to be switched to the new forwarding path immediately after the network topology changes, run the mld snooping send-query enable command to enable the device to send MLD general Query messages to non-router interfaces upon topology changes to learn updated router interface information. This function therefore ensures non-stop forwarding of multicast data flows. Updated interface information includes:

  • Router interfaces: In the MSTP protocol networking, MLD general Query messages are sent to all non-router interfaces.

  • Member interfaces: After receiving MLD general Query messages, hosts that still require multicast services reply with MLD Report messages. The device then updates information about multicast member interfaces.

Follow-up Procedure

The mld snooping send-query enable command is mainly used for ring networks. When a ring network topology changes, the device sends an MLD Query message with the source IP address FE80::. To change the source IP address, run the mld snooping send-query source-address command.

Prerequisites

MLD snooping has been enabled globally. Ring network protocols have been enabled on the device.

Example

# Enable the device to send MLD Query messages to non-router interfaces when the network topology changes.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] mld snooping send-query enable

mld snooping send-query source-address

Function

The mld snooping send-query source-address command sets a source IP address for MLD Query messages.

The undo mld snooping send-query source-address command restores the source IP address to FE80::.

By default, the source IP address of an MLD Query message is FE80::.

Format

mld snooping send-query source-address ip-address

undo mld snooping send-query source-address

Parameters

Parameter Description Value
ip-address Specifies a source IP address for MLD general Query messages.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the topology of a Layer 2 ring network changes, interfaces in a relevant VLAN will receive a link change event. After the mld snooping send-query source-address command is run on a device on the ring network, the device will send MLD general Query messages with the default source address FE80:: to all non-router interfaces in the VLAN, so that the other devices can quickly update router interface information.

If FE80:: is being used by other devices, run the mld snooping send-query source-address command to set a new source IP address for MLD General Query messages.

Example

# Set the source IP address to FE80:1::1 for MLD general Query messages.

<HUAWEI> system-view
[~HUAWEI] mld snooping send-query source-address fe80:1::1

mld snooping send-router-alert disable

Function

The mld snooping send-router-alert disable command configures the device to add the Router Alert option in the IP header of an MLD message sent to a specified VLAN.

The undo mld snooping send-router-alert disable command configures the device not to add the Router Alert option in the IP header of an MLD messages sent to a specified VLAN.

By default, the device adds the Router Alert option in the IP header of an MLD messages sent to a VLAN.

Format

mld snooping send-router-alert disable

undo mld snooping send-router-alert disable

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Router Alert is a mechanism used to identify protocol messages. Messages carrying the Router Alert option are delivered to the routing protocol layer for processing.

By default, devices do not check whether messages carry the Router Alert option for the sake of compatibility, and send all MLD messages to the upper layer for processing. To improve device performance, reduce costs, and ensure protocol security, run the undo mld snooping send-router-alert disable command to configure the device not to add the Router-Alert option in the IP header of an MLD messages sent to a specified VLAN.

Example

# Configure the device not to add the Router Alert option in the IP header of an MLD messages sent to VLAN 2.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] undo mld snooping send-router-alert disable

mld snooping ssm-mapping

Function

The mld snooping ssm-mapping command configures the mapping between an any-source multicast group address in the source-specific multicast (SSM) range and a multicast source address.

The undo mld snooping ssm-mapping command deletes a configured mapping.

By default, no mapping is configured between an any-source multicast group address in the SSM range and a multicast source address.

NOTE:

The CE6810LI does not support this command.

Format

mld snooping ssm-mapping group-address mask-length source-address

undo mld snooping ssm-mapping group-address mask-length source-address

Parameters

Parameter Description Value
group-address Specifies an IPv6 multicast group address in the SSM range. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. And the value must be within the group address range defined in the SSM policy.
mask-length Specifies the mask length of an IPv6 multicast group address. The value is an integer ranging from 8 to 128.
ip-source-address Specifies an IPv6 multicast source address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The SSM mapping mechanism is used to convert MLDv1 Report messages into messages with (S, G) information. This mechanism enables hosts that do not support MLDv2 to enjoy SSM services. After a mapping is configured between a multicast group G and multicast source addresses such as S1 and S2, the device checks the group addresses of received MLDv1 Report messages. If the group addresses are in the SSM group address range, the device converts the messages into one or multiple MLDv2 IS_IN (S1, S2......) messages with the group address being G.

Precautions

SSM mapping has been enabled using the mld snooping ssm-mapping enable command.

If an SSM mapping policy is configured using the mld snooping ssm-mapping enable [ policy policy-name ] command, the mld snooping ssm-mapping command cannot be run to configure SSM source/group address mapping entries.

Example

# In VLAN10, configure a mapping between the multicast group address FF32::1 and the source address 1::1.
<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping ssm-mapping ff32::1 64 1::1

mld snooping ssm-mapping enable

Function

The mld snooping ssm-mapping enable command enables SSM mapping and specifies an SSM mapping policy.

The undo mld snooping ssm-mapping enable command disables SSM mapping.

By default, SSM mapping is disabled.

NOTE:

The CE6810LI does not support this command.

Format

mld snooping ssm-mapping enable [ policy policy-name ]

undo mld snooping ssm-mapping enable

Parameters

Parameter Description Value
policy policy-name Specifies the name of an SSM mapping policy. The value is a string of 1 to 31 case-insensitive characters, spaces not supported. The string can contain spaces if it is enclosed in double quotation marks (").

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide SSM services for multicast terminals that support only MLDv1, configure SSM mapping on the device. The SSM mapping mechanism is used to convert MLDv1 Report messages into messages with (S, G) information, allowing MLDv1-capable users to enjoy SSM services.

To enable SSM mapping in a VLAN, run the mld snooping ssm-mapping enable command. If the policy parameter is specified, an SSM mapping policy is applied to the VLAN.

Prerequisites

An SSM mapping policy has been configured using the ssm-mapping ipv6 policy command if you want to specify the policy parameter.

Precautions

  • If the policy parameter does not need to be specified:

    Run the mld snooping ssm-mapping enable command to enable SSM mapping. Enabling SSM mapping is the prerequisite for configuring SSM policies using the mld snooping ssm-mapping command in the VLAN view.

  • If the policy parameter needs to be specified:

    Running the mld snooping ssm-mapping enablepolicy policy-name command both enables SSM mapping and applies an SSM mapping policy to a VLAN.

NOTE:
The mld snooping ssm-mapping enable policy policy-name command cannot work with the mld snooping ssm-mapping group-address mask-length source-address command.

Example

# Enable SSM mapping in VLAN 11 and apply the SSM mapping policy iptv to this VLAN.
<HUAWEI> system-view
[~HUAWEI] ssm-mapping ipv6 policy iptv
[*HUAWEI] vlan 11
[*HUAWEI-vlan11] mld snooping ssm-mapping enable policy iptv

mld snooping ssm-policy

Function

The mld snooping ssm-policy command sets the source-specific multicast (SSM) group address range.

The undo mld snooping ssm-policy command restores the default configuration.

By default, the SSM group address range is FF3x::/32, where x cannot be 1 or 2.

Format

mld snooping ssm-policy { basic-acl6-number | acl6-name acl6-name }

undo mld snooping ssm-policy

Parameters

Parameter Description Value
basic-acl6-number Specifies the number of a basic IPv6 ACL. This ACL defines the range of IPv6 SSM group addresses. The value is an integer ranging from 2000 to 2999.
acl6-name acl6-name Specifies the name of a named basic IPv6 ACL. The value is a string of 1 to 32 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a user joins a multicast group in the any-source multicast (ASM) range but wants to enjoy the SSM service of the multicast group, run the mld snooping ssm-policy command to add the multicast group address to an SSM policy.

Configuration Impact

After the command is run, the group addresses defined in basic-acl6-number or acl6-name acl6-name are added to the SSM group address range. The specified group addresses can be beyond the default SSM group address range of FF3x::/32. Users with group addresses out of the SSM group address range can only enjoy ASM services if the group addresses are not added to the SSM range policy.

Prerequisites

A basic ACL6 or named ACL6 has been configured.

Precautions

If a multicast group address is added to the SSM group address range and MLDv1 users use this multicast address to receive SSM multicast services, the device does not delete the mapping (S, G) entry when it receives an MLDv1 Done message for this group. The (S, G) entry can be deleted through the multicast entry aging mechanism or can be deleted when the multicast device receives an MLDv2 Done message for this group.

Example

# In VLAN10, add the multicast group address FF15::1 64 to the SSM group address range.

<HUAWEI> system-view
[~HUAWEI] acl ipv6 2008
[~HUAWEI-acl6-basic-2008] rule permit source FF15::1 64
[*HUAWEI-acl6-basic-2008] quit
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping ssm-policy 2008 

mld snooping static-group

Function

The mld snooping static-group command configures static member interfaces for a multicast group.

The undo mld snooping static-group command cancels the configuration.

By default, no static member interfaces are configured for a multicast group.

Format

mld snooping static-group [ source-address source-address ] group-address group-address vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> }

undo mld snooping static-group[ source-address source-address ] group-address { all | group-address } vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }

mld snooping static-group [ source-address source-address ] group-address group-address1 to group-address2 vlan vlan-id

undo mld snooping static-group [ source-address source-address ] group-address group-address1 to group-address2 vlan vlan-id

Parameters

Parameter Description Value
source-address source-address Specifies a multicast source address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

group-address group-address Specifies a multicast group address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value ranges from FF00:: to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF.

group-address group-address1 to group-address2

Specifies multiple group addresses.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value ranges from FF00:: to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF.

vlan vlan-id Specifies a VLAN ID. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
vlan vlan-id1 Specifies a VLAN ID. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
vlan vlan-id2 Specifies a VLAN ID. The value of vlan-id2 must be greater than that of vlan-id1. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
all Indicates multicast group addresses of all VLANs. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If hosts need to regularly receive the data of a multicast group (including source-specific group) on an interface, run the mld snooping static-group command to configure the interface as a static member interface of the multicast group.

Prerequisites

MLD snooping has been enabled globally and in the VLAN view.

Configuration Impact

A static member interface does not respond to MLD Query messages. After the undo mld snooping static-group command is run on a static member interface, the interface does not initiate MLD Done messages any more.

If the mld snooping static-group command is run more than once, all configurations take effect.

Precautions

If the number of (S, G) entries of a group has reached the maximum value (128), no static entry will be created after the mld snooping static-group command is run. No entry containing this group address will be generated even after the reset mld snooping group all command is run in the system view to refresh entries.

Example

# Configure 10GE 1/0/1 in VLAN 2 as a static member interface of multicast group FF33::1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] mld snooping static-group group-address ff33::1 vlan 2

mld snooping static-group suppress-dynamic-join

Function

The mld snooping static-group suppress-dynamic-join command disables interfaces in a VLAN from forwarding Report and Done messages to upstream routers with static groups configured.

The undo mld snooping static-group suppress-dynamic-join command enables interfaces in a VLAN to forward Report and Done messages to upstream routers with static groups configured.

By default, interfaces in a VLAN are enabled to forward Report and Done messages to upstream routers with static groups configured.

Format

mld snooping static-group suppress-dynamic-join

undo mld snooping static-group suppress-dynamic-join

Parameters

None

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an upstream Layer 3 multicast device is a non-Huawei device and static groups are configured on the device, the device does not allow dynamic group join or leave. In this scenario, run the mld snooping static-group suppress-dynamic-join command on the Layer 2 device to disable interfaces in a VLAN from forwarding Report and Done messages to the upstream router.

Prerequisites

MLD snooping has been enabled globally and in the VLAN view.

Example

# Disable interfaces in VLAN 10 from forwarding Report and Done messages to router interfaces with static groups configured.

<HUAWEI> system-view
[~HUAWEI] mld snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping static-group suppress-dynamic-join

mld snooping static-router-port

Function

The mld snooping static-router-port command configures an interface as a static router interface.

The undo mld snooping static-router-port command cancels the configuration.

By default, an interface is a dynamic router interface.

Format

mld snooping static-router-port vlan { vlan-id [ to vlan-id ] } &<1-10>

undo mld snooping static-router-port vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }

Parameters

Parameter Description Value
vlan vlan-id Specifies a VLAN ID. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
all Indicates all VLANs. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If user hosts need to receive multicast data packets from an interface for a long period of time, run the mld snooping static-router-port command to configure the interface as a static router interface.

Prerequisites

MLD snooping has been enabled globally and in the VLAN view.

Configuration Impact

A static router interface never ages. A static router interface configuration can be canceled only by running the undo mld snooping static-router-port command.

If the mld snooping static-router-port command is run more than once, all configurations take effect.

Example

# Configure 10GE 1/0/1 as a static router interface of VLAN 2.

<HUAWEI> system-view
[~HUAWEI] interface 10ge1/0/1
[*HUAWEI-10GE1/0/1] mld snooping static-router-port vlan 2

mld snooping version

Function

The mld snooping version command sets the version of MLD messages that can be processed in MLD snooping.

The undo mld snooping version command restores the default value.

By default, the device can process MLDv1 and MLDv2 messages.

NOTE:

The CE6810LI does not support this command, and can process only MLDv1 messages.

Format

mld snooping version number

undo mld snooping version

Parameters

Parameter Description Value
number Indicates the version number of MLD. The value can be 1 or 2.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If hosts connected to a Layer 2 device support different MLD versions, run the mld snooping version command to set the version of MLD messages that can be processed.

If number is set to 1, only MLDv1 messages can be processed. If number is set to 2, both MLDv1 and MLDv2 messages can be processed.

Configuration Impact

When the MLD version is changed from 2 to 1,
  • The system immediately deletes all dynamically generated Layer 2 multicast forwarding entries.
  • The system processes statically configured Layer 2 multicast forwarding entries as follows:
    • If interfaces are configured to statically join multicast groups with no multicast source specified, the system does not delete the static MLD forwarding entries.
    • If interfaces are configured to statically join source-specific multicast groups, the system deletes the static forwarding entries. When the MLD version is changed to 2, the system re-generates the forwarding entries.

Example

# Set the MLD Snooping version in VLAN 10.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] mld snooping enable
[*HUAWEI-vlan1] mld snooping version 2

multicast layer-2 ipv6 source-lifetime

Function

The multicast layer-2 ipv6 source-lifetime command sets the aging time for (S, G) entries of multicast traffic in a specified VLAN.

The undo multicast layer-2 ipv6 source-lifetime command restores the default setting.

By default, the aging time is 210s for (S, G) entries of multicast traffic in a specified VLAN.

Format

multicast layer-2 ipv6 source-lifetime lifetime

undo multicast layer-2 ipv6 source-lifetime

Parameters

Parameter Description Value
source-lifetime lifetime

Sets the aging time for (S, G) entries of multicast traffic in a specified VLAN.

The value is an integer ranging from 60 to 65535, in seconds. The default value is 210.

Views

VLAN view, VLAN-range view

Default Level

2: Configuration level

Usage Guidelines

When a multicast source no longer sends multicast data flows, the source needs to be deleted. This requires constant probes on whether the source sends multicast data flows, deteriorating system performance. To address this problem, run the multicast layer-2 ipv6 source-lifetime command to set the aging time for entries of multicast traffic in a specified VLAN.

Example

# Set the aging time to 100s for entries of multicast traffic in VLAN 10.

<HUAWEI> system-view
[~HUAWEI]  mld snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] multicast layer-2 ipv6 source-lifetime 100

multicast layer-2 invalid-packet mld snooping

Function

The multicast layer-2 invalid-packet mld snooping command sets the maximum number of invalid Layer 2 multicast protocol messages that can be stored on the device.

The undo multicast layer-2 invalid-packet mld snooping command cancels the setting.

By default, a multicast device can store a maximum of 10 invalid Layer 2 multicast protocol messages.

Format

multicast layer-2 invalid-packet mld snooping max-count max-number

undo multicast layer-2 invalid-packet mld snooping

Parameters

Parameter Description Value
max-count max-number

Sets the maximum number of invalid Layer 2 multicast protocol messages that can be stored on the device.

The value is an integer ranging from 1 to 100.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If forwarding entries cannot be created on a multicast network, run the multicast layer-2 invalid-packet mld snooping command to set the maximum number of invalid Layer 2 multicast protocol messages that can be stored on the device.

Example

# Specify 20 as the maximum number of invalid Layer 2 multicast protocol messages that can be stored on the device.

<HUAWEI> system-view
[~HUAWEI] multicast layer-2 invalid-packet mld snooping max-count 20

reset mld snooping group

Function

The reset mld snooping group command clears dynamic outbound interface entries.

Format

reset mld snooping group { vlan { vlan-id | all } } | all }

Parameters

Parameter Description Value
vlan vlan-id Clears dynamic outbound interface entries of a specified VLAN. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
vlan all Clears dynamic outbound interface entries of all VLANs. -
all Clears dynamic outbound interface entries of all VLANs. -

Views

User view

Default Level

3: Management level

Usage Guidelines

After the reset mld snooping group command is run to clear dynamic outbound interface entries of a VLAN, hosts in the VLAN fail to receive multicast flows temporarily. The hosts can receive multicast flows again only after they send MLD Report messages and the switch re-generates outbound interface entries.

Example

# Clear dynamic outbound interface entries of all VLANs.

<HUAWEI> reset mld snooping group all

# Clear dynamic outbound interface entries of VLAN 2.

<HUAWEI> reset mld snooping group vlan 2

reset mld snooping statistics

Function

The reset mld snooping statistics command clears MLD snooping statistics.

Format

reset mld snooping statistics { vlan { vlan-id | all } | all }

Parameters

Parameter Description Value
vlan vlan-id Clears MLD snooping statistics of a specified VLAN. The value is an integer ranging from 1 to 4094. It cannot be any reserved VLAN IDs configured using the vlan reserved command.
vlan all Clears MLD snooping statistics of all VLANs. -
all Clears MLD snooping statistics of all VLANs. -

Views

User view

Default Level

3: Management level

Usage Guidelines

To clear MLD snooping statistics of all VLANs , run the reset mld snooping statistics all command.

To clear MLD snooping statistics of a specified VLAN, run the reset mld snooping statistics vlan vlan-id command.

To clear MLD snooping statistics of all VLANs, run the reset mld snooping statistics vlan all command.

Example

# Clear MLD snooping statistics of all VLANs.

<HUAWEI> reset mld snooping statistics all 

# Delete MLD snooping statistics of VLAN 2.

<HUAWEI> reset mld snooping statistics vlan 2

ssm-mapping ipv6 policy

Function

The ssm-mapping ipv6 policy command configures an IPv6 SSM mapping policy.

The undo ssm-mapping ipv6 policy command deletes an IPv6 SSM mapping policy.

By default, no IPv6 SSM mapping policy is configured.

NOTE:

The CE6810LI does not support this command.

Format

ssm-mapping ipv6 policy policy-name

undo ssm-mapping ipv6 policy policy-name

Parameters

Parameter Description Value
policy-name Sets an SSM mapping policy name. The value is a string of 1 to 31 case-insensitive characters, spaces not supported. The string can contain spaces if it is enclosed in double quotation marks (").

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If users connected different interfaces need to receive multicast service flows from different sources, run the ssm-mapping ipv6 policy command to configure an SSM mapping policy. Then, under the policy, configure mapping policies for different interfaces, so that MLD messages can map to different multicast sources.

Run the mld snooping ssm-mapping enable [ policy policy-name ] command on an interface to enable SSM mapping and configure a mapping policy for the interface. Otherwise, the ssm-mapping ipv6 policy command configuration in the system view is useless.

When an IPv6 SSM mapping policy is deleted, all configurations of the policy will be deleted.

Example

# Create an SSM mapping policy named ssmmap1 in the system view.

<HUAWEI> system-view
[~HUAWEI] ssm-mapping ipv6 policy ssmmap1
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 68710

Downloads: 374

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