资源描述:
《实验10、静态路由和直连路由引入配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、实验十、静态路由和直连路由引入配置一、实验目的1.掌握路由引入的配置2.理解路由引入的原理二、应用环境1.在某些应用环境中需要将静态路由引入到某些动态路由协议里三、实验设备DCR-1751两台四、实验拓扑五、实验要求配置表:Router-ARouter-BF0/0192.168.0.1/24F0/0192.168.2.1/24S1/1(DCE)192.168.1.1/24S1/0192.168.1.2/24在A上配置将直连和静态路由引入到RIP和OSPF协议中六、实验步骤第一部分:引入到RIP协议中:第一步:参照实验三和上表配置接口地址并测试连通性第二步:配置路由器A的静
2、态路由,查看直连和静态路由Router-A#configRouter-A_config#iproute191.13.2.0255.255.255.0192.168.0.4!配置静态路由Router-A_config#^ZRouter-A#shiprouteCodes:C-connected,S-static,R-RIP,B-BGP,BC-BGPconnectedD-DEIGRP,DEX-externalDEIGRP,O-OSPF,OIA-OSPFinterareaON1-OSPFNSSAexternaltype1,ON2-OSPFNSSAexternaltype2OE1-
3、OSPFexternaltype1,OE2-OSPFexternaltype2DHCP-DHCPtypeVRFID:0S191.13.2.0/24[1,0]via192.168.0.4C192.168.0.0/24isdirectlyconnected,FastEthernet0/0C192.168.1.0/24isdirectlyconnected,Serial1/1第三步:在A上配置RIP协议,并将直连和静态路由引入Router-A_config#routerripRouter-A_config_rip#network192.168.1.0!注意并没有宣告192.16
4、8.0.0Router-A_config_rip#redistributeconnect!将直连的路由引入Router-A_config_rip#redistributestatic!将静态路由引入第四步:在B上配置RIP协议,查看从A学习到的被引入的路由Router-B#confRouter-B_config#routerripRouter-B_config_rip#network192.168.1.0Router-B_config_rip#^ZRouter-B#shiprouteCodes:C-connected,S-static,R-RIP,B-BGP,BC-BGP
5、connectedD-DEIGRP,DEX-externalDEIGRP,O-OSPF,OIA-OSPFinterareaON1-OSPFNSSAexternaltype1,ON2-OSPFNSSAexternaltype2OE1-OSPFexternaltype1,OE2-OSPFexternaltype2DHCP-DHCPtypeVRFID:0R191.13.0.0/16[120,1]via192.168.1.1(onSerial1/0)!注意是有类的路由R192.168.0.0/16[120,1]via192.168.1.1(onSerial1/0)C192.168
6、.1.0/24isdirectlyconnected,Serial1/0C192.168.2.0/24isdirectlyconnected,FastEthernet0/0第二部分:引入到OSPF协议中第一步和第二步同上第三步:在A上配置OSPF协议,并将直连和静态引入Router-A#confRouter-A_config#routerospf1Router-A_config_ospf_1#net192.168.1.0255.255.255.0area0Router-A_config_ospf_1#redistributeconnectRouter-A_config_o
7、spf_1#redistributestatic第四步:在B上配置OSPF协议,并查看从A学习到的路由Router-B#confRouter-B_config#routerospf1Router-B_config_ospf_1#net192.168.1.0255.255.255.0area0Router-B_config_ospf_1#exitRouter-B_config#norouterripRouter-B_config#^ZRouter-B#shiprouteCodes:C-connected,S-static,R-R