Network configuration of br0, tap0 etc…

Forum Forums New users New Users and General Questions Network configuration of br0, tap0 etc…

  • This topic has 2 replies, 2 voices, and was last updated Dec 7-6:31 pm by Keeely.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46760
    Member
    Keeely

      I’d like to setup a couple of real NICs, but where eth1 and tap0 is part of a bridge br0. In the past I’d just run a series of tunctl, brctl or ip/ifconfig commands to do this, but rather than stick all that lot into /etc/rc.local I’m trying to figure out the proper way to do it with antiX/Debian.

      I’ve seen examples that put, e.g.:
      source /etc/network/interfaces.d/*

      into /etc/network/interfaces along with just the lo definition, but I was wondering if I create br0 file like this:

      auto br0
      iface br0 inet static
          address 172.17.0.2
          broadcast 172.17.255.255
          netmask 255.255.0.0
          bridge_ports eth1 tap0

      And also a tap0 like this:

      auto tap0
      iface tap0 inet static
          address 0.0.0.0

      Is it guaranteed that the tap one gets parsed and understood before the br0 one?

      #46779
      Member
      Xecure
        Helpful
        Up
        0
        ::

        I don’t know from what antiX version you are starting with (net, core, base or full), but I think you are going the right path. I do believe that the order is as you describe, and should work, but my experience with editing /etc/network/interfaces is limited to eth0 and wla0, and nothing special like port redirecting or bridges, so I am not of much help here.

        If using antiX full or base, make sure that you are using ifup/down, stop connman services (and remove from autostart at boot), reconfigure the etc/resolv.conf symlink, etc. if using /etc/network/interfaces. Using ceni (Curses /etc/network/interfaces). You could use the antix-wifi-swiitch to reconfigure all that in one go.

        Hope someone with more experience can provide some guidance.

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #46783
        Member
        Keeely
          Helpful
          Up
          0
          ::

          I think for now I will just drop the eth0 definition into that interfaces.d directory, and keep everything else where order matters in the main interfaces file. It’s a compromise as I wanted to have each definition in separate file, but it’ll do, thanks.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.