Hi, So in the spirit of sharing. I've resolved this now... but for reference, the simple fix is below.
On 16 February 2016 at 19:05, Stephen Nelson-Smith <[email protected]> wrote: > Hi, > > On 16 February 2016 at 18:31, Stephen Nelson-Smith > <[email protected]> wrote: > >> [root@example ~]# ip r l >> default via 10.1.1.1 dev eth0 >> 10.1.1.1 dev eth0 scope link > > ^^^^^^ this doesn't look right!! > > [root@example ~]# ip r l > default via 10.1.1.1 dev eth0 > 10.1.1.1 dev eth0 scope link > 169.254.0.0/16 dev eth0 scope link metric 1005 > [root@example ~]# ip r d 10.1.1.1 dev eth0 > [root@example ~]# ip r l > default via 10.1.1.1 dev eth0 > 169.254.0.0/16 dev eth0 scope link metric 1005 > [root@example ~]# ip r a 10.1.1.0/24 dev eth0 > [root@example ~]# > > And now everything works. > > So I just need to find out why that route was set. It is necessary to ensure that the subnet mask is set for lxc.network.ipv4: # grep ipv4 /var/lib/lxc/example/config lxc.network.ipv4 = 10.1.1.233/24 10.1.1.255 lxc.network.ipv4.gateway = 10.1.1.1 Hopefully this is useful to someone. S. _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
