O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

access-class — line

Synopsis

access-class access-list [in | out]
no access-class access-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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required