The following examples provide information on how to enable Telnet and start a session to or from an IPv6 device. In the
following example, the IPv6 address is specified as 2001:DB8:20:1::12, and the hostname is specified as cisco-sj. The
show
host command is used to verify this information.
Device# configure terminal
Device(config)# ipv6 host cisco-sj 2001:DB8:20:1::12
Device(config)# end
Device# show host
Default domain is not set
Name/address lookup uses static mappings
Codes:UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined
Host Port Flags Age Type Address(es)
cisco-sj None (perm, OK) 0 IPv6 2001:DB8:20:1::12
To enable Telnet access to a device, create a vty interface and password:
Device(config)# line vty 0 4
password lab
login
To use Telnet to access the device, you must enter the password:
Device# telnet cisco-sj
Trying cisco-sj (2001:DB8:20:1::12)... Open
User Access Verification
Password:
cisco-sj
.
.
.
verification
It is not necessary to use the
telnet command. Specifying either the hostname or the address is sufficient, as shown in the following examples:
Device# cisco-sj
or
Device# 2001:DB8:20:1::12
To display the IPv6 connected user (line 130) on the device to which you are connected, use the
show
users command:
Device# show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
130 vty 0 idle 00:00:22 8800::3
Note that the address displayed is the IPv6 address of the source of the connection. If the hostname of the source is known
(either through a domain name server [DNS] or locally in the host cache), then it is displayed instead:
Device# show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
130 vty 0 idle 00:02:47 cisco-sj
If the user at the connecting device suspends the session with ^6x and then enters the
show
sessions command, the IPv6 connection is displayed:
Device# show sessions
Conn Host Address Byte Idle Conn Name
* 1 cisco-sj 2001:DB8:20:1::12 0 0 cisco-sj
The Conn Name field shows the hostname of the destination only if it is known. If it is not known, the output might look
similar to the following:
Device# show sessions
Conn Host Address Byte Idle Conn Name
* 1 2001:DB8:20:1::12 2001:DB8:20:1::12 0 0 2001:DB8:20:1::12