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

Tony Su tonysu at su-networking.com
Thu Jul 25 15:19:14 UTC 2013


Hello Luis,
Your host routing table specifically identifies the DGW as 192.168.5.1 (the
last line)

why would you think you could "go anywhere" without a  DGW?

Tony
On Jul 25, 2013 7:08 AM, "Luis M. Ibarra" <michael.ibarra at gmail.com> wrote:

> 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
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130725/3c6fe063/attachment.html>


More information about the lxc-users mailing list