在 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
我是否错过了实现这一目标的非常明显的方法?