Access-Class Command on CISCO Router/Switch

Command

Access-Class

Use

Specifies which hosts can telnet/ssh into the vty.

Syntax

Router(config-line)#access-class <list> <in or out>

Options

<in> Applies the access-list to inbound traffic on the interface.
<out> Applies the access-list to traffic leaving the router.

Example

In this example, an access-class is created on R2..

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

Related Articles

Leave a Reply

avatar