AR 18系列路由器静态路由配置命令手册 联系客服

发布时间 : 星期六 文章AR 18系列路由器静态路由配置命令手册更新完毕开始阅读a894786c25c52cc58bd6beea

Summary count: 4

Destination/Mask Proto Pre Cost Nexthop Interface 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0 169.0.0.0/8 Static 60 0 2.1.1.1 LoopBack1 169.0.0.0/15 Static 60 0 2.1.1.1 LoopBack1

# 查看通过基本访问控制列表ACL2001过滤的active和inactive的路由的详细信息。

display ip routing-table acl 2001 verbose Routes matched by access-list 2001: Generate Default: no

+ = Active Route, - = Last Active, # = Both * = Next hop in use Summary count:5

**Destination: 127.0.0.0 Mask: 255.0.0.0 Protocol: #Direct Preference: 0

*NextHop: 127.0.0.1 Interface: 127.0.0.1(InLoopBack0) Vlinkindex: 0

State: Age: 3:47 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(InLoopBack0) Vlinkindex: 0

State: Age: 3:47 Metric: 0/0

**Destination: 179.0.0.0 Mask: 255.0.0.0 Protocol: #Static Preference: 60 *NextHop: 4.1.1.1 Vlinkindex: 0

State:

**Destination: 169.0.0.0 Mask: 255.0.0.0 Protocol: #Static Preference: 60

*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1) Vlinkindex: 0

State: Age: 3:47 Metric: 0/0

**Destination: 169.0.0.0 Mask: 255.254.0.0 Protocol: #Static Preference: 60

*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1) Vlinkindex: 0

State: Age: 3:47 Metric: 0/0

1.1.3 display ip routing-table ip-address

【命令】

display ip routing-table ip-address [ mask ] [ longer-match ] [ verbose ]

【视图】

所有视图

【参数】

ip-address:目的IP地址,点分十进制格式。

mask:IP地址掩码,点分十进制格式或以整数形式表示的长度,当用整数时,取值范围为0~32。

longer-match:自然掩码范围内匹配的所有目的地址路由。

verbose:当使用该参数时,显示处于active状态和inactive状态的路由的详细信息。如果不使用该参数,将只显示处于active状态的路由的摘要信息。

【描述】

display ip routing-table ip-address命令用来查看指定目的地址的路由信息。

使用不同的可选参数,命令的输出也不相同,以下是对该命令不同形式的输出说明:

? display ip routing-table ip-address

如果目的地址ip-address在自然掩码范围内有相应的路由,则将显示其全部子网路由,否则只显示与目的地址ip-address最长匹配的路由。只显示处于active状态的匹配路由。

? display ip routing-table ip-address mask

只显示与指定目的地址及掩码精确匹配的路由。

? display ip routing-table ip-address longer-match

显示目的地址在自然掩码范围内匹配的所有目的地址路由。

【举例】

# 在自然掩码范围内有相应路由,查看摘要信息。

display ip routing-table 169.0.0.0 Routing Tables: Summary count:1

Destination/Mask Proto Pre Cost Nexthop Interface 169.0.0.0/16 Static 60 0 2.1.1.1 LoopBack1

# 在自然掩码范围内没有相应的路由(只显示最长匹配的路由),查看摘要信息。

display ip routing-table 169.253.0.0 Routing Tables: Summary count:1

Destination/Mask Proto Pre Cost Nexthop Interface 169.0.0.0/8 Static 60 0 2.1.1.1 LoopBack1

# 在自然掩码范围内有相应路由,查看详细信息。

display ip routing-table 169.0.0.0 verbose Routing Tables: Generate Default: no

+ = Active Route, - = Last Active, # = Both * = Next hop in use

Summary count:2

**Destination: 169.0.0.0 Mask: 255.0.0.0 Protocol: #Static Preference: 60

*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1) Vlinkindex: 0

State: Age: 3:47 Metric: 0/0

**Destination: 169.0.0.0 Mask: 255.254.0.0 Protocol: #Static Preference: 60

*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1) Vlinkindex: 0

State: Age: 3:47 Metric: 0/0

# 在自然掩码范围内没有相应的路由(只显示最长匹配的路由),查看详细信息。

display ip routing-table 169.253.0.0 verbose Routing Tables: Generate Default: no

+ = Active Route, - = Last Active, # = Both * = Next hop in use Summary count:1

**Destination: 169.0.0.0 Mask: 255.0.0.0 Protocol: #Static Preference: -60 *NextHop: 2.1.1.1 Vlinkindex: 0

State: Age: 3:47 Metric: 0/0

1.1.4 display ip routing-table ip-address1 ip-address2

【命令】

display ip routing-table ip-address1 mask1 ip-address2 mask2 [ verbose ]