- When a VRF has a DHCP default route, adding a static route to the VRF removes the default route from the VRF.
- When the default VRF has a DHCP default route, adding a static route to a VRF duplicates the default route in the VRF.
Setup:
set vrf name MGMT table 100 set interfaces ethernet eth0 vrf MGMT set interfaces ethernet eth0 address dhcp commit sleep 10 vtysh -c 'show running-config'
Building configuration... Current configuration: ! frr version 8.4.2 frr defaults traditional hostname vyos log syslog log facility local7 service integrated-vtysh-config ! vrf MGMT ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210 exit-vrf ! rpki exit ! end
Note the presence of a default route in the VRF.
Bug #1:
set vrf name MGMT protocols static route 1.1.1.1/32 dhcp-interface eth0 commit vtysh -c 'show running-config'
Building configuration... Current configuration: ! frr version 8.4.2 frr defaults traditional hostname vyos log syslog log facility local7 service integrated-vtysh-config ! vrf MGMT ip route 1.1.1.1/32 192.168.128.1 eth0 exit-vrf ! rpki exit ! end
Note the absence of a default route in the VRF.
Reset (avoiding T5103):
delete interfaces ethernet eth0 address delete vrf name MGMT protocols commit delete interfaces ethernet eth0 vrf commit set interfaces ethernet eth0 address dhcp commit sleep 10 vtysh -c 'show running-config'
Building configuration... Current configuration: ! frr version 8.4.2 frr defaults traditional hostname vyos log syslog log facility local7 service integrated-vtysh-config ! ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210 ! rpki exit ! end
Note the presence of a default route in the default VRF.
Bug #2:
set vrf name MGMT protocols static route 1.1.1.1/32 dhcp-interface eth0 commit vtysh -c 'show running-config'
Building configuration... Current configuration: ! frr version 8.4.2 frr defaults traditional hostname vyos log syslog log facility local7 service integrated-vtysh-config ! ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210 ! vrf MGMT ip route 0.0.0.0/0 192.168.128.1 eth0 tag 210 210 ip route 1.1.1.1/32 192.168.128.1 eth0 exit-vrf ! rpki exit ! end
Note the default route is duplicated in the VRF.