[lxc-users] Problem with network/routing
Denis Müller
d.mueller2 at rto.de
Wed Nov 19 13:46:41 UTC 2014
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?
More information about the lxc-users
mailing list