RP/0/0/CPU0:XRv# show route local
Sat Sep 5 16:43:48.291 UTC
L 10.1.1.1/32 is directly connected, 00:11:21, Loopback1
従来通り、VRF 名を明示的に指定することも可能です。
123456789
RP/0/0/CPU0:XRv# show route vrf VRF-1 local
Sat Sep 5 16:45:21.265 UTC
L 10.1.1.1/32 is directly connected, 00:12:54, Loopback1
RP/0/0/CPU0:XRv#
RP/0/0/CPU0:XRv# show route vrf VRF-2 local
Sat Sep 5 16:45:27.864 UTC
L 10.2.2.2/32 is directly connected, 00:13:00, Loopback2
show default-afi-safi-vrf でセットされている default-vrf を確認出来ます。その他、デフォルトとして設定されている AFI / SAFI の情報も確認出来ます。
123456
RP/0/0/CPU0:XRv# show default-afi-safi-vrf
Sat Sep 5 16:38:22.813 UTC
%% Default AFI/SAFI/VRF for this session is:
Address Family Identifier: ipv4
Sub-Address Family Identifier: unicast
Virtual Routing/Forwarding: VRF-1
RP/0/0/CPU0:XRv# set default-vrf none
Sat Sep 5 16:50:22.334 UTC
%% Default Virtual Routing/Forwarding is set to
RP/0/0/CPU0:XRv# show route local
Sat Sep 5 16:50:26.544 UTC
L 10.0.0.0/32 is directly connected, 00:17:59, Loopback0
show default-afi-safi-vrf を実行すると VRF(Virtual Routing/Forwarding:)の出力が「」(空欄)になっており、VRF 指定が無くなったことが分かります。
123456
RP/0/0/CPU0:XRv# show default-afi-safi-vrf
Sat Sep 5 16:51:21.710 UTC
%% Default AFI/SAFI/VRF for this session is:
Address Family Identifier: ipv4
Sub-Address Family Identifier: unicast
Virtual Routing/Forwarding: