< Home

l2-multicast static-group (VSI view)

Function

The l2-multicast static-group command statically binds a multicast group to a PW-side interface in a VSI.

The undo l2-multicast static-group command deletes a static multicast from a PW-side interface.

By default, no multicast group is statically bound to a PW-side interface in a VSI.

Format

l2-multicast static-group [ source-address source-address ] group-address group-address remote-peer ip-address [ negotiation-vc-id vc-id ]

undo l2-multicast static-group [ source-address source-address ] group-address { group-address | all } remote-peer ip-address [ negotiation-vc-id vc-id ]

Parameters

Parameter

Description

Value

source-address source-address

Specifies the IP address of a multicast source.

The value is in dotted decimal notation.

group-address group-address

Specifies the IP address of a static multicast group.

The value of group-address ranges from 224.0.1.0 to 239.255.255.255 in dotted decimal notation.

remote-peer ip-address

Indicates the IP address of the remote peer.

The value is in dotted decimal notation.

negotiation-vc-id vc-id

Specifies a virtual circuit ID. Generally, this parameter is specified when two ends of a PW have different VSI names.

The vc-id parameter must specify an unused VC ID. That is, the specified VC ID cannot be the same as the VSI ID configured for any other VSI or the VC ID specified by negotiation-vc-id vc-id in another VSI. The value is an integer that ranges from 1 to 4294967295.

all

Deletes all static multicast groups.

-

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In addition to dynamic multicast forwarding entries generated by Layer 2 protocol protocols, you can configure static Layer 2 multicast forwarding entries by binding entries to interfaces. After a multicast group is statically bound to an interface, users connected to this interface can keep receiving multicast data of the multicast group for a long time.

Static Layer 2 multicast has the following advantages:

  • Protects the system against attacks from protocol packets.
  • Reduces the network delay by directly forwarding multicast packets based on static forwarding entries.
  • Prevents unregistered users from receiving multicast flows, improving information security and protecting service providers' interests.

Prerequisites

IGMP snooping has been enabled for VPLS using the igmp-snooping over-vpls enable command in the system view.

Precautions

  • The configuration takes effect only when IGMP snooping is enabled in the VSI using the igmp-snooping enable (VSI view) command.

  • A static multicast member port does not respond to Query messages sent from an IGMP querier. When an interface is statically bound to or unbound from a multicast group or (S, G), the interface does not send an IGMP Membership Report message or Leave message.

  • Interfaces on a VPLS network include PW-side interfaces and AC-side interfaces. This command statically binds a group to a PW-side interface. The method to statically bind a group to an AC-side interface varies according to the type of the AC-side interface:
    • If the AC-side interface bound to a VSI is a VLANIF interface, bind a group to the Layer 2 interface in the corresponding VLAN. For details, see the l2-multicast static-group command in "VLAN-based IGMP Snooping Configuration Commands."
    • If the AC-side interface bound to a VSI is a physical interface that has been switched to Layer 3 mode using the undo portswitch command, run the l2-multicast static-group [ source-address source-address ] group-address group-address1 [ to group-address2 ] vsi vsi-name command on this interface.

Example

# Statically bind group 224.1.1.1 to the PW (with the remote IP address as 1.1.1.1) in the VSI company1.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] igmp-snooping over-vpls enable
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] igmp-snooping enable
[HUAWEI-vsi-company1] l2-multicast static-group group-address 224.1.1.1 remote-peer 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >