access-class
To restrict incoming and outgoing connections between a particular VTY and the addresses in an access list, use the access-class command. To remove access restrictions, use the no form of this command.
access-class access-list-name/number { in | out }
no access-class access-list-name { in | out }
Syntax Description
access-list-name/number |
You can either enter a name of the access-list or a number.
Name of the IPv4 ACL class. The name can be a maximum of 64 alphanumeric characters. The name cannot contain a space or quotation mark. Number of an IP access list. This is a decimal number from 1 to 199 or from 1300 to 2699 . |
in |
Restricts incoming connections between a particular Cisco device and the addresses in the access list. |
out |
Restricts outgoing connections between a particular Cisco device and the addresses in the access list. |
Command Default
None
Command Modes
Line configuration mode (config-line)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v |
Command qualified for use in Cisco vManage CLI templates. |
Usage Guidelines
For usage guidelines, see the Cisco IOS XE access-class
command.
This example shows how to configure an access class on a VTY line:
Device (config)# line vty 0 5
Device(config-line)# access-class TEST in