in Ubuntu 18.04 (and 18.10) we're finding (on proxmox host) that Ubuntu VM's are losing the lan IP route on restart. We know the command to make them re-add it. But we don't want to have it run it manually. These are
Class C connections that should not require a gateway.
For refernce this is the command in command line that we have to run every reboot (where 10.90.90.52 is the static client ip) it works perfectly
# ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
I have looked at the netplan examples but they make no mention of
eth1.. what is the yaml equivalent of the above working command line?
this is our (not working)
/etc/netplan/config.yaml we were fiddling with. we know it's not good enough.
network: version: 2 ethernets: ens160: addresses: - 10.90.90.2/24 dhcp4: false
this is the proxmox config
remember this command
# ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52 is currently working but when we restart we have to manually run it. We're simply looking for the yaml version of what works by hand.