I have installed ubuntu server 12.04.
I have installed LXC container.
I started LXC container using
lxc-start -n conrainername
logged in using
lxc-console -n contaniername -t 1.
I prompted to login, I entered
ubuntu/ubuntuas username and password.
- I try to configure network for LXC.
This is what I have tried
ubuntu@containername:$ nano /etc/network/interface auto lxcbr0 iface eth0 inet static bridge_ports eth0 address xxx.xxx.xxx.xxx #static IP netmask 255.255.255.xxx gateway xxx.xxx.xxx.xxx #our gateway Ip broadcast xxx.xxx.xxx.xxx dns-nameservers xx.xx.xx.xx xx.xx.xx.xx.xx
then I restarted lxcbr0 as
sudo ifdown lxcbr0 sudo ifup lxcbr0
after this I can able to ping LXC container's IP but not system IP or any other IP.
ping xxx.xxx.xxx.xxx (LXC container IP) reachable 0% packet loss ping 188.8.131.52 Destination Host Unreachable 100% packet loss
what would be the problem?
Note: I have two static IPs to assign for both system and LXC container. Systems static IP is working fine but not LXC container.