To apply an IPv4 access control list (ACL) to an interface as a port ACL, use the ip port access-group command. To remove an IPv4 ACL from an interface, use the no form of this command.
ip port access-group access-list-name { in | out }
no ip port access-group access-list-name { in | out }
access-list-name
|
Name of the IPv4 ACL. The name can be up to 64 alphanumeric, case-sensitive characters long.
|
in
|
Specifies that the ACL applies to inbound traffic.
|
out
|
Specifies that the ACL applies to outbound traffic.
|
None
Session interface configuration mode
Release
|
Modification
|
---|---|
4.0(0)N1(1)
|
This command was introduced.
|
This example shows how to apply an IPv4 ACL named ip-acl-01 to the Ethernet interface 1/2 as a port ACL:
This example shows how to remove an IPv4 ACL named ip-acl-01 from Ethernet interface 1/2:
Command
|
Description
|
---|---|
show access-lists
|
Displays all ACLs.
|
show configuration session
|
Displays the contents of the session.
|