52
Example:
(1) The switch Telnets to a remote host whose IP address is 20.1.1.1
Switch#telnet 20.1.1.1 23
(2) The switch Telnets to a remote host whose IPv6 address is 3ffe:506:1:2::3
Switch#telnet 3ffe:506:1:2::3
(3) Configure the mapping relationship between the host name ipv6host and the IPv6
address 3ffe:506:1:2::3, and then telnet to host ipv6host
Switch#config
Switch(Config)# ipv6 host ipv6host 3ffe:506:1:2::3
Switch#telnet host ipv6host
2.2.3.3.2 ip telnet server
Command: ip telnet server
no ip telnet server
Function:
Enable the Telnet server function in the switch: the “
no
ip telnet server”
command disables the Telnet function in the switch.
Default:
Telnet server function is enabled by default.
Command mode:
Global Mode
Usage Guide:
This command is available in Console only. The administrator can use this
command to enable or disable the Telnet client to login to the switch.
Example:
Disable the Telnet server function in the switch.
Switch(Config)#no ip telnet server
2.2.3.3.3 telnet-server securityip
Command: telnet-server securityip <ip-addr>
no telnet-server securityip <ip-addr>
Function:
Configure the secure IP address of Telnet client allowed to login to the switch;
the “
no telnet-server securityip <ip-addr>“ command deletes the authorized Telnet
secure address.
Parameter: <ip-addr>
is the secure IP address allowed to access the switch, in dot
decimal format.
Default:
no secure IP address is set by default.
Command mode:
Global Mode
Usage Guide:
When no secure IP is configured, the IP addresses of Telnet clients
connecting to the switch will not be limited; if a secure IP address is configured, only
hosts with the secure IP address is allowed to connect to the switch through Telnet for
configuration. The switch allows multiple secure IP addresses.
Example:
Set 192.168.1.21 as a secure IP address.
Switch(Config)#telnet-server securityip 192.168.1.21