G
G
grabbee2020-01-08 15:44:11
Virtualization
grabbee, 2020-01-08 15:44:11

How to set up a bridge in netplan Ubuntu 18.04?

Previously in 16.04 everything worked with this bridge setup

auto lo
iface lo inet loopback

# The primary network interface
auto enp1s0f0
iface enp1s0f0 inet dhcp

auto br0
iface br0 inet dhcp
        bridge_ports enp1s0f0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

Now Netplan is there and I lose connection to the server after changing the default settings
.
network:
  version: 2
  renderer: networkd
  ethernets:
     eno1:
        dhcp4: true

I do
network:
  version: 2
  renderer: networkd
  ethernets:
     eno1:
        dhcp4: false
  bridges:
    br0:
        interfaces: [eno1]
        dhcp4: true

That's it, don't go to the server.
Previously, it was configured according to the simplest config without specifying any addresses or subnets. He doesn't want to be here. Servers in one DC and similar settings.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
fara_ib, 2020-01-08
@fara_ib

Recently did this: everything worked bonds vlans
wifis were not
used .

S
Sanes, 2020-01-08
@Sanes

Always rolled an example from the office. documentation.

R
Ruslan Fedoseev, 2020-01-08
@martin74ua

get an address on a bridge member? nonsense really.
The address should receive the bridge, not the network ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question