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

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

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

  【举例】

  配置缺省路由的下一跳为129.102.0.2。

  Quidway(config)#ip route 0.0.0.0 0.0.0.0 129.102.0.2

  【相关命令】

  show ip route,show ip route detail,show ip route static

  2.show ip route

  显示路由表摘要信息。

  show ip route

  【命令模式】

  特权用户模式

  【使用指南】

  该命令输出以列表方式显示路由表,每一行代表一条路由,内容包括:

  目的地址/掩码长度

  协议

  优先级

  度量值

  下一跳

  输出接口

  【举例】

  以下是引用片段:

  Quidway#show ip route

  Routing Tables:

  Destination/Mask Proto Pref Metric Nexthop Interface

  127.0.0.0/8 Static 0 0 127.0.0.1 127.0.0.1(LO0)

  127.0.0.1/32 Direct 0 0 127.0.0.1 127.0.0.1(LO0)

  138.102.128.0/17 Direct 0 0 138.102.129.7 138.102.129.7(EN0)

  202.38.165.0/24 Direct 0 0 202.38.165.1 202.38.165.1(SL1)

  【相关命令】

  ip route,show ip route detail,show ip route static

  3. show ip route detail

  显示路由表详细信息

  show ip route detail

  【命令模式】

  特权用户模式

  【使用指南】

  该命令输出信息帮助用户进行路由方面的故障诊断。

  【举例】

  以下是引用片段:

  Quidway#show ip route detail

  Route state description

  NoAdv: do not advertiset Int: AS Interior route

  Ext: AS External route Del: route to be deleted

  Active: current route Retain: route retains in the routing table

责编:豆豆技术应用

正在加载评论...