[lxc-users] How to connect to container with Host Bridge from outside the host?

Fajar A. Nugraha list at fajar.net
Thu Jul 23 02:22:05 UTC 2015


On Wed, Jul 22, 2015 at 6:51 PM, Jian-Ming Zheng <jmzheng at gmail.com> wrote:
> However, other hosts on the same network subnet (for example,
> 172.21.10.3) cannot connect to the container p1 via 172.21.0.2 and
> vice versa. For example, when using "ssh user at 172.21.10.3" on p1, it
> shows that "No route to host." Moreover, p1 cannot connect to others
> (for example, google.com).
>
> The IP routing table of the container p1 is shown as follows:
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 0.0.0.0         172.21.10.254   0.0.0.0         UG    100    0        0 eth0
> 172.21.10.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
>
> Did I miss any things?
>

Can p1 see 172.21.10.254 (e.g. using ping)?
Does your network admin allow multiple MACs on the same switch port?

-- 
Fajar


More information about the lxc-users mailing list