[lxc-users] Problem with network/routing
durga
c.vijaya.durga at gmail.com
Wed Nov 19 17:44:38 UTC 2014
Hello,
I dont know much about container configuration, but 169.x.x.x is assigned
by DHCP when it cannot assign any other valid IP.
May be you want check on those lines.
Cheers!
Durga
On Thu, Nov 20, 2014 at 12:46 AM, Denis Müller <d.mueller2 at rto.de> wrote:
> Hi,
>
> i created two containers:
>
> centos1 (ip 10.0.3.2)
> centos2 (ip 10.0.3.3)
>
> on this machine, i have created a bridge "lxcbr0" (Adress:10.0.3.1
> Bcast:10.0.3.255 Mask:255.255.255.0) with dnsmasq deamon attached on this
> interface.
>
> /etc/dnsmasq.conf:
>
> listen-address=10.0.3.1
> bind-interfaces
> dhcp-range=lxcbr0,10.0.3.2,10.0.3.5,12h
> dhcp-option=3,10.0.3.1
>
> -------------------------------
>
> centos1 ping lxcbr0 -> works
> centos2 ping lxcbr0 -> works
> centos1 ping centos2 -> works
>
> ping 192.168.2.1 -> doesn't work, why?
>
> routes of the host machine:
>
> Ziel Router Genmask Flags Metric Ref Use
> Iface
> 10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0
> lxcbr0
> 192.168.0.0 0.0.0.0 255.255.252.0 U 0 0 0
> eth0
>
>
> and routes of centos1:
>
>
> Ziel Router Genmask Flags Metric Ref Use
> Iface
> 10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0
> eth0
> 0.0.0.0 10.0.3.1 0.0.0.0 UG 0 0 0
> eth0
>
>
> What do i do wrong?
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141120/fb4e1f71/attachment.html>
More information about the lxc-users
mailing list