[Lxc-users] lxc container messing with hosts networking

Serge Hallyn serge.hallyn at canonical.com
Sat May 14 13:39:56 UTC 2011


Quoting arkaitzj at gmail.com (arkaitzj at gmail.com):
> I've setup a web server and do requests each 5 seconds from my laptop.
> Then start tcpdump in the host machine and after a while I do lxc-start.
> 
> Inspecting later with wireshark, it looks like once the lxc guest finishes
> DHCP negotiation and setups the local IP address(10.0.2.17) any request to
> the host IP(10.0.2.15) is identified by the system as "Unicast to another
> host" and it sends the packet again trying to forward it, previous to the
> lxc guest dhcp it used to identify them as "Unicast to us" and answered
> them.
> 
> The hosts br0 doesn't change the MAC at all as I can see it the same through
> ifconfig br0 in the kvm console window, besides, I'm setting the hosts eth
> mac address to very low so that it does not trigger any bridge mac update.
> 
> Any hints?

Make sure stp is on on the bridge inside your kvm guest.

If that doesn't work, I'll just have to try and reproduce, but you'll
probably need someone more network-savvy than me to look into it.

I'll set up a test environment later this weekend.

-serge




More information about the lxc-users mailing list