Results 1 to 2 of 2

Thread: Netplan equivalent of bridged network

  1. #1
    Join Date
    Feb 2020
    Beans
    1

    Netplan equivalent of bridged network

    Sorry beforehand but I can't figure out what the netplan equivalent of this is. Any help would be appreciated.

    HTML Code:
    auto br0iface br0 inet dhcp
      bridge_ports DEVICENAME tap0
    
    auto tap0
    iface tap0 inet dhcp
       pre-up tunctl -u MYUSERNAME -t tap0
    Last edited by weactivist; February 13th, 2020 at 09:19 AM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Netplan equivalent of bridged network

    tap interfaces are really slow. Perhaps you'd rather use a tun or bridge interface?
    Sorry, I can't directly help with the 18.04 aspect of the question. netplan.io is the official reference for that subsystem.
    https://netplan.io/examples has examples.

    https://ubuntu.com/blog/ubuntu-bionic-netplan has a developer view.

    pre-up stuff has been moved into the systemd target-wants and depends system. It isn't available in the network subsystem anymore. Every startup service has dependencies specified in their config file. The goal of this is so Y won't be started until X is started and running. A quick analysis of those dependencies by systemd allows parallel startup for the required reverse-tree of services to get to the point that "networking" is up, before "multiuser" is up. Fairly simple text files are used.

    Take a look at /lib/systemd/system/networking.service file. See the After, Before, WantedBy entries? Any reference to a filename with .target in the name is a config file. Follow a few to see how they fit together.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •