<div dir="ltr">On Sat, Apr 13, 2013 at 3:04 PM, jiten jha <span dir="ltr"><<a href="mailto:jitenjha11@googlemail.com" target="_blank">jitenjha11@googlemail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Friends,<div><br></div><div>I am try to configure openstack in ubuntu virtual box when I finished ubuntu 12.04.2 or 12.04.1 64 bit server . </div>
<div><br></div><div>After that go to virtual box - system preferences - network and enable 2 lan card vboxnet0 and vboxnet1 with ip address 10.112.1.3 and 10.112.18.254</div>
<div><br></div><div>after that vim /etc/network/interfaces</div><div><br></div><div># The Loopback network interface</div><div>auto lo</div><div>iface lo inet loopback</div><div><br></div>
<div># The Primary network interface</div><div>auto eth0</div><div>iface eth0 inet dhcp</div><div><br></div><div># Public interface</div><div><br></div><div>auto eth1</div><div>
iface eth1 inet static</div><div>address 10.112.1.3</div><div>netmask 255.255.0.0</div><div>network 10.112.0.0</div><div>broadcast 10.112.255.255</div><div>gateway 10.10.1.1</div><div><br>
</div><div># Private Interface</div><div><br></div><div>auto eth2</div><div>iface eth2 inet manual</div><div>up ifconfig eth2 up</div><div><br></div><div>I have search on google but same problem in 12.04.1 and 12.04.2 server . Please help me to solve the problem.</div>
<span class="HOEnZb"><font color="#888888">
<div><div><br></div>-- <br>Thanks & Regards<br>Jitendra Jha<br><a href="tel:%2B91-7498370550" value="+917498370550" target="_blank">+91-7498370550</a><br><br>
</div></font></span></div>
<br></blockquote><div><br></div><div style>I'm not exactly clear on what is going on, but a couple of things I noticed to point out:</div><div style><br></div><div style>1.  When you setup a new NAT network (which is what you are doing if you are going to the main system preferences and creating vboxnet devices), then the IPs for those devices become the gateway for your client machines.  The client machines will need to have a different IP within that subnet.  By default, when you create a vboxnet gateway, it will run a dhcp server for client machines.  If you don't want that and want your client machine to be static, then you need to turn off the dhcp server, or at least modify the address pool range so that the static IP you assign your client isn't in the address pool range.</div>
<div style><br></div><div style>2.  I'm not sure if you are giving us the /etc/network/interfaces of the host machine or the client, but my guess is that it is the client.  It won't be able to route since your IP is 10.112.1.3 and your netmask is 255.255.0.0, then it will only see 10.112.*.* addresses.  Your have your gateway at a 10.10.1.1 address, so you will have trouble there.</div>
<div style><br></div><div style><br></div><div style>My best advice is to not use NAT at all and set each client to use bridged networking.  It will make the network device of each client show up on your "normal" network (the same one your host is on) and you can give it an ip within that same range (or let your DHCP server take over, if you have one).</div>
<div style><br></div><div style>If bridging doesn't work for some reason, you might start with using dhcp on your client first (and making sure it is on in the vboxnet setup), seeing if that works out okay, then trying to change /etc/network/interfaces to static after you know that you have NAT setup correctly in general.</div>
<div style><br></div><div style>If you do a </div><div style><br></div><div style>netstat -rn</div><div style><br></div><div style>in the guest when it is working (say via dhcp) it should give you the default route to put on the gateway line.  An ifconfig should give you acceptable values for the rest, although like I said before, when you assign it static, be sure to either turn off the VirtualBox DHCP server, or assign outside of the address pool range.</div>
<div style><br></div><div style><br></div><div style>Hope this helps,</div><div style><br></div><div style>Preston</div><div style><br></div><div style><br></div></div></div></div>