[Lxc-users] Routing from lxc guest to a directly connected network to host.

Luis M. Ibarra michael.ibarra at gmail.com
Thu Jul 25 14:06:58 UTC 2013


Hi everybody,

I run over this issue. I have an lxc host with this routing table:

#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.5.1     0.0.0.0         UG    0      0        0 br0

and
#cat /proc/sys/net/ipv4/ip_forward
1


and an lxc guest with:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags    Metric   Ref
Use Iface
192.168.5.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       192.168.5.154     0.0.0.0                UG          0
0        0      eth0

with this configuration packets can't go anywhere. If I change the default
gw of the lxc guest to 192.158.5.1 at least I get all the network
192.158.5.0.

My question, why am I missing to get this working?




-- 
Luis M. Ibarra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130725/8fc8a2c5/attachment.html>


More information about the lxc-users mailing list