0

I have a Ubuntu Server 18 machine with two ethernet interfaces (virtual for testing, but bridged to physical adapters on the host). One enp0s3 (192.168.1.0/24 network) with an internet connection, over which I used pptp-linux to connect a VPN ppp0 (10.0.0.0/8 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 10.0.0.0/8 IP addresses etc.

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

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: yes
      dhcp6: yes
    enp0s8:
      dhcp4: yes
      dhcp6: yes
#    ppp0:
#      dhcp4: yes
#      dhcp6: yes
  bridges:
    br0:
      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.