ipv4 access-group
To configure the Access List (ACL), use the ipv4 access-group command at the IPv4 interface in the interface configuration mode.
ipv4 access-group access-list-name ingress
Syntax Description
access-list-name |
Access list name. Names cannot contain a space or quotation marks. |
ingress |
Specifies an inbound interface. |
Command Default
No IPv4 access list is defined.
Command Modes
Interface configuration
Command History
Release | Modification |
---|---|
Release 6.5.31 |
This command was introduced. |
Usage Guidelines
Use the ipv4 access-list command to configure an IPv4 access list. This command places the system in access list configuration mode, in which the denied or permitted access conditions must be defined with the deny or permit command.
Examples
The following examples shows how to configure the Access List at the IPv4 interface in the configuration mode:
interface MgmtEth0/RP0/EMS/0
ipv4 address 5.5.5.1 255.255.255.0
ipv4 access-group EMS ingress
!
ipv4 access-list EMS
10 permit udp any any
!
Sample Configuration for IPv4 Access Lists
ipv4 access-list CRAFT
10 deny icmp any any
ipv4 access-list EMS
10 deny icmp any any (200 matches)