<div>First,I add a bridge in my computer,and the bridge IP is 10.0.2.15</div><div><br></div><div>Then create a container using lxc-create -n nettest -f nettest.conf</div><div>the content of nettest.conf is </div>
<div><div>This is my configure file</div><div><div>lxc.utsname=netest</div><div>lxc.network.type=veth</div><div>lxc.network.flags=up</div><div>lxc.network.link=br0</div><div>lxc.network.hwaddr=4a:49:43:49:79:bd</div>
<div>lxc.network.ipv4=<a href="http://10.0.2.16/24" style="color:rgb(17,85,204)" target="_blank">10.0.2.16/24</a></div></div></div><div><br></div><div>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</div>
<div>where am I wrong?please help me</div><div><br></div>