With DHCP server connected to eth0 interface of VyOS:
configure set interfaces ethernet eth0 address dhcp set interfaces ethernet eth0 vrf 'red' set vrf name red table '1010' commit run show ip route vrf red vyos@vyos# run show ip route vrf red ... VRF red: S>* 0.0.0.0/0 [210/0] via 10.1.1.113, eth0, weight 1, 00:00:27 C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:27 K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:27 L>* 10.1.1.11/32 is directly connected, eth0, weight 1, 00:00:27 # Make any change that leads to FRR reload: set protocols static route 10.20.30.40/32 interface eth0 commit vyos@vyos# run show ip route vrf red ... VRF red: C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:01:07 K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:01:07 L>* 10.1.1.11/32 is directly connected, eth0, weight 1, 00:01:07
Expected: default route should not be deleted.