Security

access-class <acl> in

On the VTY lines: only sources the ACL permits may open a telnet or SSH session. Others are refused before any login prompt.

Works on: Router, Firewall, Switch, Access pointMode: line

Example

R1(config)# access-list 10 permit 192.168.10.0 0.0.0.255
R1(config)# line vty 0 4
R1(config-line)# access-class 10 in
Run this command live

Don't just read it — type access-class <acl> in in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "access-class <acl> in" command do?

On the VTY lines: only sources the ACL permits may open a telnet or SSH session. Others are refused before any login prompt.

Example of "access-class <acl> in"

R1(config)# access-list 10 permit 192.168.10.0 0.0.0.255 R1(config)# line vty 0 4 R1(config-line)# access-class 10 in

More Security commands

← Back to the full command reference