Chapter
I Commands
ip access-class
To create or configure an IPv4 access class to restrict incoming or outgoing traffic on a virtual terminal
line (VTY), use the ip access-class command. To remove the access class, use the no form of this
command.
Syntax Description
access-list-name
in
out
Command Default
None
Command Modes
Line configuration mode
Command History
Release
5.2(1)N1(1)
Examples
This example shows how to configure an IP access class on a VTY line to restrict inbound packets:
switch# configure terminal
switch(config)# line vty
switch(config-line)# ip access-class VTY_ACCESS in
switch(config-line)#
This example shows how to remove an IP access class that restricts inbound packets:
switch(config)# line vty
switch(config-line)# no ip access-class VTY_ACCESS in
switch(config-line)#
Related Commands
Command
access-class
copy running-config
startup-config
show line
OL-27883-02
ip access-class access-list-name {in | out}
no ip access-class access-list-name {in | out}
Name of the IPv4 ACL class. The name can be a maximum of 64 characters.
The name can contain characters, numbers, hyphens, and underscores. The
name cannot contain a space or quotation mark.
Specifies that incoming connections be restricted between a particular
Cisco Nexus 5000 Series switch and the addresses in the access list.
Specifies that outgoing connections be restricted between a particular Cisco
Nexus 5000 Series switch and the addresses in the access list.
Modification
This command was introduced.
Description
Configures an access class for VTY.
Copies the running configuration to the startup configuration file.
Displays the access lists for a particular terminal line.
Cisco Nexus 5500 Series NX-OS Security Command Reference
ip access-class
111