Bridge network configuration

Hello,

I configured a bridge interface (name: br0) for lxd on a static IP address.
I configure lxd to use this bridge.

My lxd host is a dhcp and dns server with the IP address 192.168.1.35. My router has the IP address 192.168.1.1.

My container receives an address with the dhcp server (192.168.1.100) but it can not communicate with the rest of my network.
When I try to ping my host lxd 192.168.1.35 everything works fine but if I well my router nothing happens.

I have enabled ip-forwarding.

Network configuration:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto br0
iface br0 inet static
        address 192.168.1.35
        netmask 255.255.255.0
        gateway 192.168.1.1
        nameserver 192.168.1.35
        bridge_ports eno1

auto eno1
iface eno1 inet manual

route on lxd host:

default via 192.168.1.1 dev br0 onlink
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.35

route on container:

default via 192.168.1.1 dev eth0
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.100

Is this inside a virtual machine by any chance?

VMWare at least is known to do MAC filtering which would perfectly match your symptoms.

No it’s a physical machine, there is no virtualization layer over it.
My operating system is Ubuntu 16.04.3 LTS

And your physical switch doesn’t do MAC filtering either?

It could also be that you have some firewall rules from some other tool interfering with LXD.
Can you paste the output of iptables -L -n -v?

If that doesn’t show anything obvious, then the next step will be to use tcpdump.