Perhaps the bug title should be changed from 'no default route' to 'default route doesn't seem to be relevant if it is not in the default routing table':
I wasn't aware that the default route would be in another table - it is, but it doesn't work. If i add the route to the default table it does work.
ubuntu@node-mawhile:~$ ip route
10.140.121.0/24 dev lxdbr0 proto kernel scope link src 10.140.121.1
10.245.168.0/21 dev enP5p9s0f0 proto kernel scope link src 10.245.168.63
ubuntu@node-mawhile:~$ ip route list table 1
default via 10.245.168.1 dev enP5p9s0f0 proto static
ubuntu@node-mawhile:~$ ip route get 8.8.8.8
RTNETLINK answers: Network is unreachable
ubuntu@node-mawhile:~$ sudo ip route add default via 10.245.168.1 dev enP5p9s0f0
ubuntu@node-mawhile:~$ ip route get 8.8.8.8
8.8.8.8 via 10.245.168.1 dev enP5p9s0f0 src 10.245.168.63 uid 1000
cache
Here is the replicated cloud-init output (note the lxd route is there because I launched some containers after adding the route) - note no default route in this output.
Perhaps the bug title should be changed from 'no default route' to 'default route doesn't seem to be relevant if it is not in the default routing table':
I wasn't aware that the default route would be in another table - it is, but it doesn't work. If i add the route to the default table it does work.
ubuntu@ node-mawhile: ~$ ip route node-mawhile: ~$ ip route list table 1
10.140.121.0/24 dev lxdbr0 proto kernel scope link src 10.140.121.1
10.245.168.0/21 dev enP5p9s0f0 proto kernel scope link src 10.245.168.63
ubuntu@
default via 10.245.168.1 dev enP5p9s0f0 proto static
ubuntu@ node-mawhile: ~$ ip route get 8.8.8.8 node-mawhile: ~$ sudo ip route add default via 10.245.168.1 dev enP5p9s0f0 node-mawhile: ~$ ip route get 8.8.8.8
RTNETLINK answers: Network is unreachable
ubuntu@
ubuntu@
8.8.8.8 via 10.245.168.1 dev enP5p9s0f0 src 10.245.168.63 uid 1000
cache
pastebin for /etc/netplan/ 50-cloud- init.yaml /pastebin. ubuntu. com/p/DbHvkCHtN r/
https:/
pastebin for /etc/cloud/ cloud.cfg. d/50-curtin- networking. cfg /pastebin. ubuntu. com/p/KH4R2XMTC N/
https:/
Here is the replicated cloud-init output (note the lxd route is there because I launched some containers after adding the route) - note no default route in this output.
https:/ /pastebin. ubuntu. com/p/XtwmcVZxV 3/
Running netplan apply --debug doesnt make a difference, the default route is still where it should be, in table 1, but nothing external is reachable.