(Optional) Configuring a Static Member Port
Context
A member port is on a Layer 2 device and connects to receiver hosts which are multicast group members. The member port can be configured manually or learned dynamically by multicast protocols. When IGMP snooping is enabled in a VLAN, all interfaces in this VLAN learn forwarding entries from multicast packets. When an interface receives IGMP Report messages, the Layer 2 device sets this interface as a dynamic member port. A dynamic member port has the aging time.
If the hosts connected to an interface need to receive the multicast data of a specific multicast group or multicast source group for a long time, add the interface statically to the multicast group or multicast source group. The manually added interface is a static member port. Static member ports do not age.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- (Optional) Run undo igmp-snooping learning vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }
Dynamic learning of member ports is disabled.
By default, dynamic learning of member ports is enabled. To forward multicast data, the interfaces must be statically added to a multicast group after disabling dynamic learning of member ports.
- Run l2-multicast static-group [ source-address source-ip-address ] group-address group-ip-address vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>
The interface is manually added to a multicast group and becomes a static member port.
Or run l2-multicast static-group [ source-address source-ip-address ] group-address group-ip-address1 to group-ip-address2 vlan vlan-id
The interface is added to multiple multicast groups.