Clearing IGMP Snooping Entries
Context
IGMP snooping entries are classified into static and dynamic entries, and they are cleared in different ways.
Static entries cannot be restored after being cleared and can be created when you configure static member ports.
When dynamic entries in a forwarding table are cleared, the hosts in the VLAN do not receive the multicast packets temporarily. The hosts in the VLAN receive the multicast packets again only after the hosts send IGMP Report messages and the forwarding entries are regenerated on the router.
Procedure
- Run the undo l2-multicast static-group [ source-address source-ip-address ] group-address group-ip-address vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> } command in the interface
view to remove the interface from a multicast group.
You can run the following commands to batch remove the multicast group addresses that the interface joins.
- undo l2-multicast static-group [ source-address source-ip-address ] group-address group-ip-address1 to group-ip-address2 vlan vlan-id
- undo l2-multicast static-group [ source-address source-ip-address ] group-address all vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }
- Run the reset igmp-snooping group { all | vlan { all | vlan-id } } command in the user view to remove dynamic entries in a forwarding table.