[lxc-users] LXD containers with dual nic

Giuseppe gcesab at gmail.com
Sun Jul 10 09:38:58 UTC 2016

Hi all,
I'm trying to configure a LXD container with two nics but the second one
cannot reach the external network. Here is my config:


auto ens160
iface ens160 inet manual

auto br0
iface br0 inet static
bridge-ifaces ens160
bridge-ports ens160
up ifconfig ens160 up

auto ens192
iface ens192 inet manual

auto br1
iface br1 inet static
bridge-ifaces ens192
bridge-ports ens192
bridge-stp on
up ifconfig ens192 up

Default profile is:

name: eth0
nictype: bridged
parent: br0
type: nic
name: eth1
nictype: bridged
parent: br1
type: nic

Both IP addresses are statically configured in the container, the first in
the subnet and the second in the subnet. The first nic
works well, I can ssh from external network. The second one can ping only
the LXD host address and viceversa. The LXD host address can ping everyone
on the network.

What's wrong in my config? Any suggestion?

More information about the lxc-users mailing list