Command
Access-Class
Use
Specifies which hosts can telnet/ssh into the vty.
Syntax
Router(config-line)#access-class
Options
| Applies the access-list to inbound traffic on the interface. | |
| Applies the access-list to traffic leaving the router. |
Example
In this example, an access-class is created on R2..
Copy
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#l
R2(config)#line vty 0 4
R2(config-line)#access-class 1 in