The mld-snooping static-group command configures static IPv6 group memberships on an interface.
The undo mld-snooping static-group command deletes the static IPv6 group memberships on an interface.
By default, no static IPv6 group membership is configured on an interface.
mld-snooping static-group group-ipv6-address [ source source-ipv6-address ] vlan vlan-id
undo mld-snooping static-group { group-ipv6-address [ source source-ipv6-address ] vlan vlan-id | all }
Parameter |
Description |
Value |
---|---|---|
group-ipv6-address |
Specifies the IPv6 address of a multicast group. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. An IPv6 multicast address starts with FF. |
source source-ipv6-address |
Specifies the IPv6 address of a multicast source. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
vlan vlan-id |
Specifies a VLAN ID. |
The value is an integer that ranges from 1 to 4094. |
all |
Deletes all static group memberships from an interface. |
- |
MultiGE interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view
Usage Scenario
In addition to dynamic multicast forwarding entries generated by Layer 2 multicast protocol, you can configure static Layer 2 multicast forwarding entries by binding interfaces to multicast groups. After an interface is statically bound to a multicast group, users connected to this interface can keep receiving multicast data of the multicast group for a long time. The interface then becomes a static member interface.
Configuring static member interfaces has the following advantages:
Prerequisites
MLD snooping has been enabled globally using the mld-snooping enable command.
Precautions
Multicast group addresses starting with FFx1 or FFx2 (x is any value) cannot be configured as static multicast group addresses.
If a device is configured to forward Layer 2 multicast traffic on a network configured with MUX VLAN using the multicast-snooping mux-vlan enable command, the VLAN specified in the mld-snooping static-group command must not be a MUX VLAN (include principal VLAN and subordinate VLAN).
# Statically bind GE0/0/1 in VLAN 2 to multicast group ff1a::1.
<HUAWEI> system-view [HUAWEI] mld-snooping enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type trunk [HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 2 [HUAWEI-GigabitEthernet0/0/1] mld-snooping static-group ff1a::1 vlan 2