macOS-Simple-KVM icon indicating copy to clipboard operation
macOS-Simple-KVM copied to clipboard

Request: It would be great to extend the networking guide with netplan

Open weactivist opened this issue 4 years ago • 3 comments

Since Ubuntu 18.04 LTS switched to https://netplan.io/ 🙏

Specifically, what is the netplan equivalent of this:

auto br0
iface br0 inet dhcp
  bridge_ports DEVICENAME tap0

auto tap0
iface tap0 inet dhcp
  pre-up tunctl -u MYUSERNAME -t tap0

weactivist avatar Feb 12 '20 15:02 weactivist

this is the br0 stuff:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: no
  bridges:
    br0:
      dhcp4: yes
      interfaces:
        - enp3s0

tun/tap seems to be on the roadmap still:

https://trello.com/c/Rk4kHdGg/31-add-support-for-tun-tap-devices

cHolzberger avatar Feb 20 '20 23:02 cHolzberger

Once support for tun/taps are available, feel free to send a PR this way.

foxlet avatar Feb 22 '20 00:02 foxlet

FWIW, here's how my launch script takes care of the tap. I have my bridge created in netplan similar to the above and my host is Pop!_OS 21.04

curiousercreative avatar Nov 03 '21 12:11 curiousercreative