《华为路由器路由引入(路由重发布)ospf-rip.docx》由会员分享,可在线阅读,更多相关《华为路由器路由引入(路由重发布)ospf-rip.docx(2页珍藏版)》请在优知文库上搜索。
1、华为路由器路由引入(路由重发布)路由引入route-import路由重分布路由重分发metricrouteredistributecost一、配置ip地址ARI:syHuaweiundoinfo-centerenableHuaweiintg000Huawei-GigabitEthernetOOOipadd2.2.2.124Huawei-GigabitEthernetOOOquitHuaweiintgO/O/1Huawei-GigabitEthernetOOlipadd1.1.1.124Huawei-GigabitEthernetOOlquitAR2:system-viewHuaweiundoi
2、nfo-centerenableHuaweiintg000Huawei-GigabitEthernetOOOipadd2.2.2.224Huawei-GigabitEthernetOOOintgO/O/1Huawei-GigabitEthernetOOlipadd3.3.3.124Huawei-GigabitEthernetOOlquitAR3:syHuaweiundoinfo-centerenableHuaweiintg000Huawei-GigabitEthernetOOOipad3.3.3.224Huawei-GigabitEthernetOOOintgO/O/1Huawei-Gigab
3、itEthernetOOlipadd4.4.4.124Huawei-GigabitEthernetOOlquit二、在ARl和AR2上配置OSPf协议AR1:Huaweiospf1Huawei-ospf-lareaOHuawei-ospf-l-area-0.0.0.0net1.1.1.00.0.0.255Huawei-ospf-l-area-0.0.0.0net2.2.2.00.0.0.255Huawei-ospf-l-area-0.0.0.0quitHuawei-ospf-lquitAR2:Huaweiospf1Huawei-ospf-larea0Huawei-ospf-l-area-0.0
4、.0.0net2.2.2.00.0.0.255Huawei-ospf-l-area-0.0.0.0quitHuawei-ospf-lquit三、在AR2和AR3上配置rip协议AR2:Huaweirip1Huawei-rip-lversion2Huawei-rip-lnet3.0.0.0Huawei-rip-lquitAR3:Huaweirip1Huawei-rip-lversion2Huawei-rip-lnet3.0.0.0Huawei-rip-lnet4.0.0.0为什么向4.0.0.0段宣告,而不是4.4.4.0Huawei-rip-lquitARI:Huaweidisiproutin
5、g-tableAR3:Huaweidisiprouting-table查看路由表,看看是否完整四、在路由器AR2上,在OSPf协议中引入ripsystem-viewHuaweiospf1Huawei-ospf-limport-routerip1引入rip协议,可以设置CoSt值,也可按照默认Huawei-ospf-lquit五、在路由器AR2上,在rip协议中引入OSPfHuaweirip1Huawei-rip-limport-routeospf1引入OSPf协议,可以设置COSt值,也可按照默认Huawei-rip-lquitHuawei六、分别在ARl和AR2上查看路由表,与没有引入前的路由表对比。ARI:Huaweidisiprouting-tableAR3:Huaweidisiprouting-table