set telnet

Use the set telnet command to

Root privileges are required to execute the set telnet command.

Command Syntax

Display Syntax

Enter the set telnet as shown below to display the current set telnet values for the device/terminal server:

set telnet

Add Syntax

Enter the set telnet as shown below to add an entry to the telnet table:

set telnet ip=ip_addr mask=ip_mask mode={none|crbin|telprnt}

Remove Syntax

Enter the set telnet as shown below to remove an entry from the telnet table:

set telnet [rmtelnetip=ip_addr] | [rmtelnetip=on range={[index#-index#] | [index1,index2,...]}]

Command Fields

Command Field

Description

ip

Specifies the IP address to add to the telnet table.

mask

Specifies the value of the mask to use for the IP address entered.

The default is 255.255.255.255.

mode

Specifies the telnet mode:

none - This means that no special telnet mode is set.

crbin - This sets a telnet binary connection, and adds carriage return characters to line feed characters.

telprnt - This option is used for a telnet print connection.

The default is none.

range

Specifies the range of index entries to remove.

Index numbers may be specified as a sequence such as range=1,2,8,10 or as a range such as range=2-10.

Note: Before removing telnet table entries it may be helpful to use set telnet without any parameters to display the existing telnet table entries and their corresponding index numbers.

rmtelnetip

Used to remove telnet table entries.

rmtelnetip=ip_addr - remove a single IP address from the table.

rmtelnetip=on range=range - remove the specified range of IP addresses.

Command Examples

Displaying Telnet Table Entries

In this example, the set telnet command displays current telnet table entries.

set telnet

Adding a Telnet Table Entry

In this example, the set telnet command adds a telnet table entry.

set telnet ip=199.86.5.56 mask=(255.255.255.0) mode=none

Deleting  Telnet Table Entries

In this example, the set telnet command deletes a range of telnet table entries.

set telnet rmtelnetip=on range=1-14
set telnet rmtelnetip=199.86.5.56