📄 basicstheory.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<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="#008000" face="Arial">Basic Lab Overview</font></b></p>
<p><font face="Arial, Arial, Helvetica">This lab will introduce the Cisco
Internetwork Operating System (IOS) command line interface (CLI). You will
need to logon to a router and become familiar with the different levels of
access on the router. You will also become familiar with the commands
available to you in each mode (user or privileged) and the router help facility,
history, and editing features.</font></p>
<font face="Arial, Arial, Helvetica"><font face="Arial, Helvetica">
<p><b><font size="4" color="#008000">User vs. Priv</font></b></font><b><font size="4" color="#008000">i</font></b></font><b><font size="4" face="Arial, Arial, Helvetica" color="#008000">leged
Mode</font></b></p>
<p><font face="Arial, Arial, Helvetica">User</font><font face="Arial, Helvetica"><font face="Arial, Arial, Helvetica">
mode is indicated with the '</font></font><font face="Terminal" size="2">></font><font face="Arial, Helvetica">'
next to the router name. You can look at settings but can not make changes
from user mode. In Privilege mode (indicated by the '</font><font face="Terminal" size="2">#</font><font face="Arial, Helvetica">',
you can do anything. To get into privilege mode the keyword is </font>
<font face="Terminal" size="2">enable</font><b><font face="Arial, Helvetica">.</font></b></p>
<p><font face="Arial, Helvetica" size="2"><font face="Arial, Arial, Helvetica">
<strong style="font-weight: 400">
<font face="Terminal">Router</font></strong></font><strong style="font-weight: 400"><font face="Terminal">><br>
</font></strong><font face="Arial, Arial, Helvetica">
<strong style="font-weight: 400">
<font face="Terminal">Router</font></strong></font><strong style="font-weight: 400"><font face="Terminal">>enable<br>
Password:<br>
</font></strong><font face="Arial, Arial, Helvetica">
<strong style="font-weight: 400">
<font face="Terminal">Router</font></strong></font><strong style="font-weight: 400"><font face="Terminal">#</font></strong></p>
</font>
<p><b><font size="4" face="Arial, Arial, Helvetica" color="#008000">HELP</font></b></p>
<p><font face="Arial">To view all commands available from this mode type:<b> </b></font>
<font face="Terminal" size="2">?</font><font face="Arial" color="#FF0000">
</font><font face="Arial"> This will give you the
list of all available commands for the router in your current mode.<span style="mso-spacerun: yes">
</span>You can also use the question mark after you have started typing a
command. For example if you want to use a </font>
<font face="Terminal" size="2">show</font><font face="Arial"> command but you do
not remember which one, typing in </font><font face="Terminal" size="2">
show ?</font><font face="Arial"> will output all of the commands that you can
use with the </font><font face="Terminal" size="2">show</font><font face="Arial">
command.</font></p>
<p><font face="Terminal" size="2">Router#show ?<br>
access-expression List access expression<br>
access-lists List access lists<br>
backup Backup status<br>
cdp CDP information<br>
clock Display the system clock<br>
cls DLC user information<br>
compress Show compression statistics<br>
configuration Contents of Non-Volatile memory<br>
--More-- </font> </p>
<p><b><font size="4" face="Arial, Arial, Helvetica" color="#008000">Configuration
Mode</font></b></p>
<font face="Arial, Helvetica"><font face="Arial, Arial, Helvetica">
<p>From privilege mode you can enter configuration mode by typing </font></font>
<font face="Terminal" size="2">
config term</font><font face="Arial, Helvetica"><font face="Arial, Arial, Helvetica">
you can exit configuration mode type type <b>end</b> or pressing <b><CTL>+z </b>
<font size="1">(Press the 'Control' key and the letter 'Z' at the same time)</font></p>
<p><strong style="font-weight: 400"><font size="2" face="Terminal">Router#</font></strong></font><font size="2" face="Terminal">config
t<br>
Router(config)#end<br>
Router#</font></p>
<p>
<font face="Arial, Arial, Helvetica">
<big><strong><font color="#008000">The Host Name</font></strong></big></p>
<p>The Router's <i>Host Name</i> is used for local identification. When you
log into the router you see the <i>Host Name</i>. This is also visible via LAT
and CDP. However this is NOT used for TCP/IP address
resolution.</p>
<p>
<strong style="font-weight: 400"><font size="2" face="Terminal">Router(config)#hostname
</font>
</strong>
</font></font>
<strong style="font-weight: 400"><font size="2" face="Terminal">Krang<br>
Krang(config)#</font><font face="Times New Roman"><br>
</font></strong></p>
<p><font face="Arial, Arial, Helvetica"><strong><big><font color="#008000">The
Enable Password</font></big></strong></p>
<p>The <i>enable password</i> controls access to privilege mode. This is a
VERY important password because in privilege mode you can make configuration
changes.</p>
</font>
<font face="Terminal" size="2">
<p>
<strong style="font-weight: 400">Krang</strong></font><font face="Arial, Arial, Helvetica"><font face="Terminal" size="2"><strong style="font-weight: 400">(config)#enable password frodo</strong></font></p>
</font>
<p><font face="Arial">You can securely encrypt the <i>enable password</i>, by using
the </font><font face="Terminal" size="2">enable secret</font><font face="Arial"> command.</font></p>
<p><strong style="font-weight: 400"><font face="Terminal" size="2">Krang(config)#enable secret hobbes</font></strong></p>
<p><font face="Arial">If you have both password, the enable secret is the password
used. </font></p>
<p><font face="Arial" color="#008000" size="4"><b>The QUIT Command</b></font></p>
<p><font face="Terminal" size="2">Quit</font><font face="Arial"> is the command that will log you out of the router.</font></p>
<p><font face="Arial"><b>Additional Information</b></font></p>
<table cellSpacing="0" width="697" border="0">
<tbody>
<tr vAlign="top" align="left">
<td width="330" align="center"><b>enable secret </b><i>password</i></td>
<td align="center" width="0">
<font size="2">Enable Secret Command</font>
<td align="center" width="0"> </td>
</tr>
</tbody>
</table>
<blockquote>
<p><font face="Arial">This command defines the enable secret password used to protect access to
privileged exec commands. The password is case sensitive and can be defined on
the router two different ways. A password set with the "enable
password" command is stored as clear text, whereas a password set with
"enable secret" is encrypted. For security, configuring the router
with an enable secret is preferred. The enable secret always takes precedence
if both enable secret and enable password are set.</font></p>
<p><font size="2"><u>Note:</u> The unencrypted form of the password "cisco"
is shown in the sample configurations. In an actual configuration, the
password would appear in an encrypted form: (i.e. enable secret 7 13061E010803
--where 7 denotes the encryption type and 13061E010803 is an encrypted form of
the password cisco.) When entering or making changes to the enable secret,
always type the password in its unencrypted form. Do not enter the encryption
type (7); it is set automatically.</font></p>
</blockquote>
<p><font face="Arial" size="2"><span class="724482219-24092001">Copyright (c)
1998-2003 Boson Software, Inc. All Rights Reserved.</span></font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -