Command Reference LINE Commands
LINE Commands
access-class
Set the applied ACL (Access Control List) in Line. Use the access-class { access-list-number |
access-list-name } { in | out } command to configure the ACL in Line. Use the no access-class
{ access-list-number | access-list-name} { in | out } command to cancel the ACL configuration in
LINE.
access-class { access-list-number | access-list-name } { in | out }
no access-class { access-list-number | access-list-name } { in | out }
Parameter
Description
Parameter Description
access-list-number|
access-list-name
Specifies the ACL defined by access-list
in
Performs access control over the incoming connections
out
Performs access control over the outgoing connections
Defaults
By default, no ACL is configured under Line. All connections are accepted, and all outgoing
connections are allowed.
Command
Mode
Line configuration mode.
Usage Guide
This command is used to configure ACLs under Line. By default, all the incoming and
outgoing connections are allowed, and no connection is filtered. After access-class is
configured, only the connections that pass access list filtering can be established successfully.
Use the show running command to view configuration information under Line.
Configuration
Examples
In line vty 0 4, configure access-list for the accepted connections to 10:
Ruijie# configure terminal
Ruijie(config)# line vty 0 4
Ruijie(config-line)# access-class 10 in
Related
Commands
Command Description
show running
Shows status information
Platform
Description