I have a Ubuntu Server 18 machine with two ethernet interfaces (virtual for testing, but bridged to physical adapters on the host). One enp0s3 ( network) with an internet connection, over which I used pptp-linux to connect a VPN ppp0 ( network), and confirmed working. The other adapter enp0s8 will have some other devices with a network switch, no router/DHCP.

I want to bridge ppp0 and enp0s8 so that these devices act like they were physically on the remote network, using IP addresses etc.

Most examples I found seemed to only have one interfaces in the netplan (libvirtd?), so I tried giving it both:

  version: 2
  renderer: networkd
      dhcp4: yes
      dhcp6: yes
      dhcp4: yes
      dhcp6: yes
#    ppp0:
#      dhcp4: yes
#      dhcp6: yes
      interfaces: [enp0s8, ppp0]
      dhcp4: yes
      dhcp6: yes

But it seems to not understand this:

$ sudo netplan generate
/etc/netplan/01-netcfg.yaml:15:28: Error in network definition: br0: interface 'ppp0' is not defined
      interfaces: [enp0s8, ppp0]

Adding ppp0 there gets rid of the error, but breaks the VPN connection.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.