静态路由配置教学内容.doc
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 静态 路由 配置 教学内容
- 资源描述:
-
静态路由配置 精品文档 实验十 静态路由配置 1实验目的 理解静态路由的工作原理,掌握如何配置静态的路由。 2实验要求 两台路由器通过串口以V.35 DCE/DTE电缆连接在一起,并在每个路由器上设置2个loopback端口模拟子网及静态路由,实现所有子网间的互通。 3实验拓扑 4实验配置 ⑴RouterA的名称、接口IP地址和时钟的配置 R1762-3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1762-3(config)#hostname routerA routerA(config)#interface serial 1/2 routerA(config-if)#clock rate 512000 routerA(config-if)#ip address 192.168.1.1 255.255.255.0 routerA(config-if)#no shutdown routerA(config-if)#exit routerA(config)# routerA(config)#interface loopback 0 routerA(config-if)# %LINE PROTOCOL CHANGE: Interface Loopback 0, changed state to UP routerA(config-if)#ip address 172.16.1.1 255.255.255.0 routerA(config-if)#exit routerA(config)#interface loopback 1 routerA(config-if)# %LINE PROTOCOL CHANGE: Interface Loopback 1, changed state to UP routerA(config-if)#exit routerA(config)# routerA(config)#interface loopback 1 routerA(config-if)#ip address 172.16.2.1 255.255.255.0 routerA(config-if)#exit routerA(config)# routerA(config)#ip route 10.1.1.0 255.255.255.0 192.168.1.2 设置到子网10.1.1.0的静态路由,采用下一跳的方式 routerA(config)#ip route 10.2.2.0 255.255.255.0 s1/2 设置到子网10.2.2.0的静态路由,采用出站端口的方式 ⑵RuterB的配置的名称、接口IP地址和时钟的配置 R1762-4#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1762-4(config)#hostname routerB routerB(config)#interface serial 1/2 routerB(config-if)#ip address 192.168.1.2 255.255.255.0 routerB(config-if)#no shutdown routerB(config-if)#exit routerB(config)# routerB(config)#interface loopback 0 routerB(config-if)# %LINE PROTOCOL CHANGE: Interface Loopback 0, changed state to UP routerB(config-if)#ip address 10.1.1.1 255.255.255.0 routerB(config-if)#exit routerB(config)# routerB(config)#interface loopback 1 routerB(config-if)# %LINE PROTOCOL CHANGE: Interface Loopback 1, changed state to UP routerB(config-if)#ip address 10.2.2.1 255.255.255.0 routerB(config-if)#exit routerB(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.1 设置到子网10.1.1.0的静态路由,采用下一跳的方式 routerB(config)#ip route 172.16.2.0 255.255.255.0 s1/2 设置到子网10.2.2.0的静态路由,采用出站端口的方式 5实验测试 ⑴查看路由表和接口配置 routerA(config)#show ip route Codes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 * - candidate default Gateway of last resort is no set S 10.1.1.0/24 [1/0] via 192.168.1.2 S 10.2.2.0/24 is directly connected, serial 1/2 C 172.16.1.0/24 is directly connected, Loopback 0 C 172.16.1.1/32 is local host. C 172.16.2.0/24 is directly connected, Loopback 1 C 172.16.2.1/32 is local host. C 192.168.1.0/24 is directly connected, serial 1/2 C 192.168.1.1/32 is local host. routerA(config)# routerA(config)#exit routerA#show interface serial 1/2 serial 1/2 is UP , line protocol is UP Hardware is PQ2 SCC HDLC CONTROLLER serial Interface address is: 192.168.1.1/24 MTU 1500 bytes, BW 2000 Kbit Encapsulation protocol is HDLC, loopback not set Keepalive interval is 10 sec , set Carrier delay is 2 sec RXload is 1 ,Txload is 1 Queueing strategy: WFQ 5 minutes input rate 17 bits/sec, 0 packets/sec 5 minutes output rate 17 bits/sec, 0 packets/sec 761 packets input, 29578 bytes, 0 no buffer Received 241 broadcasts, 0 runts, 0 giants 8 input errors, 0 CRC, 8 frame, 0 overrun, 0 abort 827 packets output, 32853 bytes, 0 underruns 0 output errors, 0 collisions, 6 interface resets 23 carrier transitions V35 DCE cable DCD=up DSR=up DTR=up RTS=up CTS=up routerB(config)#show ip route Codes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 * - candidate default Gateway of last resort is no set C 10.1.1.0/24 is directly connected, Loopback 0 C 10.1.1.1/32 is local host. C 10.2.2.0/24 is directly connected, Loopback 1 C 10.2.2.1/32 is local host. S 172.16.1.0/24 [1/0] via 192.168.1.1 S 172.16.2.0/24 is directly connected, serial 1/2 C 192.168.1.0/24 is directly connected, serial 1/2 C 192.168.1.2/32 is local host. routerB(config)# routerB(config)#exit routerB#show interface serial 1/2 serial 1/2 is UP , line protocol is UP Hardware is PQ2 SCC HDLC CONTROLLER serial Interface address is: 192.168.1.2/24 MTU 1500 bytes, BW 2000 Kbit Encapsulation protocol is HDLC, loopback not set Keepalive interval is 10 sec , set Carrier delay is 2 sec RXload is 1 ,Txload is 1 Queueing strategy: WFQ 5 minutes input rate 17 bits/sec, 0 packets/sec 5 minutes output rate 17 bits/sec, 0 packets/sec 1031 packets input, 37341 bytes, 0 no buffer Received 445 broadcasts, 0 runts, 0 giants 171 input errors, 3 CRC, 102 frame, 0 overrun, 66 abort 1186 packets output, 38928 bytes, 0 underruns 0 output errors, 0 collisions, 233 interface resets 309 carrier transitions V35 DTE cable DCD=up DSR=up DTR=up RTS=up CTS=up ⑵测试网络连通性 routerA#ping 10.1.1.1 Sending 5, 100-byte ICMP Echoes to 10.1.1.1, timeout is 2 seconds: < press Ctrl+C to break > Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/5 ms routerA#ping 10.2.2.1 Sending 5, 100-byte ICMP Echoes to 10.2.2.1, timeout is 2 seconds: < press Ctrl+C to break > Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/5 ms routerA# routerB#ping 172.16.1.1 Sending 5, 100-byte ICMP Echoes to 172.16.1.1, timeout is 2 seconds: < press Ctrl+C to break > Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/5 ms routerB#ping 172.16.2.1 Sending 5, 100-byte ICMP Echoes to 172.16.2.1, timeout is 2 seconds: < press Ctrl+C to break > Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/5 ms routerB# ⑶参考配置 routerA#show running-config Building configuration... Current configuration : 853 bytes version 8.32(building 53) hostname routerA interface serial 1/2 ip address 192.168.1.1 255.255.255.0 clock rate 512000 interface serial 1/3 clock rate 64000 interface FastEthernet 1/0 duplex auto speed auto interface FastEthernet 1/1 duplex auto speed auto interface Loopback 0 ip address 172.16.1.1 255.255.255.0 interface Loopback 1 ip address 172.16.2.1 255.255.255.0 interface Null 0 ip route 10.1.1.0 255.255.255.0 192.168.1.2 ip route 10.2.2.0 255.255.255.0 serial 1/2 line con 0 line aux 0 line vty 0 login password 7 072c16261f1b22 line vty 1 login password 7 093d001b2d0c17 line vty 2 login password 7 0251563e120f3b line vty 3 login password 7 08113a1c182e00 line vty 4 login password 7 0350231914 end routerB#show running-config Building configuration... Current configuration : 881 bytes version 8.32(building 53) hostname routerB interface serial 1/2 ip address 192.168.1.2 255.255.255.0 interface serial 1/3 clock rate 64000 interface FastEthernet 1/0 duplex auto speed auto interface FastEthernet 1/1 duplex auto speed auto interface Loopback 0 ip address 10.1.1.1 255.255.255.0 interface Loopback 1 ip address 10.2.2.1 255.255.255.0 interface Null 0 ip route 172.16.1.0 255.255.255.0 192.168.1.1 ip route 172.16.2.0 255.255.255.0 serial 1/2 ip route 172.168.1.0 255.255.255.0 192.168.1.1 line con 0 line aux 0 line vty 0 login password 7 035122110c3706 line vty 1 login password 7 13170743072817 line vty 2 login password 7 08113a1c182e00 line vty 3 login password 7 050a1337092610 line vty 4 login password 7 1234111358 end 收集于网络,如有侵权请联系管理员删除展开阅读全文
咨信网温馨提示:1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。




静态路由配置教学内容.doc



实名认证













自信AI助手
















微信客服
客服QQ
发送邮件
意见反馈



链接地址:https://www.zixin.com.cn/doc/3865899.html