《华为交换机单区域ospf配置.docx》由会员分享,可在线阅读,更多相关《华为交换机单区域ospf配置.docx(2页珍藏版)》请在第壹文秘上搜索。
1、华为交换机单区域OSPf协议配置单区城。SPf配置给路由器配置地址:AR1:system-viewHuaweiundoinfo-centerenable关闭信息提示HuaweiinterfaceLoopBack0进入IoopbackO接口Huawei-LoopBackOlipaddress1.1.1.124Huawei-LoopBackOJquitHuaweiinterfaceg000Huawei-GigabitEthernetOOOipadd2.2.2.124Huawei-GigabitEthernetOOOquitHuaweidisiprouting-table查看路由表,没有333.0段
2、的路由AR2:Huaweiundoinfo-centerenableHuaweiinterfaceLoopBackO进入IoopbackO接口Huawei-LoopBackOJipaddress3.3.3.124Huawei-LoopBackOlquitHuaweiintgO/O/OHuawei-GigabitEthernetOOOipaddress2.2.2.224Huawei-GigabitEthernetOOOquitHuaweidisiprouting-table配置ospf协议ARI:syHuaweiospf1启用OSPf协议,进程号为1Huawei-ospf-lareaO建立骨干区
3、域areaHuawei-ospf-l-area-0.0.0.0network1.1.1.00.0.0.255向直连网段宣告,掩码为反转位Huawei-ospf-l-area-0.0.0.0net2.2.2.00.0.0.255向直连网段宣告,掩码为反转位Huawei-ospf-l-area-0.0.0.0quitAR2:system-viewHuaweiospf1Huawei-ospf-larea0建立骨干区域areaHuawei-ospf-l-area-0.0.0.0network2.2.2.00.0.0.255向直连网段宣告,掩码为反转位Huawei-ospf-l-area-0.0.0.0
4、network3.3.3.00.0.0.255向直连网段宣告,掩码为反转位Huawei-ospf-l-area-0.0.0.0quitHuawei-ospf-lquitHuaweidisiprouting-tableHuaweidisospfpeer查看邻居信息测试:在ARl上:Huaweiping3.3.3.1PING3.3.3.1:56databytes,pressCTRL_CtobreakReplyfrom3.3.3.1:bytes=56Sequence=Ittl=255time=30msReplyfrom3.3.3.1:bytes=56Sequence=2ttl=255time=20msReplyfrom3.3.3.1:bytes=56Sequence=3ttl=255time=20msReplyfrom3.3.3.1:bytes=56Sequence=4ttl=255time=20msReplyfrom3.3.3.1:bytes=56Sequence=Sttl=255time=20ms