千家论坛_智能建筑与智能家居技术交流社区
标题:
静态路由以及静态路由的配置
[打印本页]
作者:
等待寒冷
时间:
2011-12-31 18:40
标题:
静态路由以及静态路由的配置
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">实验目的:了解为何要在路由器上增设静态路由以及静态路由的配置</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">Router>en</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">Router#conf t</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">Router(config)#host A</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config)#</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config)#int e0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 进入<font face="Times New="New" Roman">e0</font><font face="宋体">端口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#ip add 192.168.1.1 255.255.255.0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 添加<font face="Times New="New" Roman">e0</font><font face="宋体">口的</font><font face="Times New="New" Roman">IP</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#no shut</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 打开<font face="Times New="New" Roman">e0</font><font face="宋体">口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#exit</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config)#int s0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 进入<font face="Times New="New" Roman">s0</font><font face="宋体">端口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#ip add 192.168.2.1 255.255.255.0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 添加<font face="Times New="New" Roman">s0</font><font face="宋体">口的</font><font face="Times New="New" Roman">IP</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#clock rate 56000</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 设置时钟</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#no shut</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 打开<font face="Times New="New" Roman">s0</font><font face="宋体">口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config-if)#exit</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">A(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 添加静态路由</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">Router>en</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">Router#conf t</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">Router(config)#host B</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config)#int e0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 进入<font face="Times New="New" Roman">e0</font><font face="宋体">端口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config-if)#ip add 192.168.3.1 255.255.255.0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 添加<font face="Times New="New" Roman">e0</font><font face="宋体">口的</font><font face="Times New="New" Roman">IP</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config-if)#no shut</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 打开<font face="Times New="New" Roman">e0</font><font face="宋体">口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config-if)#exit</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config)#int s1</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 进入<font face="Times New="New" Roman">s1</font><font face="宋体">端口</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config-if)#ip add 192.168.2.2 255.255.255.0</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 添加<font face="Times New="New" Roman">s1</font><font face="宋体">口的</font><font face="Times New="New" Roman">IP</font></span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config-if)#no shu</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 打开<font face="Times New="New" Roman">s1</font><font face="宋体">口</font></span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">t</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config-if)#exit</span><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p>
<p style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt" class="p0"><span style="FONT-FAMILY: 'Times New="New" Roman'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'">B(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"> 添加静态路由</span><span style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; mso-spacerun: 'yes'"><o:p></o:p></span></p><!--EndFragment-->
欢迎光临 千家论坛_智能建筑与智能家居技术交流社区 (http://bbs.qianjia.com:8020/)
Powered by Discuz! X3.2