← Back to team overview

touch-packages team mailing list archive

[Bug 1430675] Re: fails to set up a bridged network interface

 

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-system-x86_64 -enable-kvm -m 2048 -snapshot -drive file=/srv/vm
/adt-vivid-amd64-cloud.img,if=virtio -net nic,model=virtio -net user
-net nic,vlan=1,macaddr=10:10:10:10:10:10

This is a standard cloud image, thus eth0 comes pre-configured:

$ cat /etc/network/interfaces.d/eth0.cfg 
# The primary network interface
auto eth0
iface eth0 inet dhcp

I added Philip's config:

$ cat /etc/network/interfaces.d/br.cfg 
#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/interfaces.d/eth0.cfg and having only

$ cat /etc/network/interfaces.d/br.cfg 
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/interfaces{,.d/*} configuration

Or perhaps you are able to reproduce this in a VM yourself?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1430675

Title:
  fails to set up a bridged network interface

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  I have a simple bridge set up in /etc/network/interfaces so that the
  virtual machines running on that machine can use it and be on the same
  subnet. But with systemd it's not started on boot. The bridge is
  configured as follows

  auto br0
  iface br0 inet dhcp
  	bridge_ports eth0
  	bridge_stp off
  	bridge_maxwait 5

  reproduced now on a fresh vm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1430675/+subscriptions


References