mld-snooping (VLAN view)

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.

Format

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

undo mld-snooping { ssm-only | asm-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

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >