《华为路由器静态及直连路由重发布.docx》由会员分享,可在线阅读,更多相关《华为路由器静态及直连路由重发布.docx(2页珍藏版)》请在第壹文秘上搜索。
1、华为路由器静态及直连路由重发布静态及直连路由重发布OSpf一、配置ip地址ARlssyHuaweiundoinfo-centerenableHuaweiintg000Huawei-GigabitEthernetOOOipadd2.2.2.124Huawei-GigabitEthernetOOOquitHuaweiintgO/O/1Huawei-GigabitEthernetOOlipadd1.1.1.124Huawei-GigabitEthernetOOlquitAR2:system-viewHuaweiundoinfo-centerenableHuaweiintgO/O/OHuawei-Gi
2、gabitEthernetOOOipadd2.2.2.224Huawei-GigabitEthernetOOOintgO/O/1Huawei-GigabitEthernetOOlipadd3.3.3.124Huawei-GigabitEthernetOOlquitAR3:syHuaweiundoinfo-centerenableHuaweiintgO/O/OHuawei-GigabitEthernetOOOipad3.3.3.224Huawei-GigabitEthernetOOOintgO/O/1Huawei-GigabitEthernetOOlipadd4.4.4.124Huawei-Gi
3、gabitEthernetOOlquit二、在ARl和AR2上配置OSPf协议AR1:Huaweiospf1Huawei-ospf-larea0Huawei-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-lareaOHuawei-ospf-l-area-0.0.0.0net2.2.2.00.0.0.255只向一边的网段进行宣告Hu
4、awei-ospf-l-area-0.0.0.0quitHuawei-ospf-lquit三、在AR2和AR3上配置静态路由AR2:Huaweiiproute-static4.4.4.0243.3.3.2AR3:Huaweiiproute-static1.1.1.0243.3.3.1Huaweiiproute-static2.2.2.0243.3.3.1ARI:Huaweidisiprouting-table查看路由表,看看是否完整AR3:Huaweidisiprouting-table四、在路由器AR2上,在静态和直连路由引入OSPfAR2:Huaweiospf1Huawei-ospf-limport-routestaticcost100把AR2中的静态路由引入ospf网络中,设置开销值为100ARI:Huaweidisiprouting-table查看ARl中路由表的变化AR2:Huaweiospf1Huawei-ospf-limport-routedirectcost50把AR2中的直连路由引入。SPf网络中,设置开销值为50ARI:Huaweidisiprouting-table查看ARl中路由表的变化