fails to set up a bridged network interface
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| systemd (Ubuntu) |
High
|
Unassigned | |||
Bug Description
I have a simple bridge set up in /etc/network/
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_stp off
bridge_maxwait 5
reproduced now on a fresh vm.
| Timo Aaltonen (tjaalton) wrote : | #1 |
| tags: | added: systemd-boot |
| Timo Aaltonen (tjaalton) wrote : | #2 |
Ok after installing bridge-utils I get br0 _and_ eth0 devices show up on ifconfig, and br0 was started fine. But it didn't start on my workstation..
| Martin Pitt (pitti) wrote : | #3 |
OK, as we don't have a reproducer, I need some further logs. Right after booting, can you please give me the output of
systemctl --all|grep ifup
journalctl -u ifup-wait-
systemctl status <email address hidden>
Thanks!
| Changed in systemd (Ubuntu): | |
| status: | New → Incomplete |
| Changed in systemd (Ubuntu): | |
| importance: | Undecided → High |
| Martin Pitt (pitti) wrote : | #4 |
Can you please try with current vivid? There were some ifup@ fixes recently.
| Timo Aaltonen (tjaalton) wrote : | #5 |
I'll do that. Here's the debug output anyway, which I forgot to attach sooner..
| Philip Muškovac (yofel) wrote : | #6 |
I tried again on current vivid, br0 is still not auto-starting. Here's the logs
| zoolook (nbensa) wrote : | #7 |
I found this in dmesg:
[ 10.604132] systemd[1]: /usr appears to be on its own filesystem and is not already mounted. This is not a supported setup. Some things will probably break (sometimes even silently) in mysterious ways. Consult http://
I use separated /usr. What about you Timo and Philip?
| Timo Aaltonen (tjaalton) wrote : | #8 |
nope, I don't have separate /usr
| Martin Pitt (pitti) wrote : | #9 |
I tried this with Philip's config, but I still can't reproduce this, I'm afraid. I launch a VM with two network cards, like this:
qemu-
This is a standard cloud image, thus eth0 comes pre-configured:
$ cat /etc/network/
# The primary network interface
auto eth0
iface eth0 inet dhcp
I added Philip's config:
$ cat /etc/network/
#iface eth1 inet manual
auto br0
iface br0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eth1
bridge_stp off
bridge_maxwait 0
bridge_fd 0
NOTE: I tested this with and without the "iface eth1 inet manual" stanza, it works in both cases. Philip's config refers to "bridge_ports eth1" and there's no apparent ifupdown config for eth1. I don't know about Timo's config, as this is apparently not the complete interfaces file.
I also tried with a single network card and bridge, by removing /etc/network/
$ cat /etc/network/
auto br0
iface br0 inet dhcp
bridge_ports eth0
This now uses br0 as the "primary" connection, gets DHCP and connectivity, etc.
So I'm afraid I really need some precise information about:
* How many network cards do you have, and which is connected to what
* Your complete /etc/network/
Or perhaps you are able to reproduce this in a VM yourself?
| Timo Aaltonen (tjaalton) wrote : | #10 |
all my interfaces has besides br0 is:
<--
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
-->
it's an old installation..
| Timo Aaltonen (tjaalton) wrote : | #11 |
And I only have the builtin eth0 on the motherboard, nothing else. Nothing in interfaces.d either.
| zoolook (nbensa) wrote : | #12 |
Mine is an old install too.
In my case, I have 3 nics. Nothing in interfaces.d/
br0 is my lan
br1 wan (behind router)
br2 is not connected, and no, I don't want an ip address there unless is really necessary .
Here is my interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto eth2
iface eth2 inet manual
auto br0
iface br0 inet static
address 10.11.101.200/24
bridge_ports eth0
bridge_stp off
bridge_fd 3
bridge_hello 2
up route add -net 10.99.97.0/24 gw 10.11.101.254
up route add -net 10.8.0.0/24 gw 10.11.101.254
up route add -net 192.168.0.0/22 gw 10.11.101.254
up route add -net 192.168.4.0/24 gw 10.11.101.254
up route add -net 192.168.8.0/24 gw 10.11.101.254
up route add default gw 10.11.101.254 metric 200
dns-nameservers 10.11.101.254 10.0.0.1
dns-search lxc bensa.ar flacso.org.ar lan
auto br1
iface br1 inet dhcp
bridge_ports eth1
bridge_stp off
bridge_fd 3
bridge_hello 2
auto br2
iface br2 inet manual
bridge_ports eth2
bridge_stp off
bridge_fd 3
bridge_hello 2
BTW, at work I have another vivid host (only one interface) where the bridge goes up as it should:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.0.11
netmask 255.255.252.0
gateway 192.168.0.1
bridge_ports eth0
dns-nameservers 192.168.0.1 192.168.0.254
dns-search flacso.org.ar
For now, at home, I've made a workaround for this problem with this snipped in rc.local:
ip link show dev br0 || ifup br0
ip link show dev br1 || ifup br1
ip link show dev br2 || ifup br2
| Martin Pitt (pitti) wrote : | #13 |
Vincent Ladeuil reported this on IRC as well, and for him the problem was that /etc/init.
If you don't have such a symlink, please run
sudo update-r.cd networking remove
sudo update-r.cd networking defaults
and then check if the bridge comes up alright after that?
| Martin Pitt (pitti) wrote : | #14 |
See also bug 1439109 which is about the missing networking symlink.
| Martin Pitt (pitti) wrote : | #15 |
Sorry, I typoed. The correct commands are:
sudo update-rc.d networking remove
sudo update-rc.d networking defaults
| Vincent Ladeuil (vila) wrote : | #16 |
Re-creating the symlink with the command above was enough to fix the issue for me.
Thanks !
| Martin Pitt (pitti) wrote : | #17 |
Timo confirmed as well, so confirming as a duplicate of bug 1439109.
| zoolook (nbensa) wrote : | #18 |
Fixed for me.
zoolook@venkman:~$ ls /etc/rcS.d/ | grep net
zoolook@venkman:~$ sudo update-rc.d networking remove
zoolook@venkman:~$ sudo update-rc.d networking defaults
zoolook@venkman:~$ ls /etc/rcS.d/ | grep net
0 lrwxrwxrwx 1 root root 20 abr 8 08:23 S11networking -> ../init.
After reboot, my three bridges came up as they should.
Thanks!
I did not have to create the symlink, but once I separated my /etc/network/


hrm, though on the vm 'ifup br0' says 'no such device' when the same worked on my desktop/server.