The telnet server enable command enables the Telnet service.
The undo telnet server enable command disables the Telnet service.
The telnet server disable command disables the Telnet service.
By default, the Telnet service is disabled.
telnet [ ipv6 ] server enable
undo telnet [ ipv6 ] server enable
telnet [ ipv6 ] server disable
You can run the telnet server enable command to enable the Telnet service. A Telnet server can be connected only when it is enabled.
If the user who logged in to the server through Telnet is online, the undo telnet [ ipv6 ] server enable command fails to be run on the server.
When a Telnet server is disabled, you can log in to the device only through the console port or SSH.
The Telnet protocol poses a security risk, and therefore using STelnet V2 is recommended.
After the telnet server enable command is run, the device receives login connection requests from all interfaces by default, incurring security risks. You are advised to run the telnet server-source command to specify a source interface for the Telnet server.
# Enable the Telnet service.
<HUAWEI> system-view
[HUAWEI] telnet server enable Info: TELNET server has been enabled.
# Disable the Telnet service.
<HUAWEI> system-view
[HUAWEI] undo telnet server enable
# Enable the IPv6 Telnet service.
<HUAWEI> system-view
[HUAWEI] telnet ipv6 server enable