Professional Documents
Culture Documents
Router Basic 1
Router Basic 1
Lab Topology
The topology in this lab contains three 2800 series Cisco routers.
S0/0/0 S0/0/1
Router2
S0/0/0 S0/0/0
Router1 Router3
Command Summary
Command Description
congure terminal enters global conguration mode from privileged EXEC mode
disable returns to user EXEC mode
enable enters privileged EXEC mode
enable password password sets the enable password
enable secret password sets the enable secret password
end ends and exits conguration mode
exit exits one level in the menu structure
hostname host-name sets the device name
line console 0 accesses console line conguration mode
login enables password checking
password password species the password that is required for a user to log in
show running-cong displays the active conguration le
2. Click inside the Router1 window, and press the ENTER key to begin. You are now connected to Router1,
and the user EXEC mode prompt (᫬»®â) is displayed. The prompt is broken into two parts: the host
name and the mode. ᫬»® is Router1’s host name, and the â prompt indicates user EXEC mode.
3. Next, issue the enable command to access the privileged EXEC mode. You should note that the â
changes to a ý after you issue the enable command, which indicates that you are in privileged EXEC
mode.
᫬»®â»²¿¾´»
᫬»®ý
4. To return to user EXEC mode, issue the disable command. From user EXEC mode, issue the logout
command or the exit command to terminate the current session.
᫬»®ý¼·¿¾´»
᫬»®â
᫬»®â»¨·¬
Note: You can view the additional device output one line at a time by pressing ENTER or a page at a time
by pressing the SPACEBAR. To stop viewing the output before all of it has been displayed, press the TAB
key.
᫬»®âá
¿½½»ó»²¿¾´» Ý®»¿¬» ¿ ¬»³°±®¿®§ ß½½»óÔ·¬ »²¬®§
¿½½»ó°®±º·´» ß°°´§ «»®ó°®±º·´» ¬± ·²¬»®º¿½»
½±²²»½¬ Ñ°»² ¿ ¬»®³·²¿´ ½±²²»½¬·±²
¼·¿¾´» Ì«®² ±ºº °®·ª·´»¹»¼ ½±³³¿²¼
¼·½±²²»½¬ Ü·½±²²»½¬ ¿² »¨·¬·²¹ ²»¬©±®µ ½±²²»½¬·±²
»²¿¾´» Ì«®² ±² °®·ª·´»¹»¼ ½±³³¿²¼
»¨·¬ Û¨·¬ º®±³ ¬¸» ÛÈÛÝ
¸»´° Ü»½®·°¬·±² ±º ¬¸» ·²¬»®¿½¬·ª» ¸»´° §¬»³
´±½µ Ô±½µ ¬¸» ¬»®³·²¿´
´±¹·² Ô±¹ ·² ¿ ¿ °¿®¬·½«´¿® «»®
´±¹±«¬ Û¨·¬ º®±³ ¬¸» ÛÈÛÝ
³®·²º± λ¯«»¬ ²»·¹¸¾±® ¿²¼ ª»®·±² ·²º±®³¿¬·±² º®±³ ¿ ³«´¬·½¿¬ ®±«¬»®
³¬¿¬ ͸±© ¬¿¬·¬·½ ¿º¬»® ³«´¬·°´» ³«´¬·½¿¬ ¬®¿½»®±«¬»
³¬®¿½» Ì®¿½» ®»ª»®» ³«´¬·½¿¬ °¿¬¸ º®±³ ¼»¬·²¿¬·±² ¬± ±«®½»
²¿³»ó½±²²»½¬·±² Ò¿³» ¿²¼ »¨·¬·²¹ ²»¬©±®µ ½±²²»½¬·±²
°¿¼ Ñ°»² ¿ Èòîç ÐßÜ ½±²²»½¬·±²
°·²¹ Í»²¼ »½¸± ³»¿¹»
°°° ͬ¿®¬ ×ÛÌÚ Ð±·²¬ó¬±óб·²¬ Ю±¬±½±´ øÐÐÐ÷
®»«³» λ«³» ¿² ¿½¬·ª» ²»¬©±®µ ½±²²»½¬·±²
®´±¹·² Ñ°»² ¿² ®´±¹·² ½±²²»½¬·±²
¸±© ͸±© ®«²²·²¹ §¬»³ ·²º±®³¿¬·±²
´·° ͬ¿®¬ ¿ Í»®·¿´ó´·²» ×Ð øÍÔ×Ð÷
§¬¿¬ Ü·°´¿§ ·²º±®³¿¬·±² ¿¾±«¬ ¬»®³·²¿´ ´·²»
óóÓÑÎÛŠó
䱫¬°«¬ ±³·¬¬»¼â
᫬»®â»²¿¾´»
᫬»®ýá
¿½½»ó¬»³°´¿¬» Ý®»¿¬» ¿ ¬»³°±®¿®§ ß½½»óÔ·¬ »²¬®§
¿´° ßÔÐÍ »¨»½ ½±³³¿²¼
¿®½¸·ª» ³¿²¿¹» ¿®½¸·ª» º·´»
¾º» Ú±® ³¿²«¿´ »³»®¹»²½§ ³±¼» »¬¬·²¹
½¼ ݸ¿²¹» ½«®®»²¬ ¼·®»½¬±®§
½´»¿® 뻬 º«²½¬·±²
½´±½µ Ó¿²¿¹» ¬¸» §¬»³ ½´±½µ
½±²º·¹«®» Û²¬»® ½±²º·¹«®¿¬·±² ³±¼»
½±°§ ݱ°§ º®±³ ±²» º·´» ¬± ¿²±¬¸»®
¼»¾«¹ Ü»¾«¹¹·²¹ º«²½¬·±² ø»» ¿´± «²¼»¾«¹Ž÷
¼»´»¬» Ü»´»¬» ¿ º·´»
¼·® Ô·¬ º·´» ±² ¿ º·´»§¬»³
¼·¿¾´»
¼·½±²²»½¬ Ü·½±²²»½¬ ¿² »¨·¬·²¹ ²»¬©±®µ ½±²²»½¬·±²
»´±¹ Ûª»²¬ó´±¹¹·²¹ ½±²¬®±´ ½±³³¿²¼
»®¿» Û®¿» ¿ º·´»§¬»³
»¨·¬
´±¹±«¬ Û¨·¬ º®±³ ¬¸» ÛÈÛÝ
³±®» Ü·°´¿§ ¬¸» ½±²¬»²¬ ±º ¿ º·´»
³®³ ×Ð Ó«´¬·½¿¬ ᫬·²¹ Ó±²·¬±® Ì»¬
²½·¿ ͬ¿®¬ñͬ±° ÒÝ×ß Í»®ª»®
°·²¹ Í»²¼ »½¸± ³»¿¹»
°©¼ Ü·°´¿§ ½«®®»²¬ ©±®µ·²¹ ¼·®»½¬±®§
óóÓÑÎÛŠó
䱫¬°«¬ ±³·¬¬»¼â
᫬»®ý¸±© á
¿½½»ó´·¬ Ô·¬ ¿½½» ´·¬
¿®° ßÎÐ ¬¿¾´»
¿«¬± ͸±© ß«¬±³¿¬·±² Ì»³°´¿¬»
½¼° ÝÜÐ ·²º±®³¿¬·±²
½´¿ó³¿° ͸±© Ï±Í Ý´¿óÓ¿°
½´² ÝÔÒÍ ²»¬©±®µ ·²º±®³¿¬·±²
½´±½µ Ü·°´¿§ ¬¸» §¬»³ ½´±½µ
½±³°®» ͸±© ½±³°®»·±² ¬¿¬·¬·½
½±²º·¹«®¿¬·±² ݱ²¬»²¬ ±º Ò±²óʱ´¿¬·´» ³»³±®§
½±²¬®±´´»® ײ¬»®º¿½» ½±²¬®±´´»® ¬¿¬«
½®§°¬± Û²½®§°¬·±² ³±¼«´»
¼·¿´»® Ü·¿´»® °¿®¿³»¬»® ¿²¼ ¬¿¬·¬·½
º´¿¸ ¼·°´¿§ ·²º±®³¿¬·±² ¿¾±«¬ º´¿¸æ º·´» §¬»³
º®¿³»ó®»´¿§ Ú®¿³»óλ´¿§ ·²º±®³¿¬·±²
¸·¬±®§ Ü·°´¿§ ¬¸» »·±² ½±³³¿²¼ ¸·¬±®§
¸±¬ ×Ð ¼±³¿·²ó²¿³»ô ²¿³»»®ª»®ô ¿²¼ ¸±¬ ¬¿¾´»
·²¬»®º¿½» ײ¬»®º¿½» ¬¿¬« ¿²¼ ½±²º·¹«®¿¬·±²
·° ×Ð ·²º±®³¿¬·±²
·°ªê ×Ðªê ·²º±®³¿¬·±²
·¼² ×ÍÜÒ ·²º±®³¿¬·±²
·· ×Íó×Í ®±«¬·²¹ ·²º±®³¿¬·±²
³°´ ÓÐÔÍ ·²º±®³¿¬·±²
²¬° Ò»¬©±®µ ¬·³» °®±¬±½±´
óóÓÑÎÛŠó
䱫¬°«¬ ±³·¬¬»¼â
6. You can also use the help function with partial words in a command. For example, type show run? to view
the command that starts with “show run”. Now issue the show running-cong command to display the
active, or running, conguration on Router1. You can press TAB after typing show run, and the Cisco CLI
will ll in the rest of the command for you.
᫬»®ý¸±© ®«²á
®«²²·²¹ó½±²º·¹
᫬»®ý¸±© ®«²²·²¹ó½±²º·¹
Þ«·´¼·²¹ ½±²º·¹«®¿¬·±²òòò
ÿ
Ê»®·±² ïîòí
»®ª·½» ¬·³»¬¿³° ¼»¾«¹ «°¬·³»
»®ª·½» ¬·³»¬¿³° ´±¹ «°¬·³»
²± »®ª·½» °¿©±®¼ó»²½®§°¬·±²
ÿ
¸±¬²¿³» ᫬»®
ÿ
·° «¾²»¬ó¦»®±
䱫¬°«¬ ±³·¬¬»¼â
᫬»®ý»¨·¬
or
᫬»®ý¼·¿¾´»
᫬»®â»²¿¾´»
᫬»®ý
2. Basic router security is congured from global conguration mode. To enter global conguration mode on
Router1, you must issue the congure terminal command from privileged EXEC mode.
᫬»®ý½±²º·¹«®» ¬»®³·²¿´
᫬»®ø½±²º·¹÷ý
3. When you log in to the router, the host name is displayed in front of the prompt (either the â or the ý
prompt). The host name of a router is typically congured to enable you to determine the router’s location
or function within the network. In this lab, you will congure the router’s host name as Router1.
᫬»®ø½±²º·¹÷ý¸±¬²¿³» ᫬»®ï
᫬»®ïø½±²º·¹÷ý
4. The enable password controls access to privileged EXEC mode. This is a very important password
because, when it is congured, only those who know the password can access privileged EXEC mode to
make conguration changes. Issue the command necessary to set Router1’s enable password to boson.
5. Test the password. Exit the router, and try to enter privileged EXEC mode. Notice that you have to enter
boson as the password in order to enter privileged EXEC mode.
᫬»®ïø½±²º·¹÷ý»¨·¬
᫬»®ïý»¨·¬
᫬»®ï⻲¿¾´»
п©±®¼æ¾±±²
᫬»®ïý½±²º·¹«®» ¬»®³·²¿´
᫬»®ïø½±²º·¹÷ý
7. Test this password by logging out of the router and then typing enable at the user EXEC mode prompt.
Try to use boson as the password to access privileged EXEC mode on Router1. Authentication will fail,
because the enable secret password overrides the enable password. Therefore, if both enable passwords
are set, you must use the enable secret password to enter privileged EXEC mode. Enter cisco to access
Router1.
᫬»®ïø½±²º·¹÷ý»¨·¬
᫬»®ïý»¨·¬
᫬»®ï⻲¿¾´»
п©±®¼æ¾±±²
û ß«¬¸»²¬·½¿¬·±² º¿·´»¼
п©±®¼æ½·½±
᫬»®ïý
8. You can connect to a Cisco device remotely by using a protocol such as Telnet or locally by using a
console connection. Physical access is necessary to connect to the console connection on a Cisco device.
You should issue the following commands to congure a password for Router1’s console connection:
᫬»®ïý½±²º·¹«®» ¬»®³·²¿´
Û²¬»® ½±²º·¹«®¿¬·±² ½±³³¿²¼ô ±²» °»® ´·²»ò Û²¼ ©·¬¸ ÝÒÌÔñÆò
᫬»®ïø½±²º·¹÷ý´·²» ½±²±´» ð
᫬»®ïø½±²º·¹ó´·²»÷ý´±¹·²
´±¹·² ¼·¿¾´»¼ ±² ´·²» ð «²¬·´ °¿©±®¼ · »¬ò
᫬»®ïø½±²º·¹ó´·²»÷ý°¿©±®¼ ½·½±
9. Test this password by logging out of the router and then pressing ENTER. With the console password
congured, you are required to provide a password before you can access user EXEC mode.
᫬»®ïø½±²º·¹ó´·²»÷ý»²¼
᫬»®ïý¼·¿¾´»
᫬»®ï⻨·¬
᫬»®ï ½±²ð · ²±© ¿ª¿·´¿¾´»
Ю» ÎÛÌËÎÒ ¬± ¹»¬ ¬¿®¬»¼ò
п©±®¼æ½·½±
᫬»®ïâ
᫬»®ï⻲¿¾´»
п©±®¼æ½·½±
᫬»®ïý
11. Sample conguration scripts are provided at the end of labs so that you can review the congurations
performed in the lab. You should note that the sample conguration script in this lab displays the plain
text enable password boson, the plain text console password cisco, and the encrypted enable secret
password cisco. The sample conguration script in this document is a copy of the show running-cong
command output from Router1 as it was displayed in NetSim when this document was created. The output
you receive may vary slightly.
Copyright © 1996–2012 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.