Netplan does not support onlink gateway
Bug #1735193 reported by
Waleed Hamra
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
Wishlist
|
Mathieu Trudel-Lapierre | ||
netplan.io (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
There are cases where the gateway is not in the same subnet as the IP of the machine. The kernel will by default not allow adding such a route, unless some options are specified.
For example, I could add such route using:
sudo ip route add default via xxx.xxx.xxx.xxx dev ens3 onlink
The onlink keyword skips the sanity check, the route gets added, and life is good.
systemd-network does support this, with a keywork in its .network file called gatewayonlink, according to the systemd.network man page, but netplan provides no option for me to tell it I want this option.
Changed in netplan: | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.