Telnet
This chapter describes telnet commands.
Telnet is a client/server protocol that establishes a session between a user terminal and a remote host:
• The telnet client software takes input from the user and sends it to the server’s operating system
• The telnet server takes output from the host and sends it to the client to display to the user
While telnet is most often used to implement remote login capability, the protocol is general enough to allow it to be used for a variety of functions.
Note: In OcNOS, the default Linux terminal type is "export TERM=xterm"
Note: The commands below are supported only on the “management” VRF.
This chapter contains these commands:
debug telnet server
Use this command to display telnet debugging information.
Use the no form of this command to stop displaying telnet debugging information.
Command Syntax
debug telnet server
no debug telnet server
Parameters
None
Default
By default, disabled.
Command Mode
Executive mode and configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show debug telnet-server
telnet server debugging is on
#
feature telnet
Use this command to enable the telnet server.
Use the no form of this command to disable the telnet server.
Command Syntax
feature telnet (vrf management|)
no feature telnet (vrf management|)
Parameters
management
Virtual Routing and Forwarding name
Default
By default, feature telnet is disabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#feature telnet vrf management
show debug telnet-server
Use this command to display whether telnet debugging is enabled.
Command Syntax
show debug telnet-server
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show debug telnet-server
telnet server debugging is on
show running-config telnet server
Use this command to display telnet settings in the running configuration.
Command Syntax
show running-config telnet server
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show running-config telnet server
telnet server port 1025 vrf management
feature telnet vrf management
show telnet-server
Use this command to display the telnet server status.
Command Syntax
show telnet server
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show telnet server
telnet server enabled port: 23
telnet
Use this command to open a telnet session to an ipv4 address or host name resolved to ipv4 address.
Command Syntax
telnet (A.B.C.D | HOSTNAME) (vrf (NAME|management))
telnet (A.B.C.D | HOSTNAME) (<1-65535>) (vrf (NAME|management))
Parameters
A.B.C.D
Destination IPv4 Address to open a telnet session.
HOSTNAME
Destination Hostname to resolve into IPv4 address to open a telnet session.
1-65535
Destination Port to open a telnet session. Default is 23.
vrf
Specify the VPN routing/forwarding instance.
NAME
Specify the name if the VPN routing/forwarding instance.
management
Management VPN routing/forwarding instance name.
Default
By default, telnet is 23
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#telnet 10.12.16.17 2543 vrf management
Trying 10.12.16.17...
telnet6
Use this command to open a telnet session to an ipv6 address or host name resolved to ipv6 address.
Command Syntax
telnet6 (X:X::X:X| HOSTNAME) (vrf (NAME|management))
telnet6 (X:X::X:X | HOSTNAME) (<1-65535>) (vrf (NAME|management))
Parameters
X:X::X:X
Destination IPv6 Address to open a telnet session.
HOSTNAME
Destination Host name to resolve into IPv6 address to open a telnet session.
1-65535
Destination Port to open a telnet session. Default is 23.
vrf
Specify the VPN routing/forwarding instance.
NAME
Specify the name if the VPN routing/forwarding instance.
management
Management VPN routing/forwarding instance name.
Default
By default, telnet is 23.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#telnet6 2:2::2:2 2543 vrf management
Trying 2:2::2:2...
telnet server port
Use this command to set the port number on which the telnet server listens for connections. The default port on which the telnet server listens is 23.
You can only give this command when the telnet server is disabled. See the
feature telnet command.
Use the no form of this command to set the default port number (23).
Command Syntax
telnet server (port <1024-65535>) (vrf management|)
no telnet server port (vrf management|)
Parameters
<1024-65535>
Port number
management
Virtual Routing and Forwarding name
Default
By default, telnet server port number is 23
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#telnet server port 1157 vrf management
telnet server session-limit
Use this command to limit number of Telnet sessions. Only 40 sessions allowed including Telnet and SSH. User can only give this command when the telnet server is disabled. See the
feature telnet command.
Use no form of this command to set to default value.
Command Syntax
telnet server session-limit <1-40> (vrf management|)
no telnet server session-limit (vrf management|)
Parameters
<1-40>
Number of sessions
management
Virtual Routing and Forwarding name
Default
By default, 40 sessions are allowed.
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS-OTN version 4.2
Examples
#configure terminal
(config)#telnet server session-limit 4 vrf management