[lxc-users] Problem with bridge mode and static ip

Andrea andreamssbs at gmail.com
Wed Aug 10 13:37:44 UTC 2016


Hello everyone,

my situation is a VMware esxi 6 server with a new fresh installation of the
last Ubuntu 16.04.1 iso distribution.
I updated everything and I followed these articles to use my container with
an local network ip:
https://bayton.org/2016/05/lxd-zfs-and-bridged-networking-on-ubuntu-16-04-lts/
https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-bridge/

my lan is:

Router (dhcp server): ip 10.9.4.54 / 26

Ubuntu 16.04: ip 10.9.4.1
Container1 (ubuntu 14.04): ip 10.9.4.11


the issue is that from xential the ping to the container responds also with
ssh.

from the container the ping to xential works but to the router or any other
in the lan or internet doesn't work.

I can also communicate with ssh between both.

here some configuration:


*this is the interface file of Xential host :*
auto br0
iface br0 inet static
address 10.9.4.1
netmask 255.255.255.192
network 10.9.4.0
broadcast 10.9.4.63
gateway 10.9.4.54
dns-nameservers 8.8.8.8 8.8.4.4
bridge_ports ens33

iface ens33 inet manual



*ifconfig:*

br0       Link encap:Ethernet  HWaddr 00:0c:29:70:43:90
          inet addr:10.9.4.1  Bcast:10.9.4.63  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4957 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2722 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:915910 (915.9 KB)  TX bytes:370097 (370.0 KB)

ens33     Link encap:Ethernet  HWaddr 00:0c:29:70:43:90
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4753 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:909736 (909.7 KB)  TX bytes:438083 (438.0 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:11840 (11.8 KB)  TX bytes:11840 (11.8 KB)

vethOP7FMJ Link encap:Ethernet  HWaddr fe:9f:5a:06:f9:c3
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:213 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18845 (18.8 KB)  TX bytes:15729 (15.7 KB)



*lxc profile show default*

name: default
config: {}
description: Default LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: br0
    type: nic



The container:

*/etc/network/interface*

# source /etc/network/interfaces.d/*.cfg

auto eth0
iface eth0 inet static
address 10.9.4.11
network 10.9.4.0
broadcast 10.9.4.63
gateway 10.9.4.54
dns-nameservers 8.8.8.8



What else can I do ???

thanks
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160810/6a58d1cf/attachment.html>


More information about the lxc-users mailing list