华为路由器静态路由配置命令详解

http://tech.ddvip.com   2008年06月11日    社区交流 收藏本文

内容摘要:本文详细介绍了华为路由静态配置命令。

  Rej: rejecting route Black: black hole route

  Routing Tables:

  Generate Default: no

  + = Active Route, - = Last Active, * = Both

  Destinations: 4 Routes: 4

  Holddown: 0 Delete: 9 Hidden: 0

  **Destination: 127.0.0.0 Mask: 255.0.0.0

  Protocol: *Static Preference: 0

  NextHop: 127.0.0.1 Interface: 127.0.0.1(LO0)

  State: $#@60;NoAdv Int Active Retain Rej$#@62;

  Age: 19:31:06 Metric: 0/0

  **Destination: 127.0.0.1 Mask: 255.255.255.255

  Protocol: *Direct Preference: 0

  NextHop: 127.0.0.1 Interface: 127.0.0.1(LO0)

  State: $#@60;NoAdv Int Active Retain$#@62;

  Age: 114:03:05 Metric: 0/0

  先显示用于路由状态描述的符号,然后输出整个路由表的统计数字,最后依次输出每条路由的详细描述。 其含义如表4-1所示。

华为路由器静态路由配置命令详解

  表4-1 路由表信息

  【相关命令】

  ip route,show ip route,show ip route static

  4.show ip route static

  显示静态路由表。

  show ip route static

  【命令模式】

  特权用户模式

  【使用指南】

  根据该命令输出信息,可以帮助用户确认对静态路由的配置是否正确。

  【举例】

  Quidway#show ip route static

  Static routes for family INET: (* indicates gateway(s) in use)

  1.2.3.0/24 pref 60 $#@60;Int$#@62; intf EN0

  127.0.0.0/8 pref 0 $#@60;NoAdv Int Retain Rej$#@62; intf 127.0.0.1

  以列表的方式显示静态路由表,每一行代表一条静态路由,从左到右依次为:

  目的地址/掩码长度

  优先级

  $#@60;状态参数$#@62;

  输出接口和下一跳

  【相关命令】

  ip route,show ip route,show ip route detail

责编:豆豆技术应用

正在加载评论...