access-group (IGMP/MLD)
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
MLD interface configuration
Command History
Release |
Modification |
---|---|
Release 2.0 |
This command was introduced. |
Release 3.2 |
Support was added for MLD Protocol (Versions 1 and 2). |
Usage Guidelines
If this command is not specified in router Internet Group Management Protocol (IGMP) or Multicast Listener Discovery (MLD) 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/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipv4 access-list mygroup permit 225.2.2.2 0.0.0.0
RP/0/RP0/CPU0:router(config)# router igmp
RP/0/RP0/CPU0:router(config-igmp)# interface GigE 0/1/0/1
RP/0/RP0/CPU0:router(config-igmp-default-if)# access-group mygroup
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipv4 access-list mygroup permit 225.2.2.2 0.0.0.0
RP/0/RP0/CPU0:router(config)# router igmp
RP/0/RP0/CPU0:router(config-igmp)# interface GigE 0/1/0/1
RP/0/RP0/CPU0:router(config-igmp-default-if)# access-group mygroup
In the following example, an access group is configured for IPv6:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipv6 access-list mld-acl
RP/0/RP0/CPU0:router(config-ipv6-acl)# 10 permit ipv6 any host ff3e::8000:1bb8
RP/0/RP0/CPU0:router(config-ipv6-acl)# exit
RP/0/RP0/CPU0:router(config)# router mld
RP/0/RP0/CPU0:router(config-mld)# access-group mld-acl