The telnet ipv6 server port command changes the IPv6 port number that a Telnet server monitors.
The undo telnet ipv6 server port command restores the IPv6 port number that the Telnet server monitors to the default value.
By default, the Telnet server ipv6 monitors the port number 23.
A Telnet client can log in successfully with no port specified only when the server is monitoring port 23. If the server is monitoring another port, the port number must be specified upon login.
After the monitoring port number is changed, all connections are disconnected and the server starts to monitor new port numbers.