The l2-multicast static-group command statically binds a multicast group to an AC-side interface in a VSI.
The undo l2-multicast static-group command deletes a static multicast from an AC-side interface.
By default, no multicast group is statically bound to an AC-side interface in a VSI.
l2-multicast static-group [ source-address source-address ] group-address group-address1 [ to group-address2 ] vsi vsi-name
undo l2-multicast static-group [ source-address source-address ] group-address { group-address1 [ to group-address2 ] | all } vsi vsi-name
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-address1 [ to group-address2 ] |
Specifies the IP address of a static multicast group. |
The value ranges from 224.0.1.0 to 239.255.255.255 in dotted decimal notation. |
vsi vsi-name |
Specifies the name of 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 | Deletes all static multicast groups. |
- |
GE interface view, 100GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, Eth-Trunk interface view
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 groups to interfaces. After a group is statically bound to an interface, users connected to this interface can keep receiving multicast data of the group over a long time.
Static Layer 2 multicast has the following advantages:
Prerequisites
IGMP snooping has been enabled globally using the igmp-snooping enable (system view) command.
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 a group or (S, G) is statically bound to or unbound from an interface, 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 an AC-side interface. To statically bind a group to a PW-side interface, run the l2-multicast static-group (VSI view) command.
On a VPLS network, ACs can be set up on different types of interfaces. The method to statically bind a group to an AC-side interface varies according to the type of the AC-side interface:
# Statically bind group 225.0.0.1 to GE0/0/1. (GE0/0/1 has been bound to the VSI company1. IGMP snooping has been enabled globally and in the VSI company1.)
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] l2-multicast static-group group-address 225.0.0.1 vsi company1