静态路由命令及配置【华为】
生活随笔
收集整理的這篇文章主要介紹了
静态路由命令及配置【华为】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
? ? ? ?靜態路由由網絡管理員手動配置,配置方便,對系統要求低,適用于拓撲結構簡單并且穩定的小型網絡。
? ? ? ?缺點是不能自動適應網絡拓撲的變化,需要人工干預。
配置命令
1、關聯下一跳IP的方式
[Huawei] ip route-static ip-address?{?mask?|?mask-length?} nexthop-address
2、關聯出接口的方式
[Huawei] ip route-static ip-address?{?mask?|?mask-length?} interface-type interface-number
3、關聯出接口和下一跳IP方式
[Huawei] ip route-static ip-address { mask | mask-length } interface-type interface-number [ nexthop-address ]
在創建靜態路由時,可以同時指定出接口和下一跳。對于不同的出接口類型,也可以只指定出接口或只指定下一跳。
對于點到點接口(如串口),必須指定出接口。
配置舉例
RTA與RTC上配置靜態路由,實現10.0.0.0/24與20.1.1.0/24的互通。 因為報文是逐跳轉發的,所以每一跳路由設備上都需要配置到達相應目的地址的路由。 另外需要注意通信是雙向的,針對通信過程中的往返流量,都需關注途徑設備上的路由配置。 RTAsystem-view sysname RTA interface GigabitEthernet 0/0/0 ip address 10.0.0.1 255.255.255.0 quit ip route-static 20.1.1.0 255.255.255.0 10.0.0.2?
RTBsystem-view sysname RTB interface GigabitEthernet 0/0/0 ip address 10.0.0.2 255.255.255.0 interface GigabitEthernet 0/0/1 ip address 20.1.1.2 255.255.255.0?
RTCsystem-view sysname RTC interface GigabitEthernet 0/0/1 ip address 20.1.1.1 255.255.255.0 quit ip route-static 10.0.0.0 255.255.255.0 20.1.1.2總結
以上是生活随笔為你收集整理的静态路由命令及配置【华为】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java的第十五天
- 下一篇: java应用服务器运维的那些事