access-group (IGMP)
To set limits on an interface for multicast-group join requests by hosts, use the access-group command in the appropriate configuration mode. To return to the default behavior, use the no form of this command.
access-group access-list
Syntax Description
access-list |
Number or name of a standard IP access list. Range is 1 to 99. |
Command Default
No default behavior or values
Command Modes
IGMP interface configuration
Command History
Release |
Modification |
---|---|
Release 3.7.2 |
This command was introduced. |
Usage Guidelines
If this command is not specified in router Internet Group Management Protocol (IGMP) configuration mode, the interface accepts all multicast join requests by hosts.
Task ID
Task ID |
Operations |
---|---|
multicast |
read, write |
Examples
In the following example, hosts serviced by GigabitEthernet interface 0/1/0/1 can join only group 225.2.2.2:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# ipv4 access-list mygroup permit 225.2.2.2 0.0.0.0
RP/0/RSP0/CPU0:router(config)# router igmp
RP/0/RSP0/CPU0:router(config-igmp)# interface GigE 0/1/0/1
RP/0/RSP0/CPU0:router(config-igmp-default-if)# access-group mygroup
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# ipv4 access-list mygroup permit 225.2.2.2 0.0.0.0
RP/0/RSP0/CPU0:router(config)# router igmp
RP/0/RSP0/CPU0:router(config-igmp)# interface GigE 0/1/0/1
RP/0/RSP0/CPU0:router(config-igmp-default-if)# access-group mygroup