[Lxc-users] lxc-execute can not access to network
Sam Wang
zhefwang at gmail.com
Fri Mar 16 02:58:20 UTC 2012
First,I add a bridge in my computer,and the bridge IP is 10.0.2.15
Then create a container using lxc-create -n nettest -f nettest.conf
the content of nettest.conf is
This is my configure file
lxc.utsname=netest
lxc.network.type=veth
lxc.network.flags=up
lxc.network.link=br0
lxc.network.hwaddr=4a:49:43:49:79:bd
lxc.network.ipv4=10.0.2.16/24
finally,I use lxc-execute to ping 10.0.2.2 which is the gateway of my
computer,using lxc-execute -n nettest ping 10.0.2.2.but it does not wok
where am I wrong?please help me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120316/6391cdd6/attachment.html>
More information about the lxc-users
mailing list