VyOS 1.3 not affected!
Disable and enable of the dhcp no-default-route option on a DHCP client interface does not take effect on commit. It only takes affect on lease renewal - this should be handled automatically.
To reproduce
Activate DHCP
set interfaces ethernet eth0 vif 10 address dhcp set interfaces ethernet eth0 vif 10 dhcp-options no-default-route commit
Check DHCP client PID and interface
root 2706 1.3 0.1 99820 5820 ? Ssl 09:37 0:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth0.10.conf -pf /var/lib/dhcp/dhclient_e
8: eth0.10@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:50:56:bf:c5:6d brd ff:ff:ff:ff:ff:ff inet 172.16.33.123/24 brd 172.16.33.255 scope global dynamic eth0.10 valid_lft 86372sec preferred_lft 86372sec inet6 fe80::250:56ff:febf:c56d/64 scope link valid_lft forever preferred_lft forever
Delete "no-default-route"
delete interfaces ethernet eth0 vif 10 dhcp-options no-default-route commit
Check DHCP client PID (still the same)
root 2706 0.0 0.1 99820 7792 ? Ssl 09:37 0:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth0.10.conf -pf /var/lib/dhcp/dhclient_e
dhcp client not restarted or config not reloaded.
client leadse file still has no option routers present
[email protected]# cat /var/lib/dhcp/dhclient_eth0.10.leases lease { interface "eth0.10"; fixed-address 172.16.33.123; option subnet-mask 255.255.255.0; option dhcp-lease-time 86400; option dhcp-message-type 5; option domain-name-servers 172.16.254.30; option dhcp-server-identifier 172.16.33.254; option domain-name "mybll.net"; renew 6 2022/06/25 16:59:28; rebind 0 2022/06/26 04:37:49; expire 0 2022/06/26 07:37:49; }
A temporary fix would be to call from OP mode:
renew dhcp interface eth0.10