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.
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 ]
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. |
- |
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:
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.
# 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