mld-snooping group-policy qinq pe-vid ce-vid

Function

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

The undo mld-snooping group-policy qinq pe-vid ce-vid command cancels the configuration.

By default, interfaces can join any multicast groups.

Format

mld-snooping group-policy { acl-number | acl6-name acl-name } [ version number ] qinq pe-vid vlan-id ce-vid { vid1 [ to vid2 ] } &<1-10>

undo mld-snooping group-policy [ { acl-number | acl6-name acl-name } [ version number ] ] qinq pe-vid vlan-id ce-vid { vid1 [ to vid2 ] } &<1-10>

Parameters

Parameter Description Value
acl-number

Specifies an ACL6 number.

The value is an integer ranging from 2000 to 3999.

acl6-name acl-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.

vlan-id

Specifies an outer VLAN ID for a QinQ termination sub-interface.

The value is an integer ranging from 1 to 4094.

vid1

Specifies the start VLAN ID.

The value is an integer ranging from 1 to 4094.

to vid2

Specifies the end VLAN ID.

The value is an integer ranging from 1 to 4094. vid2 must be greater than vid1. vid2 and vid1 specify a VLAN range.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface 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.

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 on the QinQ termination sub-interface GE 0/1/1.1 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] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi1] pwsignal ldp
[*HUAWEI-vsi1-ldp] vsi-id 1
[*HUAWEI-vsi1-ldp] quit
[*HUAWEI-vsi1] quit
[*HUAWEI] mld-snooping enable
[*HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] l2 binding vsi vsi1
[*HUAWEI-GigabitEthernet0/1/1.1] mld-snooping group-policy 2008 qinq pe-vid 10 ce-vid 20
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >