Your CCNA certification exam is likely going to contain questions about Telnet, an application-level protocol that allows remote communication between two networking devices. With Telnet use being as common as it is, you had better know the details of how to configure it in order to pass your CCNA exam and to work in real-world networks.
The basic concept is pretty simple - we want to configure R1, but we're at R2. If we telnet successfully to R1, we will be able to configure R1 if we've been given the proper permission levels. In this CCNA case study, R2 has an IP address of 172.12.123.2 and R1 an address of 172.12.123.1. Let's try to telnet from R2 to R1.
R2#telnet 172.12.123.1
Trying 172.12.123.1 ... open
Password required, but none set
[Connection to 172.12.123.1 closed by foreign host]
This seems like a problem, but it's a problem we're happy to have. A Cisco router will not let any user telnet to it by default. That's a good thing, because we don't want just anyone connecting to our router! The "password required" message means that no password has been set on the VTY lines on R1. Let's do so now.
R1(config)#line vty 0 4
R1(config-line)#password baseball
A password of "baseball" has been set on the VTY lines, so we shouldn't have any trouble using Telnet to get from R2 to R1. Let's try that now.
R2#telnet 172.12.123.1
Trying 172.12.123.1 ... open
User access Verification
Password:
R1>
We're in, and placed into user exec mode. Let's say we want to configure a new IP address on the ethernet interface on R1. We'll now go into privileged exec mode....
R1>enable
% No password set
R1>
.. or maybe we won't! The default behavior of Telnet on a Cisco router is to place the incoming user into user exec mode, and require an enable password to allow that user into privileged exec mode! right now, we can't configure anything on this router and even the show commands we would use are limited at best.
If we wanted to allow all telnetting users to be put into privileged exec mode immediately without being prompted for an enable password, the command privilege level 15 placed on the VTY lines will accomplish this.
R1(config)#line vty 0 4
R1(config-line)#privilege level 15
From R2, we'll telnet into R1 again.
R2#telnet 172.12.123.1
Trying 172.12.123.1 ... open
User access Verification
Password:
R1#
We were able to telnet in from R2 with the original password of "baseball", and even better, we were placed into privileged exec mode immediately!
You may or may not want to do this in real-world networks, though. If you want to assign privilege levels on an individual user basis, configure usernames and passwords and use the privilege 15 command in the actual username/password command itself to give this privilege levels to some users but not all.
R1(config)#username heidi password klum
R1(config)#username tim privilege 15 password gunn
Both users can telnet into the router, but the first user will be placed into user exec and challenged for the enable password to enter privileged exec mode. If there is no enable password, the user literally cannot get into privileged exec. The second user will be placed into privileged exec immediately after successfully authenticating.
Passwords on a Cisco router or switch are vitally important, and you're not tied down to granting "all-or-nothing" access. Knowing the details like the ones shown here help you tie down network security while allowing people to do their jobs - and it doesn't hurt to know this stuff for the CCNA exam, either!
Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage (http://www.thebryantadvantage.com).
Dec 14, 2007 Dec 15, 2007 Dec 16, 2007 Dec 17, 2007 Dec 18, 2007 Dec 19, 2007 Dec 20, 2007 Dec 21, 2007 Dec 22, 2007 Dec 23, 2007 Dec 24, 2007 Dec 25, 2007 Dec 26, 2007 Dec 27, 2007 Dec 28, 2007 Dec 29, 2007 Dec 30, 2007 Dec 31, 2007 Jan 1, 2008 Jan 2, 2008 Jan 3, 2008 Jan 4, 2008 Jan 5, 2008 Jan 6, 2008 Jan 7, 2008 Jan 8, 2008 Jan 9, 2008 Jan 10, 2008 Jan 11, 2008 Jan 12, 2008 Jan 13, 2008 Jan 14, 2008 Jan 15, 2008 Jan 16, 2008 Jan 17, 2008 Jan 18, 2008 Jan 19, 2008 Jan 20, 2008 Jan 21, 2008 Jan 22, 2008 Jan 23, 2008 Jan 24, 2008 Jan 25, 2008 Jan 27, 2008 Jan 28, 2008 Jan 29, 2008 Jan 30, 2008 Jan 31, 2008 Feb 1, 2008 Feb 4, 2008 Feb 8, 2008 Feb 9, 2008 Feb 11, 2008 Feb 12, 2008 Feb 13, 2008 Feb 14, 2008 Feb 15, 2008 Feb 16, 2008 Feb 17, 2008 Feb 18, 2008 Feb 19, 2008 Feb 20, 2008 Feb 21, 2008 Feb 22, 2008 Feb 23, 2008 Feb 25, 2008 Feb 26, 2008 Feb 27, 2008 Feb 28, 2008 Feb 29, 2008 Mar 1, 2008 Mar 2, 2008 Mar 3, 2008 Mar 4, 2008 Mar 5, 2008 Mar 6, 2008 Mar 7, 2008 Mar 8, 2008 Mar 9, 2008 Mar 10, 2008 Mar 11, 2008 Mar 12, 2008 Mar 13, 2008 Mar 14, 2008 Mar 15, 2008 Mar 16, 2008 Mar 17, 2008 Mar 18, 2008 Mar 19, 2008 Mar 20, 2008 Mar 21, 2008 Mar 22, 2008 Mar 23, 2008 Mar 27, 2008 Mar 28, 2008 Mar 29, 2008 Mar 30, 2008 Mar 31, 2008 Apr 1, 2008 Apr 2, 2008 Apr 3, 2008 Apr 4, 2008 Apr 5, 2008 Apr 6, 2008 Apr 7, 2008 Apr 9, 2008 Apr 10, 2008 Apr 11, 2008 Apr 12, 2008 Apr 13, 2008 Apr 14, 2008 Apr 15, 2008 Apr 16, 2008 Apr 17, 2008 Apr 18, 2008 Apr 19, 2008 Apr 20, 2008 Apr 21, 2008 Apr 22, 2008 Apr 23, 2008 Apr 24, 2008 Apr 25, 2008 Apr 26, 2008 Apr 27, 2008 Apr 28, 2008 Apr 29, 2008 Apr 30, 2008 May 1, 2008 May 3, 2008 May 5, 2008 May 8, 2008 May 15, 2008 May 16, 2008 May 17, 2008 May 20, 2008 May 22, 2008 May 23, 2008 May 25, 2008 May 26, 2008 May 28, 2008 May 31, 2008 Jun 3, 2008 Jun 4, 2008 Jun 10, 2008 Jun 11, 2008 Jun 12, 2008 Jun 13, 2008 Jun 18, 2008 Jun 24, 2008 Jun 26, 2008 Jun 28, 2008 Jul 1, 2008 Jul 3, 2008 Jul 4, 2008 Jul 5, 2008 Jul 9, 2008 Jul 12, 2008 Jul 14, 2008 Jul 15, 2008 Jul 17, 2008 Jul 18, 2008 Jul 19, 2008 Jul 21, 2008 Jul 22, 2008 Aug 3, 2008 Aug 5, 2008 Aug 7, 2008 Aug 8, 2008 Aug 9, 2008 Aug 11, 2008 Aug 14, 2008 Aug 15, 2008 Aug 17, 2008 Aug 19, 2008 Aug 20, 2008 Aug 21, 2008 Aug 22, 2008 Aug 26, 2008