Command Line Interface

4-148

4
Related Commands
access-list ip (4-144)

show ip access-list

This command displays the rules for configured IP ACLs.
Syntax
show ip access-list {standard | extended} [acl-name]
standard – Specifies a standard IP ACL.
extended – Specifies an extended IP ACL.
acl-name – Name of the ACL. (Maximum length: 16 characters, no spaces)
Command Mode
Privileged Exec
Example
Related Commands
permit, deny 4-145
ip access-group (4-148)

ip access-group

This command binds a port to an IP ACL. Use the no form to remove the port.
Syntax
[no] ip access-group acl-name in
acl-name – Name of the ACL. (Maximum length: 16 characters, no spaces)
in – Indicates that this list applies to ingress packets.
Default Setting
None
Command Mode
Interface Configuration (Ethernet)
Command Usage
A port can only be bound to one ACL.
If a port is already bound to an ACL and you bind it to a different ACL, the
switch will replace the old binding with the new one.
Console#show ip access-list standard
IP standard access-list david:
permit host 10.1.1.21
permit 168.92.0.0 255.255.255.0
Console#