I am running Ubuntu server 15.04 in a virtual machine. I am able to use the
brctl program to create and manipulate networking bridges. I've decided to persist the setup (through reboots) by updating my
/etc/network/interfaces as shown below:
auto m-br0 iface m-br0 inet static bridge_stp 0ff bridge_maxwait 0 bridge_fd 0 address 10.0.0.1 network 10.0.0.0 broadcast 10.0.0.255
However, when the VM comes back up, the bridge is not there. Checking
journalctl shows the following:
Jul 21 20:44:16 Net systemd: Starting LSB: Raise network interfaces.... Jul 21 20:44:16 Net networking: * Configuring network interfaces... Jul 21 20:44:16 Net networking: Cannot find device "m-br0" Jul 21 20:44:16 Net networking: Failed to bring up m-br0. Jul 21 20:44:16 Net networking: ...done. Jul 21 20:44:16 Net systemd: Started LSB: Raise network interfaces...
I was hoping that the bridge creation would be done by the underlying framework being leveraged by
brctl since, I was able to do all the bridge creation and configuration with it. But, I do not think that this facility (i.e.
systemd-udevd) is being invoked and can't figure out how to get it to create a device for my bridge. Should I create
.device unit file for my bridge and where in the start-up process should I put it? (I cannot find a sample
.device unit file on my system to give me an idea on how to go about)
Would someone have some pointers for me? Thanks in advance.