《华为交换机静态路由的配置.docx》由会员分享,可在线阅读,更多相关《华为交换机静态路由的配置.docx(2页珍藏版)》请在第壹文秘上搜索。
1、华为交换机静态路由的配置静态路由*ri 2.2.2.1/242.2.2.2/24OE 0给路由器端口配置如图所示的ip地址ARl:system-viewHuaweiintgO/0/lHuawei-GigabitEthernetOOlipaddress1.1.1.124给端口0/0/1配置ip地址Huawei-GigabitEthernetOOlquitHuaweiundoinfo-centerenableHuaweiintg000Huawei-GigabitEthernetOOOipaddress2.2.2.124给端口0配置ip地址Huawei-GigabitEthernetOOOquitH
2、uaweidisiprouting-table查看路由表AR2:syHuaweiundoinfo-centerenableHuaweiintgO/O/1Huawei-GigabitEthernetOOlipaddress3.3.3.124Huawei-GigabitEthernetOOlquitHuaweiintg000Huawei-GigabitEthernetOOOipaddress2.2.2.224Huawei-GigabitEthernetOOOquitHuaweidisiprouting-table在两个路由器上配置静态路由:ARl:Huaweiiproute-static3.3.3.0242.2.2.2在ARl上配置去往3.3.3.0网段的静态路由,下一条地址是222.2Huaweidisiprouting-table查看路由表AR2:Huaweiiproute-static1.1.1.0242.2.2.1在AR2上配置去往网段的静态路由,下一条地址是222.1Huaweidisiprouting-table查看路由表测试:在PCl上PingPC2