show route best
语法
show route best destination-prefix <brief | detail | extensive | terse> <logical-system (all | logical-system-name)>
语法(EX 系列交换机)
show route best destination-prefix <brief | detail | extensive | terse>
说明
在路由表中显示路由,该路由是到指定地址或地址范围的最佳路由。最佳路由是最长的匹配路由。
选项
brief | detail | extensive | terse | (可选)显示指定的输出级别。如果未指定输出级别,则系统默认为 |
destination-prefix | 地址或地址范围。 |
logical-system (all | logical-system-name) | (可选)在所有逻辑系统或特定逻辑系统上执行此操作。 |
必需的权限级别
视图
输出字段
有关输出字段的信息,请参阅命令、命令、命令或show route terse
命令的show route extensive
输出字段表show route
。show route detail
示例输出
show Route best
user@host> show route best 10.255.70.103 inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden) Restart Complete + = Active Route, - = Last Active, * = Both 10.255.70.103/32 *[OSPF/10] 1d 13:19:20, metric 2 > to 10.31.1.6 via ge-3/1/0.0 via so-0/3/0.0 inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) Restart Complete + = Active Route, - = Last Active, * = Both 10.255.70.103/32 *[RSVP/7] 1d 13:20:13, metric 2 > via so-0/3/0.0, label-switched-path green-r1-r3 private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.0.0.0/8 *[Direct/0] 2d 01:43:34 > via fxp2.0 [Direct/0] 2d 01:43:34 > via fxp1.0
show route best detail
user@host> show route best 10.255.70.103 detail inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden) Restart Complete 10.255.70.103/32 (1 entry, 1 announced) *OSPF Preference: 10 Next-hop reference count: 9 Next hop: 10.31.1.6 via ge-3/1/0.0, selected Next hop: via so-0/3/0.0 State: <Active Int> Local AS: 69 Age: 1d 13:20:06 Metric: 2 Area: 0.0.0.0 Task: OSPF Announcement bits (2): 0-KRT 3-Resolve tree 2 AS path: I inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) Restart Complete 10.255.70.103/32 (1 entry, 1 announced) State: <FlashAll> *RSVP Preference: 7 Next-hop reference count: 5 Next hop: via so-0/3/0.0 weight 0x1, selected Label-switched-path green-r1-r3 Label operation: Push 100016 State: <Active Int> Local AS: 69 Age: 1d 13:20:59 Metric: 2 Task: RSVP Announcement bits (1): 1-Resolve tree 2 AS path: I private1__inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) 10.0.0.0/8 (2 entries, 0 announced) *Direct Preference: 0 Next hop type: Interface Next-hop reference count: 1 Next hop: via fxp2.0, selected State: <Active Int> Age: 2d 1:44:20 Task: IF AS path: I Direct Preference: 0 Next hop type: Interface Next-hop reference count: 1 Next hop: via fxp1.0, selected State: <NotBest Int> Inactive reason: No difference Age: 2d 1:44:20 Task: IF AS path: I
show route best extensive
命令的 show route best extensive
输出与命令的 show route best detail
输出相同。有关示例输出,请参阅 show route best detail。
show route best terse
user@host> show route best 10.255.70.103 terse inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden) Restart Complete + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 10.255.70.103/32 O 10 2 >10.31.1.6 so-0/3/0.0 inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) Restart Complete + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 10.255.70.103/32 R 7 2 >so-0/3/0.0 private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 10.0.0.0/8 D 0 >fxp2.0 D 0 >fxp1.0
发布信息
在 Junos OS 7.4 版之前引入的命令。