Command Reference Guide

Line (Telnet) Interface Config Command Set
5991-2114 © Copyright 2005 Hewlett-Packard Development Company, L.P. 888
access-class <listname> in
Use the access-class in command to restrict Telnet access using a configured access list. Received packets
passed by the access list will be allowed. Use the access list configuration to deny hosts or entire networks
or to permit specified IP addresses.
Syntax Description
<listname> Alphanumeric descriptor for identifying the configured access list (all access list
descriptors are case-sensitive).
Default Values
By default, there are no configured access lists associated with Telnet sessions.
Command Modes
(config-telnet X)# Line Configuration Mode required.
Functional Notes
When using the access-class in command to associate an access list with a Telnet session, remember to
duplicate the access-class in command for all configured Telnet sessions 0 through 4. Telnet access to
the unit using a particular Telnet session is not possible. Users will be assigned the first available Telnet
session.
Usage Examples
The following example associates the access list Trusted (to allow Telnet sessions from the
192.22.56.0/24 network) with all Telnet sessions (0 through 4):
Create the access list:
(config)#ip access-list standard Trusted
(config)#permit 192.22.56.0 0.0.0.255
Enter the line (telnet) :
(config)#line telnet 0 4
Associate the access list with the Telnet session:
(config-telnet0-4)#access-class Trusted in