Why is creating a bridge so hard?

Linux xx 5.8.0-55-generic #62-Ubuntu SMP Tue Jun 1 08:21:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

So I had a look at this existing post.

I failed with the same issue, my only interface is eno1.
But I don’t have create-net-bridge.pl in either of those locations.
I had a look at these instructions;
https://www.virtualmin.com/documentation/cloudmin/virtualization/kvm
But in Webmin’s Network Interfaces section there is no Add a new bridge button, only “Add a new interface”
So these posts must all be too old…?
What’s the current recommended way to get a bridge on an interface that isn’t called eth0?
-Pook

I too had the same issue earlier this month and had to put on hold my plans to use Cloudmin.

If a way forward could be found, I will give it another shot.

I’m not sure if /etc/network/interfaces is where I should be manually adding bridge info either, since it’s empty on this Ubuntu 20.10 install.

I’m pretty sure that Ubuntu 20.04 is not supported. I think only up to 18.04.

Worked it out.
So with my Ubuntu 20.10 install, I went from a /etc/netplan/00-installer-config.yaml that looked like

 network:
   ethernets:
         eno1:
             addresses: ['192.168.1.139/24']
             gateway4: 192.168.1.1
             nameservers:
                 addresses: [127.0.0.1, 1.1.1.1]
   version: 2

to one that looks like

network:
  version: 2
  renderer: networkd
  ethernets:
        eno1:
            dhcp4: false
            dhcp6: false
  bridges:
        br0:
            interfaces: [eno1]
            addresses: ['192.168.1.139/24']
            gateway4: 192.168.1.1
            mtu: 1500
            nameservers:
                addresses: [127.0.0.1, 1.1.1.1]
            parameters:
                stp: true
                forward-delay: 4

then;
netplan generate
netplan apply

and all is working

3 Likes

And after a dist upgrade to Ubuntu 21.04 everything is still good.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.