l2-multicast static-group group-address vsi

Function

The l2-multicast static-group command configures a static member interface.

The undo l2-multicast static-group command cancels the configuration.

By default, a dynamic member interface is used.

Format

l2-multicast static-group [ source-address source-address ] group-address group-address vsi vsi-name

undo l2-multicast static-group [ source-address source-address ] group-address { group-address | all } vsi vsi-name

Parameters

Parameter Description Value
source-address source-address

Specifies a multicast source address.

The?value?can?be?a?Class?A,?Class?B,?or?Class?C?address,?in?dotted?decimal?notation.

group-address group-address

Specifies a multicast group address.

The value ranges from 224.0.1.0 to 239.255.255.255, in dotted decimal notation.

vsi vsi-name

Specifies a VSI.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

all

Indicates all VLAN/sVSIs/BDs multicast groups.

-

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

If hosts connected to an interface need to regularly receive data for a multicast group or a source-specific multicast group, the l2-multicast static-group command can be used to configure the interface as a static member interface.

Static member interfaces can be configured on different positions on a network to enable users to receive data for specific multicast groups or source-specific multicast groups regularly. The commands listed in the following table can be run in any order. Run one or more commands as required to configure static member interfaces. For details, see Table 1.

Prerequisites

IGMP snooping has been configured globally and in a VLAN/VSI/BD.

Configuration Impact

A static member interface does not respond to IGMP Query messages. After the undo l2-multicast static-group command is run on a static member interface, the interface does not initiate an IGMP Leave message.

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

Precautions

If the number of (S, G) entries relevant to a group has reached the maximum value (128), no static entry will be created after the l2-multicast static-group command is run. This means that no entry relevant to a static multicast group will be generated even after the reset igmp-snooping group all command is run in the system view to refresh entries.

Example

# Configure GigabitEthernet 0/1/1.1 as a static member interface and configure the static member interface to join multicast group 225.1.1.2.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi0
[*HUAWEI-vsi-vsi0] pwsignal ldp
[*HUAWEI-vsi-vsi0-ldp] vsi-id 100
[*HUAWEI-vsi-vsi0-ldp] quit
[*HUAWEI-vsi-vsi0] quit
[*HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] vlan-type  dot1q 10
[*HUAWEI-GigabitEthernet0/1/1.1] l2 binding vsi vsi0
[*HUAWEI-GigabitEthernet0/1/1.1] l2-multicast static-group source-address 10.1.1.1 group-address 225.1.1.2 vsi vsi0
# Configure GE 0/1/1 in a VLAN as a static member interface and configure the static member interface to join multicast group 224.1.1.1.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] port trunk allow-pass vlan 2
[*HUAWEI-GigabitEthernet0/1/1] l2-multicast static-group group-address 224.1.1.1 vlan 2
# When LDP is used as a signaling negotiation protocol, configure a PW interface as a static member interface and configure the static member interface to join multicast group 225.1.1.2 in a VSI named vsi0.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi0
[*HUAWEI-vsi-vsi0] pwsignal ldp
[*HUAWEI-vsi-vsi0-ldp] vsi-id 100
[*HUAWEI-vsi-vsi0-ldp] quit
[*HUAWEI-vsi-vsi0] l2-multicast static-group source-address 10.1.1.2 group-address 225.1.1.2 remote-peer 3.3.3.3
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >