Name
access-class — line
Synopsis
access-classaccess-list
[in | out] no access-classaccess-list
Configures
Applies an access list to a line
Default
None
Description
This command specifies which access list to apply to this line (access-list
), and in what direction the list should be applied (in
or out
). For more information on creating access lists, see Chapter 7.
Example
The following commands apply access list 10 to outgoing traffic on virtual terminals 0-4.
access-list 10 permit host 10.10.1.2 ! Apply the access-list to the virtual lines 0-4 line vty 0 4 access-class 10 out
Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.