sorry if this is trivial ... but I do not seem to be able to get netplan to set the proper route to the default gateway. I have to manually set it using 'sudo route add default gw [...]' to enable the server to reach the internet.
This is my current netplan configuration (in /etc/netplan/00-installer-config.yaml):
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
eno2:
dhcp4: no
enp33s0f0:
dhcp4: no
enp33s0f1:
dhcp4: no
ens1f0:
addresses:
- [xxx].[yy].[zz].124/29
routes:
- to: default
via: [xxx].[yy].[zz].121
nameservers:
addresses: [redacted]
dhcp4: no
dhcp6: no
ens1f1:
dhcp4: no
This sets the IP-number correctly, and I can connect from a neighboring server. However, 'route -n' only shows this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[xxx].[yy].[zz].120 0.0.0.0 255.255.255.248 U 0 0 0 ens1f0
... meaning there is no route to the actual gateway.
I have to manually set it using the 'route' command, like so:
sudo route add default gw [xxx].[yy].[zz].121 ens1f0
... then everything is fine, including DNS; but this does not survive reboot.
Any idea what I am doing wrong? I have tried using the 'on-link: true' setting, but that did not work either.
Thank you very much for any help / insights !