background image
376
Chapter 7
Managing a Cisco Internetwork
As you can see, I didn't set my passwords--how embarrassing! Remem-
ber that the VTY ports on a router are configured as login, which means
you must either set the VTY passwords or use the no login command. (See
Chapter 4 for details on setting passwords.)
On a Cisco router, you do not need to use the telnet command. If you
just type in an IP address from a command prompt, the router will assume
that you want to telnet to the device, as shown below:
Todd2509#172.16.10.2
Trying 172.16.10.2 ... Open
Password required, but none set
[Connection to 172.16.10.2 closed by foreign host]
Todd2509#
It's time to set VTY passwords on the router I want to telnet into. Here is
an example of what I did:
2501B#config t
Enter configuration commands, one per line. End with
CNTL/Z.
2501B(config)#line vty 0 4
2501B(config-line)#login
2501B(config-line)#password todd
2501B(config-line)#^Z
2501B#
%SYS-5-CONFIG_I: Configured from console by console
Now, let's try connecting to the router again (from the 2509 router
console).
Todd2509#172.16.10.2
Trying 172.16.10.2 ... Open
User Access Verification
Password:
2501B>
Remember that the VTY password is the user-mode password, not the
enable-mode password. Watch what happens when I try to go into privileged
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com