Page MenuHomeVyOS Platform

Default IPv6 route is not created in VRF
Closed, ResolvedPublicBUG

Description

It appears that default IPv6 route is not created ib VRF. Here si the configuration:

vyos01# show protocols vrf MGMT-TOR1
 static {
     route 0.0.0.0/0 {
         next-hop 192.168.1.1 {
         }
     }
     route6 ::/0 {
         next-hop 2620:18:6000:aa10::1 {
         }
     }
 }
[edit]

the IPv4 route is created as expected:

vyos01# run show ip route vrf MGMT-TOR1
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

VRF MGMT-TOR1:
S>* 0.0.0.0/0 [1/0] via 192.168.1.1, eth0, 03:46:01
K   0.0.0.0/0 [255/8192] unreachable (ICMP unreachable), 03:49:26
C>* 192.168.1.0/24 is directly connected, eth0, 03:49:26

however, IPv6 route is missing

@vyos01# run show ipv6 route vrf MGMT-TOR1
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

VRF MGMT-TOR1:
K   ::/0 [255/8192] unreachable (ICMP unreachable), 03:49:14
C>* fe80::/64 is directly connected, eth0, 03:49:12

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.3.0-rc3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Viacheslav changed the task status from Open to Confirmed.Mar 30 2021, 7:33 PM
Viacheslav triaged this task as Normal priority.
Viacheslav added a project: VyOS 1.3 Equuleus.
Viacheslav changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).

The route present in the frr

!
vrf foo
 ipv6 route ::/0 2620:18:6000:aa10::1
 exit-vrf
!

Update
I can see route after reboot

vyos@r5-roll:~$ show ipv6 route vrf foo
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

VRF foo:
S>* ::/0 [1/0] via 2620:18:6000:aa10::1, eth1, 00:02:38
K   ::/0 [255/8192] unreachable (ICMP unreachable), 00:02:40
C>* 2620:18:6000:aa10::/64 is directly connected, eth1, 00:02:39
C>* fe80::/64 is directly connected, eth1, 00:02:38

What command do you use to get this?

@dtoux vtysh -c "show run"
Also, it doesn't show a directly connected ipv6 route.

But after "save" and reboot, all works fine.

To reproduce, on clean install 1.3.-rc3

set interfaces ethernet eth1 address '2620:18:6000:aa10::2/64'
set interfaces ethernet eth1 vrf 'foo'
set protocols vrf foo static route6 ::/0 next-hop 2620:18:6000:aa10::1
set vrf name foo table '1050'

But after reboot, I can't see that bug.

I still see it in frr after the reboot but it is not showing in the output of show ipv6 route, so it seems like just a visualization problem.

Viacheslav claimed this task.
vyos@r4-1.3:~$ show ipv6 route vrf all
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

C * fe80::/64 is directly connected, eth0, 00:01:29
C>* fe80::/64 is directly connected, lo, 00:01:30
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

VRF foo:
S>* ::/0 [1/0] via 2620:18:6000:aa10::1, eth1, 00:00:13
K   ::/0 [255/8192] unreachable (ICMP unreachable), 00:00:15
C>* 2620:18:6000:aa10::/64 is directly connected, eth1, 00:00:13
C>* fe80::/64 is directly connected, eth1, 00:00:13
vyos@r4-1.3:~$ 
vyos@r4-1.3:~$ 
vyos@r4-1.3:~$ show version 

Version:          VyOS 1.3-rolling-202104270642
Release Train:    equuleus