mld-snooping group-policy (VLAN view)

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

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

undo mld-snooping group-policy

Parameters

Parameter Description Value
acl6-number

Specifies the number of a basic or advanced IPv6 ACL.

The number of a basic IPv6 ACL is an integer that ranges from 2000 to 2999; the number of an advanced IPv6 ACL ranges from 3000 to 3999.

acl6-name acl6-name

Specifies the name of a named ACL6.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

version number

Specifies an MLD version.

The value can be 1 or 2.

Views

VLAN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

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.

The

mld-snooping group-policy command fails to be run in a VLAN view in any of the following conditions:

  • A dot1q termination sub-interface is added to the VLAN.
  • The VLAN is a super or user VLAN.

Example

# Allow users in the VLAN 10 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] mld-snooping enable
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] mld-snooping enable
[*HUAWEI-vlan10] mld-snooping group-policy 2008
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >