background image
380
Chapter 7
Managing a Cisco Internetwork
Todd2509#disconnect 1
Closing connection to 172.16.10.2 [confirm]
Todd2509#
In this example, I used the session number 1 because that was the connec-
tion to the 2501B router that I wanted to end. As explained earlier, you can
use the show sessions command to see the connection number.
If you want to end a session of a device attached to your router through
Telnet, you might want to first check if any devices are attached to your
router. Use the show users command to get that information.
2501B#sh users
Line User Host(s) Idle Location
* 0 con 0 idle 0
1 aux 0 idle 0
2 vty 0 idle 0 172.16.10.1
This output shows that VTY 2 has IP address 172.16.10.1 connected.
That is the Todd2509 router.
To clear the connection, use the clear line # command.
2501B#clear line 2
[confirm]
[OK]
Verify that the user has been disconnected with the show users command.
2501B#sh users
Line User Host(s) Idle Location
* 0 con 0 idle 0
1 aux 0 idle 1
2501B#
This output shows that the line has been cleared.
Resolving Hostnames
I
n order to use a hostname rather than an IP address to connect to a
remote device, the device that you are using to make the connection must be
able to translate the hostname to an IP address.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com