Netplan does not support onlink gateway

Bug #1735193 reported by Waleed Hamra
10
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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nplan (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I've already noticed that "shortcoming", and I'll implement this as part of more work on the routing aspects of network configuration.

Marking Triaged/Wishlist; this is effectively a new "feature" since it's a new field we can use from systemd-networkd.

Changed in netplan:
status: New → Triaged
importance: Undecided → Wishlist
Changed in nplan (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Wishlist
Changed in netplan:
assignee: nobody → Mathieu Trudel-Lapierre (cyphermox)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Landed in git.

Changed in netplan:
status: Triaged → Fix Committed
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Fix Released in netplan 0.34.

Changed in netplan:
status: Fix Committed → Fix Released
affects: nplan (Ubuntu) → netplan.io (Ubuntu)
Changed in netplan.io (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.