⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iptheory.htm

📁 BOSON NETSIM是目前最好的路由器模拟软件
💻 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>Basic IP Configuration and Verification</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">Basic IP Configuration and Verification</font></b></p>
<p>IP addressing is very easy to configure on a Cisco router.&nbsp; Although the
calculation of IP addresses, subnet masks and host can be rather difficult.</p>
<p>The syntax to place an IP address on the interface is:</p>
<p><font face="Terminal" size="2">ip address</font><font face="Arial">
<a name="9877"><i>ip-address mask</i></a></font></p>
<p>Given the routers below, we wish to configure IP addresses on eRouter1 and
eRouter2.</p>
<p>
<img border="0" src="default.jpg" width="599" height="579"></p>
<p>Remember the <span lang="en-us"></span>/24 means 255.255.255.0.&nbsp;&nbsp; For your convenience
here is a handy table:</p>
<table borderColorDark="#999966" width="100%" borderColorLight="#cccc99" border="1">
  <tbody>
    <tr>
      <td align="middle" width="16%" bgColor="#eaffd5"><b>Slash</b></td>
      <td width="16%" bgColor="#eaffd5">Dotted Decimal</td>
      <td align="middle" width="17%" bgColor="#eaffd5"><b>Slash</b></td>
      <td width="16%" bgColor="#eaffd5">Dotted Decimal</td>
      <td align="middle" width="17%" bgColor="#eaffd5"><b>Slash</b></td>
      <td width="16%" bgColor="#eaffd5">Dotted&nbsp;<br>
        Decimal</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/8</b></td>
      <td width="16%">255.0.0.0</td>
      <td align="middle" width="17%"><b>/16</b></td>
      <td width="16%">255.255.0.0</td>
      <td align="middle" width="17%"><b>/24</b></td>
      <td width="16%">255.255.255.0</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/9</b></td>
      <td width="16%">255.128.0.0</td>
      <td align="middle" width="17%"><b>/17</b></td>
      <td width="16%">255.255.128.0</td>
      <td align="middle" width="17%"><b>/25</b></td>
      <td width="16%">255.255.255.128</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/10</b></td>
      <td width="16%">255.192.0.0</td>
      <td align="middle" width="17%"><b>/18</b></td>
      <td width="16%">255.255.192.0</td>
      <td align="middle" width="17%"><b>/26</b></td>
      <td width="16%">255.255.255.192</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/11</b></td>
      <td width="16%">255.224.0.0</td>
      <td align="middle" width="17%"><b>/19</b></td>
      <td width="16%">255.255.224.0</td>
      <td align="middle" width="17%"><b>/27</b></td>
      <td width="16%">255.255.255.224</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/12</b></td>
      <td width="16%">255.240.0.0</td>
      <td align="middle" width="17%"><b>/20</b></td>
      <td width="16%">255.255.240.0</td>
      <td align="middle" width="17%"><b>/28</b></td>
      <td width="16%">255.255.255.240</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/13</b></td>
      <td width="16%">255.248.0.0</td>
      <td align="middle" width="17%"><b>/21</b></td>
      <td width="16%">255.255.248.0</td>
      <td align="middle" width="17%"><b>/29</b></td>
      <td width="16%">255.255.255.248</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/14</b></td>
      <td width="16%">255.252.0.0</td>
      <td align="middle" width="17%"><b>/22</b></td>
      <td width="16%">255.255.252.0</td>
      <td align="middle" width="17%"><b>/30</b></td>
      <td width="16%">255.255.255.252</td>
    </tr>
    <tr>
      <td align="middle" width="16%"><b>/15</b></td>
      <td width="16%">255.254.0.0</td>
      <td align="middle" width="17%"><b>/23</b></td>
      <td width="16%">255.255.254.0</td>
      <td align="middle" width="17%"><b>/31</b></td>
      <td width="16%">255.255.255.254</td>
    </tr>
  </tbody>
</table>
<p>Let's start configuring eRouter 1</p>
<p><font face="Terminal" size="2">Router&gt;<br>
Router&gt;en<br>
Router#conf t<br>
Enter configuration commands, one per line. End with CNTL/Z.<br>
Router(config)#int e0<br>
Router(config-if)#ip address 10.1.1.1 255.255.255.0<br>
Router(config-if)#no shut<br>
Router(config-if)#int s0<br>
Router(config-if)#ip address 172.16.10.1 255.255.255.0<br>
Router(config-if)#no shut<br>
Router(config-if)#end<br>
%SYS-5-CONFIG_I: Configured from console by console<br>
Router#</font></p>
<p>We can view the IP addresses on the interface:</p>
<p><font face="Terminal" size="2">Router#sh ip interface brief<br>
Interface IP-Address OK? Method Status Protocol<br>
BRI0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unassigned YES manual admin down down<br>
Ethernet0 10.1.1.1&nbsp;&nbsp; YES manual admin down down<br>
Serial0&nbsp; 172.16.10.1 YES manual admin down down<br>
<br>
Router#</font></p>
<p>We have assigned an IP address to each interface but the interface is still
administratively down because we have not executed a 'no shutdown' command on
each interface.</p>
<p>Now you should go to each of the interfaces and type </font> 
<font face="Terminal" size="2">no 
shutdown</font><font face="Arial, Helvetica">, this should
turn the interfaces to up.</p>
<p>Connect to eRouter 2.&nbsp;&nbsp; We would also like to add IP addresses to the 
Ethernet 0 interface.</p>
<p><font size="2" face="Terminal">Router&gt;<br>
Router&gt;en<br>
Router#conf t<br>
Enter configuration commands, one per line. End with CNTL/Z.<br>
Router(config)#int e0<br>
Router(config-if)#ip address 10.1.</font></font><font size="2" face="Terminal">1.2
255.255.255.0<br>
Router(config-if)#no shut<br>
%SYS-5-CONFIG_I: Configured from console by console<br>
Router(config)#exit
&nbsp;<br>
Router#exit</font></p>
<font face="Arial, Helvetica">
<p>Now that we have an IP address on both sides of this Ethernet connection, we 
can now jump into ping.</p>
<p><b><font size="4" color="#008000">PING</font></b></p>
<p>PING, the <u>P</u>acket <u>I</u>nter <u>N</u>et <u>G</u>roper, allows a user to test basic connectivity.&nbsp;
The syntax is:</p>
<p><font face="Terminal" size="2">ping</font><font face="Arial">
<a name="9877"><i>ip-address</i></a></font></p>
<p>The router will send out five echo requests to the destination IP address, if 
it receives a reply, it will note it with an '</font><font face="Terminal" size="2">!</font><font face="Arial, Helvetica">', 
if no reply is received it will note it with a '</font><font face="Terminal" size="2">.</font><font face="Arial, Helvetica">'.</p>
</font>
<font face="Terminal" size="2">
<p>A successful ping:</p>
</font>
<font face="Arial, Helvetica">
<p><font size="2" face="Terminal">Router#ping 10.1.1.</font></font><font size="2" face="Terminal">1<br>
<br>
Type escape sequence to abort.<br>
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:<br>
!!!!!<br>
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/37/44 ms&nbsp;<br>
<br>
<br>
Router#</font></p>
<font face="Arial, Helvetica">
<p>A failed ping:</p>
<p><font face="Terminal" size="2">Router#ping 2.2.2.2<br>
<br>
Type escape sequence to abort.<br>
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:<br>
.....<br>
Success rate is 0 percent (0/5)<br>
<br>
Router#</font></p>
<p>Ping is one of the most commonly used test tools.&nbsp; PING uses
the Internet Control Message Protocol (ICMP) to communicate with other routers.</p>
<p>When pinging devices for the first time, ping may fail on the first try.&nbsp; 
This is because the router has not completed it's ARP resolution.</p>
<p>You can also view your IP addresses using the command
</font>

<font face="Terminal" size="2">
show running-config</font><font face="Arial, Helvetica">
or
</font>

<font face="Terminal" size="2">
show ip interface</font><font face="Arial, Helvetica">.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</font>

<p><font face="Arial" size="2"><span class="724482219-24092001">Copyright (c) 
1998-2003 Boson Software, Inc.&nbsp; All Rights Reserved.</span></font></p>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -