试验1+静态路由_第1页
试验1+静态路由_第2页
试验1+静态路由_第3页
试验1+静态路由_第4页
试验1+静态路由_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、实验1:静态路由协议1实验目的:在路由器上添加静态路由。能够在小型的网络环境中配置路由表。能够使用ping测试静态路由配置2网络拓扑沟2L1E&H上与4R4一?yRoutedPGI130.0 0.13基本配置步骤主机名IP地址子网掩码默认网关PC0192.168.0.254255.255.255.0192.168.0.1PC1130.0.0.254255.255.0.0130.0.0.1PC2172.16.0.254255.255.0.0172.16.0.1路由器名称端口IP地址子网掩码Router0Fa0/1192.168.0.1255.255.255.0Fa0/010.0.0.1255.0

2、.0.0Router1Fa0/010.0.0.2255.0.0.0Fa0/1210.43.32.1255.255.255.0Fa1/0172.16.0.1255.255.0.0Router2Fa0/0130.0.0.1255.255.0.0Fa0/1210.43.32.2255.255.255.0在Router0上的配置Router#Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(

3、config-if)#exitRouter(config)#interface fa0/0Router(config-if)#ip address 192.168.0.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(

4、config-if)#exitRouter(config)#interface fa1/0Router(config-if)#ip address 10.0.0.1 255.0.0.0Router(config-if)#no shutdownRouter(config-if)#在Routeri上的配置RouterenableRouter#configConfiguring from terminal, memory, or network terminal?Enter configuration commands, one per line. End with CNTL/Z.Router(co

5、nfig)#interface fa 1/0Router(config-if)#ip address 10.0.0.1 255.0.0.0Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up %IP-4-DUPADDR: Duplicate address 10.

6、0.0.1 on FastEthernet1/0, sourced by 0009.7C46.3C01 %IP-4-DUPADDR: Duplicate address 10.0.0.1 on FastEthernet1/0, sourced by 0009.7C46.3C01 Router(config-if)#exitRouter(config)#interface fa 0/0Router(config-if)#ip address 172% Invalid input detected at,A,marker.Router(config-if)#ip address 172.16.0.

7、1 255.255.0.0Router(config-if)#exitRouter(config)#interface fa 1/1Router(config-if)#ip address 210.43.32.1 255.255.255.0Router(config-if)#exitRouter(config)#interface fa 0/0Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDO

8、WN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exitRouter(config)#interface fa 1/1Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet1/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1, changed

9、state to up Router(config-if)#exitRouter(config)#在Router2上的配置RouterenableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface fa1/0Router(config-if)#ip address 210.43.32.2 255.255.255.0Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface

10、FastEthernet1/0, changed state to upRouter(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to upRouter(config-if)#exitRouter(config)#interface fa0/0Router(config-if)#ip address 130.0.0.1 255.255.0.0Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED:

11、Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up在Router0上添加静态路由Router(config)#ip route 172.16.2.0 255.255.255.0 172.16.5.2Router(config)#Router#copy running-config startup-configDestination filename startup-config?Buil

12、ding configuration.OK在Routeri上添加静态路由Router(config)#Router#copy running-config startup-configDestination filename startup-config?Building configuration.OK在Router2上添加静态路由Router(config)#Router#copy running-config startup-configDestination filename startup-config?Building configuration.OK4测试静态路由在PC0上测试至

13、U PC1的连接PhysicalConfigDesktopCustom InterfaceilCommand Prompt?acket Tracer PC Command Line 1 - 0PC-plnq PCping130.0.0.2S4Einglnig1?口。口:S* uith 32 E臂of:RequestRqustRequestxmaL ouBi biiDAd DUG. tirae-d 口ui .aepLy ffon 130.0, - 2&4 : hytes-32 tiw-CM TTL-12tPingr statist;xcs for 11301a.Q,。,254 二Packets:

14、 Sen匚 = 4. Rec&ivad = 1, LdsZ = 3 (7S% Idee)fApprajcdma te rauiid. trip tizres m nilli -Eeccnds:HxiLijrnTm Oms f Kajtiimxir. Jms j A-ecage OnsM:ping 13G,0.0.254Pinging 130.0.0.2B4 with 32 btes af data:RttpLy Reply 口叩二y eplfrom, fron f ran. from130.0.0.2S4;130.0.0,254;130,0.0.354130.0.0.254;bytfi=32

15、byte 5-3 3 byta”Rc bytes=32:$ina=0ins tiz=0m5 t j.senQin. ine=CnTTL=L2S TTILZS TTTwl” TTL=1Z5=0 0, Idse),Ping statistics for 13C-0-0 . Z54:Packets: Sent = 4, Receivad = 4 B Lcsit在PC0上测试到PC2的连接PCping 172.16.2.1静态路由配置正确Pinging 172.16.2.1 with 32 bytes of data:在PC1上测试到PC2的连接Router(config)#no ip route 172.16.0.0 255.255.255.0Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area查看Routeri的路由表PCping 172.16.0.2Pinging 172.16.0

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论