You can set many IGMP snooping parameters for a particular interface. Different interfaces can have different values of these parameters. To set the IGMP snooping parameters for a particular interface, include the interface statement:
-
interface interface-name {
-
group-limit limit;
-
host-only-interface;
-
multicast-router-interface;
-
-
static {
-
group ip-address;
-
-
group ip-address {
-
source ip-address;
- }
- }
- }
You can configure a limit for the number of multicast groups (or [S,G] channels in IGMPv3) that can join an interface. After this limit is reached, new reports will be ignored and all related flows will be discarded, not flooded. To configure the group limit for the interface, include the group-limit statement:
-
group-limit limit;
By default, there is no limit to the number of groups that can join an interface. You can configure a limit in the range 0 through a 32-bit number.
You can configure an IGMP snooping interface to be an exclusively router-facing or host-side interface. On a host-side interface, received IGMP queries are dropped. To configure a router-facing or host-facing interface, include either the host-only-interface or multicast-router-interface statement:
-
host-only-interface;
-
multicast-router-interface;
By default, an interface can face either other multicast routers or hosts.
You can configure an IGMP snooping interface with multicast groups statically, with or without source addresses. To configure the static groups for the interface, include the static statement:
-
static {
-
group ip-address;
-
-
group ip-address {
-
source ip-address;
- }
- }
By default, the router learns about multicast groups on the interface dynamically.
You can include this statement at the following hierarchy levels: