Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: GraysonPeddie on June 16, 2015, 03:04:39 am

Title: [WORKAROUND] Zentyal 4.1 (14.04.2): br0 for LXC containers with Single NIC
Post by: GraysonPeddie on June 16, 2015, 03:04:39 am
I'm running Zentyal 4.1 Development Edition in a home server with a custom setup. For a home server with a single NIC, I want to be able to setup br0 as my bridge interface for eth0.

According to the Zentyal 4.0 Advanced Network Configuration manual (https://wiki.zentyal.org/wiki/En/4.0/Advanced_Network_Configuration), it looks like you need to have more than one physical NICs for bridging to work.

But have a look at my /etc/network/interfaces configuration that I have used in the past before switching to Zentyal:

Code: [Select]
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto br0
iface br0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 127.0.0.1
dns-search graysonpeddie.lan
        bridge_ports eth0

iface eth0 inet manual
        up ifconfig $IFACE 0.0.0.0 up
        up ip link set $IFACE promisc on
        down ip link set $IFACE promisc off
        down ifconfig $IFACE down

So then, how can I get the setup the way I want using Zentyal? Here is an example of how I setup networking for an LXC container:

Code: [Select]
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0

Update: Okay. I am surprised to see that bridging is removed in Zentyal 4.1, so I'm planning to downgrade to 4.0 and mark my thread as solved.

Update: It's been three days since I got bridging working in Zentyal 4.0, so I will simply mark my thread as [WORKAROUND]. 4.1 does not have anything new for home users anyway.
Title: Re: [WORKAROUND] Zentyal 4.1 (14.04.2): br0 for LXC containers with Single NIC
Post by: GraysonPeddie on June 25, 2015, 12:07:10 am