(Optional) Configuring a Static Multicast Group on an Interface
Context
This configuration applies to some special scenarios, for example:
There are long-term group members on a network segment.
Hosts on a network segment cannot send Report messages, but multicast data needs to be forwarded to the network segment.
In these scenarios, you can configure a static multicast group on the router interface connected to the network segment. Multicast data can then be quickly forwarded to the network segment or be directed to the interface. After a static multicast group is configured on an interface, the router considers that the multicast group always has members on the network segment of the interface and always forwards multicast data of the group to the interface.
If hosts cannot identify multicast ping packets or respond to multicast ping packets, you can configure multicast ping echo function on the interfaces connected to these hosts. Then the interface cannot only receive multicast data, but also respond to multicast ping packets, which helps you locate network problems flexibly and conveniently.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run igmp static-group group-address [ inc-step-mask { group-mask | group-mask-length } number group-number ] [ source source-address ]
A static multicast group or source-group mapping is configured on the interface.
By default, no static multicast group is configured on an interface.
- If a static multicast group or source-group mapping is configured on a loopback interface, the multicast router forwards multicast data to this group only when users request the data, which reduces traffic on the network. If a static multicast group or source-group is configured on other IGMP-capable interfaces, the router forwards multicast data to the group immediately after receiving the data.
- You can configure static multicast groups on a loopback interface if users have not requested data of these groups but may do so later. If some multicast groups have stable receivers on a network segment, you can configure the static multicast groups on the interface connected to this network segment.
- (Optional) Run igmp static-group group-address [ source source-address ] mping-echo
The interface is enabled to respond to received multicast ping packets.
By default, an interface does not respond to received multicast ping packets.