在Junos中,当您使用a时,show route
它将显示路由表,从inet.0(全局路由表)开始,然后按字母顺序列出每个VRF。
由于以下原因,我正在执行类似的命令,原因如下:新的WAN部署:远程工程师无需插入LAN即可验证VRF连接,因此,我想列出每个VRF中必需的强制路由(例如0/0)。
我知道我可以用实现此目的,show ip bgp vpnv4 all
但是这不会显示全局路由表,该表目前用于管理。
在Junos中,我将运行show route 0/0
该命令,以显示设备中每个VRF中所有出现的指定路由,包括inet.0。
iank@r1> show route 0/0 exact terse
vrf1.inet.0: 99 destinations, 105 routes (99 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 0.0.0.0/0 B 170 100 0 >172.31.30.2 64512 I
vrf2.inet.0: 362 destinations, 408 routes (362 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 0.0.0.0/0 B 170 100 >172.31.7.2 64999 I
vrf3.inet.0: 658 destinations, 711 routes (658 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 0.0.0.0/0 B 170 100 >172.31.12.2 64999 I
vrf4.inet.0: 377 destinations, 423 routes (377 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 0.0.0.0/0 B 170 100 >172.31.3.2 64999 I
我是否错过了实现这一目标的明显方法?