missing point-to-point option in netplan configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Wishlist
|
Unassigned | ||
netplan.io (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Hi,
missing an option in netplan configuration to use point-to-point interfaces.
Example /etc/network/
iface ens3 inet static
address 10.20.30.40
netmask 255.255.255.255
gateway 10.10.10.1
pointopoint 10.10.10.1
# ip addr show ens3
2: ens3: <BROADCAST,
link/ether 52:54:00:e3:a0:c8 brd ff:ff:ff:ff:ff:ff
inet 10.20.30.40 peer 10.10.10.1/32 scope global ens3
valid_lft forever preferred_lft forever
Currently I'm trying to workaround with /usr/lib/
#! /bin/bash
while [ ! $(ip link show ens3 | perl -nE 'say /state\ UP/') ] ; do
wait 1
done
ip addr add 10.20.30.40/32 peer 10.10.10.1 dev ens3
ip route add default via 10.10.10.1 dev ens3
If implemented, maybe something like the following two ideas?
network:
version: 2
renderer: networkd
ethernets:
ens3:
addresses:
- 10.20.30.40/32 peer 10.10.10.1
gateway4: 10.10.10.1
or:
network:
version: 2
renderer: networkd
ethernets:
ens3:
addresses:
- peer: 10.10.10.1
gateway4: 10.10.10.1
https:/ /systemd. network/ systemd. network. html#Peer=:
.network supports [Address] Peer=
with same input as Address= in there.
Not sure about NetworkManager.