access-class — line
access-list[in | out] no access-class
Applies an access list to a line
This command specifies which access list to apply to this line (
access-list), and in what direction the list should be applied (
out). For more information on creating access lists, see Chapter 7.
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