📄 showtheory.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">Show Lab Overview</font></b></p>
<p><font face="Arial">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>
<p> </p>
<p><b><font size="4" color="#008000" face="Arial">Show Version</font></b></p>
<p><font face="Arial">The </font><font face="Terminal" size="2">show version</font><font face="Arial"> command gives you a lot more information than at first you
may think. Use </font><font face="Terminal" size="2">show version</font><font face="Arial"> to obtain critical information, such as:
router platform type, operating system revision, operating system last boot time
and file location, amount of memory, number of interfaces, and configuration
register.</font></p>
<p><font face="Terminal" size="2">Router>show version<br>
Krang Operating System Software<br>
Router uptime is 2 minutes<br>
System returned to ROM by power-on<br>
System image file is "flash:c2500.bin"<br>
[[[OUTPUT DELETED]]]<br>
1 Ethernet/IEEE 802.3 interface(s)<br>
1 Serial(sync/async) network interface(s)<br>
1 ISDN Basic Rate interface(s)<br>
32K bytes of non-volatile configuration memory.<br>
4096K bytes of processor board System flash (Read/Write)<br>
<br>
Configuration register is 0x2102</font><br>
</p>
<p><b><font size="4" color="#008000" face="Arial">Routing Protocols</font></b></p>
<p><font face="Arial">To view the status of any routing protocols currently configured on the
router, use the </font><font face="Terminal" size="2">show protocols</font><font face="Arial"> command.</font></p>
<p><font face="Terminal" size="2">Router>show protocols<br>
Global values:<br>
Internet Protocol routing is enabled<br>
BRI0 is administratively down, line protocol is Down<br>
Ethernet0 is administratively down, line protocol is Down<br>
Serial0 is administratively down, line protocol is Down</font><br>
</p>
<p><b><font size="4" color="#008000" face="Arial">Flash Memory</font></b></p>
<p><font face="Arial">Flash memory is a special kind of memory on the router that contains the
operating system image file(s). Unlike regular router memory, Flash memory
continues to maintain the file image even after power is lost.</font></p>
<p><font face="Terminal" size="2">Router>show flash<br>
<br>
System flash directory:<br>
File Length Name/status<br>
1 3015588 c2500.bin<br>
[3015652 bytes used, 1178652 available, 4194304 total]<br>
4096K bytes of processor board System flash (Read/Write)</font><br>
</p>
<p><b><font size="4" color="#008000" face="Arial">Running Configuration</font></b></p>
<p><font face="Arial">The currently active configuration script running on the router is referred
to as the <i>running-config </i>on the routers command-line interface. Note the
privilege mode required. The running configuration script is <b>not</b>
automatically saved on a Cisco router, and will be lost in the event of a power
failure. The running configuration must be manually saved with the <i>copy</i>
command (discussed in a later lab).</font></p>
<p><font face="Terminal" size="2">Router><br>
Router>enable<br>
Router#show running-config<br>
Building configuration...<br>
<br>
Current configuration:<br>
!<br>
version 12.0<br>
!<br>
hostname Router<br>
!<br>
interface Serial0<br>
no ip address<br>
shutdown<br>
!<br>
interface BRI0<br>
no ip address<br>
shutdown<br>
!<br>
interface Ethernet0<br>
no ip address<br>
shutdown<br>
!<br>
line con 0 <br>
line aux 0<br>
line vty 0 4<br>
!<br>
end</font></p>
<p><font face="Terminal" size="2">Router#</font></p>
<p><b><font size="4" color="#008000" face="Arial">Command History</font></b></p>
<p><font face="Arial">The routers Command Line Interface (CLI) maintains by default the last 10
commands you have entered in memory, for later retrieval. You can change
this default value. You cycle through previous router commands entered
(since the last power loss), using one of two methods. To view all of the
past commands still in router memory at the same time, use the </font>
<font face="Terminal" size="2">show history</font><font face="Arial"> command. For single line retrieval, use either the Arrow-Up (for previous
command) and Arrow-Down (for next command), or Control-P (for previous command)
and Control-N (for next command).</font></p>
<p><font face="Terminal" size="2">Router>show history<br>
show version<br>
show protocols<br>
show flash<br>
enable<br>
show running-config<br>
disable<br>
show history </font></p>
<b><font color="#008000" size="4"> <font face="Arial">Clock</font></font></b><font face="Arial">
</font>
<p><font face="Arial">The router keeps its own clock that you can use to synchronize devices
to. To view the clock use the show clock command.</font></p>
<p><font face="Terminal" size="2">Krang#show clock<br>
*00:38:35.755 UTC Mon Mar 1 1993<br>
Krang#</font></p>
<font face="Arial, Arial, Helvetica">
<p> </p>
</font>
<p><b><font color="#008000" size="4" face="Arial">Host Table</font></b></p>
<p><font face="Arial">You can create a list of host names on your router.
You can view the entries (if any) by typing </font>
<font face="Terminal" size="2">show hosts</font><font face="Arial">.</font></p>
<p><font face="Terminal" size="2">Krang#show hosts<br>
Default domain is not set<br>
Name/address lookup uses static mappings<br>
<br>
Host Flags Age Type Address(es)<br>
Krang#</font></p>
<p><b><font size="4" color="#008000" face="Arial">Show users</font></b></p>
<p><font face="Arial">The show users command displays users who are connected to the
router. </font></p>
<p><font face="Terminal" size="2">Krang#show users<br>
Line User Host(s) Idle Location<br>
* 0 con 0 idle 00:00:00<br>
<br>
Krang#</font></p>
<p><b><font size="4" color="#008000" face="Arial">Show Interfaces</font></b></p>
<p><font face="Arial">The show interfaces command will display statistics for all interfaces
configured on the router.</font></p>
<p><font face="Terminal" size="2">Krang#show interfaces<br>
BRI0 is administratively down, line protocol is down<br>
Hardware is BRI<br>
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255<br>
Encapsulation HDLC, loopback not set<br>
Last input never, output never, output hang never<br>
Last clearing of "show interface" counters never<br>
Input queue: 0/75/0 (size/max/drops); Total output drops: 0<br>
Queueing strategy: weighted fair<br>
Output queue: 0/1000/64/0 (size/max total/threshold/drops)<br>
Conversations 0/0/256 (active/max active/max total)<br>
Reserved Conversations 0/0 (allocated/max allocated)<br>
5 minute input rate 0 bits/sec, 0 packets/sec<br>
5 minute output rate 0 bits/sec, 0 packets/sec<br>
0 packets input, 0 bytes, 0 no buffer<br>
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles<br>
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort<br>
0 packets output, 0 bytes, 0 underruns<br>
0 output errors, 0 collisions, 5 interface resets<br>
0 output buffer failures, 0 output buffers swapped out<br>
0 carrier transitions<br>
--More--</font></p>
<p><font face="Arial">Notice the <b>--More--</b> This means that there is more information pertaining to
the last command. To view more commands line by line, press: enter
To exit the output and return to the router prompt, press: </font>
<font face="Terminal" size="2">e</font><font face="Arial"><b> </b>
<font size="1">(this can be any letter, it's just
easy to remember that e is for exit)</font> To view more output one screen at a
time,<b> </b>press the<b> </b>space
bar.</font></p>
<p><b><font size="4" color="#008000" face="Arial">Show Protocols</font></b></p>
<p><font face="Arial">The
</font>
<font face="Terminal" size="2">show protocols</font><b><font face="Arial">
</font>
</b><font face="Arial">command displays global and interface specific status of layer 3
protocols.
</font>
</p>
<p><font face="Terminal" size="2">Krang#show protocols<br>
Global values:<br>
Internet Protocol routing is enabled<br>
BRI0 is administratively down, line protocol is down<br>
Ethernet0 is administratively down, line protocol is down<br>
Serial0 is administratively down, line protocol is down<br>
Serial1 is administratively down, line protocol is down<br>
Serial2 is administratively down, line protocol is down</font><br>
</p>
<p> </p>
<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 + -