📄 context_help_lab.htm
字号:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>6</title>
</head>
<script language="Javascript">
<!--
function printpage() {
if (window.print)
window.print()
else
alert("Sorry, your browser doesn't support this feature.");
}
//-->
</script>
<FORM>
<INPUT TYPE="button" VALUE="Print this page" onClick="printpage()">
</FORM>
<p><b><font size="4" color="green" face="Arial">Lab: Introduction to the router command line interface.</font></b></p>
<p><font face="Arial">Objective: To understand how
the Cisco Command Line interface works, paying particular attention to the difference
between user and privilege mode as well as context sensitive help and
command auto-completion.</font></p>
<p>Lab Equipment: We will be using "eRouter 1" for the entire lab. To
select "eRouter 1" click on the drop down box located in the top center
of the screen.</p>
<p><font color="purple"><b>1</b>.</font> You are initially
presented with:</p>
<p><font face="Terminal" size="2">Router con0 is now available<br>
Press RETURN to
get started.</font></p>
<p>This tells you that you are connected to the router via the Console port located
on the back on the router, called Console0 or just Con0. The name of the
router at this point is just 'Router'. Press the <font color="#FF0000">Enter</font> key. What
happens?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>The prompt Changes to 'Router>'</option>
<option>and the cursor blinks, awating your input.</option>
</select></p>
</form>
<p><font color="purple"><b>2.</b></font> What mode
are you in? How can you tell?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>You are in 'user' mode</option>
<option>this is indicated by the '>' symbol.</option>
</select></p>
</form>
<p><font color="purple"><b>3.</b></font> What can you
do to view all the commands available to you in user mode? Do this now.
</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>Just type a '?' by itself.</option>
<option>this will show you all the available commands for that mode.</option>
</select></p>
</form>
<p><font color="purple"><b>4.</b></font> Type
<font color="#FF0000">exit</font> to exit user mode, how do you re-enter user mode?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>Just press the 'Enter' key.</option>
</select></p>
</form>
<p><font color="purple"><b>5.</b></font> View all the
available commands for user mode (how do you do that?). Which command will
turn on privileged commands? Enter this command and press <font color="#FF0000">
Enter</font>.</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>Type '?' to view all commands</option>
<option>The ENABLE command take you to privlege mode.</option>
</select></p>
</form>
<p><font color="purple"><b>6.</b></font> You are now in
privilege mode, this is indicated by the '#' symbol. Now type a
<font color="#FF0000">?</font>,
do you have more or less commands? Why?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>You have more commands.</option>
<option>Privilege mode allows more commands than user mode.</option>
</select></p>
</form>
<p><font color="purple"><b>7.</b></font> Type the letter '<font color="#FF0000">d</font>'
and press enter. Why do you think the message "<font face="Terminal" size="2">% Ambiguous Command:</font>"
was displayed?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>Because there are more than 1 command</option>
<option value="that starts with the letter 'd'">Privilege mode allows more commands than user mode.</option>
</select></p>
</form>
<p><font color="purple"><b>8.</b></font> We are going to use context
sensitive help to determine all the commands that start with the letter 'd'.
At the command prompt, type '. What commands
are displayed?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>disable and disconnect</option>
</select></p>
</form>
<p><font color="purple"><b>9.</b></font> Routers allow you
to abbreviate a command by typing enough letters of the command so that no other
command have the same letters in common. Given the commands
<font face="Terminal" size="2">disconnect</font>
and <font face="Terminal" size="2">disable</font><b> </b>what is the shortest we can type to execute the
<font face="Terminal" size="2">disable</font>
command? Do it now.</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>the shortest you can type is 'disa'</option>
</select></p>
</form>
<p><font color="purple"><b>10.</b></font> Please re-enter privilege mode by
typing <font color="#FF0000">en</font><b> </b>and pressing enter. Routers can
also help complete a command, on eRouter 1, type
<font color="#FF0000" face="Terminal" size="2">disa</font> and press
the <b><TAB></b> key, what happened?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>The router 'auto-completed' the command</option>
</select></p>
</form>
<p><font color="purple"><b>11.</b></font> In addition to auto-completing,
routers can tell you what is allowed to be typed next, type
<font color="#FF0000" face="Terminal" size="2">show ?</font><b> </b>(note
there is a <SPACE> after the 'w'). What happens?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>The router shows you all the valid 'show' commands</option>
</select></p>
</form>
<p><font color="purple"><b>12.</b></font> Now, type
<font color="#FF0000" face="Terminal" size="2">show ip
?</font>. What happens?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>This shows you all the 'SHOW IP' commands.</option>
</select></p>
</form>
<p><font color="purple"><b>13.</b></font> Now, type
<font color="#FF0000" face="Terminal" size="2">exit</font>.
What happens?</p>
<form name="form1">
<p><select size="1">
<option>- Click Here to View Answer -</option>
<option>You are logged off the router.</option>
</select></p>
</form>
<p>Repeat this exercise, until you understand context sensitive help.</p>
<p>This completes the lab.</p>
<p> </p>
<p><font face="Arial" size="2">Copyright Boson Software 1998-2003 - All Rights Reserved</font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -