Page 1 of 1

Networking help needed

Posted: 24. Jul 2012, 21:10
by Altaf
Hi,

I have installed Virtual Box 4.18 on win7 hosts on my laptop, within VB I have installed RHEL upon which I want to load Oracle DB.The Linux Guest OS has loaded fine.

Now when I assigned a static IP 10.15.44.140 to the Host only adapter in Virtual Box I am unable to ping the windows Host IP which is 10.15.44.151.

From the windows OS the Guest IP i.e 10.15.44.140 is available , but if I ping the Windows IP i.e 10.15.44.151 from Linux it is not available.

Can you please guide me I am missing something in configuring the network within virtual box , what more needs to be done so that the guest OS can communicate with the Host OS both ways.

Re: Networking help needed

Posted: 24. Jul 2012, 21:20
by Perryg
Did you change the default address scheme for the host-only adapter? I would expect it to be 192.168.56.* unless you changed it.
Post the results of VBoxManage list hostonlyifs from a command window.

Note: Windows users need to be in the directory that has VBoxManage.exe for the command to work.

Re: Networking help needed

Posted: 24. Jul 2012, 21:31
by FrodoHobbits

Re: Networking help needed

Posted: 25. Jul 2012, 20:45
by Altaf
Perryg wrote:Did you change the default address scheme for the host-only adapter? I would expect it to be 192.168.56.* unless you changed it.
Post the results of VBoxManage list hostonlyifs from a command window.

Note: Windows users need to be in the directory that has VBoxManage.exe for the command to work.


C:\Program Files\Oracle\VirtualBox>VBoxManage list hostonlyifs
Name: VirtualBox Host-Only Ethernet Adapter
GUID: ced22245-cc9b-4bfd-844e-71c440b4d682
Dhcp: Enabled
IPAddress: 192.168.56.101
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:1880:0157:0295:fd15
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 08:00:27:00:ac:0f
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter

Re: Networking help needed

Posted: 25. Jul 2012, 20:52
by Perryg
Well there's your problem. You are assigning addresses outside the host-only adapter scheme. They must be in the same scheme as the host. 192.168.56.*
Also remember there will be no gateway in the host-only network so if you add a gateway to the guest it will not work either.

Re: Networking help needed

Posted: 25. Jul 2012, 20:58
by Altaf
Perryg wrote:Well there's your problem. You are assigning addresses outside the host-only adapter scheme. They must be in the same scheme as the host. 192.168.56.*
Also remember there will be no gateway in the host-only network so if you add a gateway to the guest it will not work either.

But the Ip Address presently is 192.168.56.101.

Do I need to physically assign the ip to the host only adapter from whithin windows network settings

Also what ip should be given to the host only adapter in linux OS.

Please guide me since I am new to virtulisation

Re: Networking help needed

Posted: 25. Jul 2012, 21:03
by Perryg
Now when I assigned a static IP 10.15.44.140 to the Host only adapter in Virtual Box I am unable to ping the windows Host IP which is 10.15.44.151.
From the windows OS the Guest IP i.e 10.15.44.140 is available , but if I ping the Windows IP i.e 10.15.44.151 from Linux it is not available.
The addresses you posted in your first post is what needs to be fixed. See the 10.15.44.* they need to be 192.168.56.*

Re: Networking help needed

Posted: 25. Jul 2012, 21:12
by Altaf
Perryg wrote:
Now when I assigned a static IP 10.15.44.140 to the Host only adapter in Virtual Box I am unable to ping the windows Host IP which is 10.15.44.151.
From the windows OS the Guest IP i.e 10.15.44.140 is available , but if I ping the Windows IP i.e 10.15.44.151 from Linux it is not available.
The addresses you posted in your first post is what needs to be fixed. See the 10.15.44.* they need to be 192.168.56.*
you mean to say that both the windows OS's physical NIC card's IP and the hostonly adapter's IP should be in the same schema.

but then I had assigned static IP 10.15.44.140 to the hostonly adapter which was in the same schema as my physical NIC card IP (10.15.44.151)

Re: Networking help needed

Posted: 25. Jul 2012, 21:21
by Perryg
you mean to say that both the windows OS's physical NIC card's IP and the hostonly adapter's IP should be in the same schema
No that is not what I am saying exactly. Your host will have two network adapters. One real and one virtual. The virtual Adapter is already set to 192.168.56.1
Or should be. You then use 192.168.56.10 or what ever for the guest if you want to set it static. Then the host to guest and vice versa will be in the 192.168.56.* scheme, and you can communicate.

Re: Networking help needed

Posted: 26. Jul 2012, 01:38
by BillG
Altaf wrote:
Perryg wrote:
Now when I assigned a static IP 10.15.44.140 to the Host only adapter in Virtual Box I am unable to ping the windows Host IP which is 10.15.44.151.
From the windows OS the Guest IP i.e 10.15.44.140 is available , but if I ping the Windows IP i.e 10.15.44.151 from Linux it is not available.
The addresses you posted in your first post is what needs to be fixed. See the 10.15.44.* they need to be 192.168.56.*
you mean to say that both the windows OS's physical NIC card's IP and the hostonly adapter's IP should be in the same schema.

but then I had assigned static IP 10.15.44.140 to the hostonly adapter which was in the same schema as my physical NIC card IP (10.15.44.151)

Your host has two network interfaces, so it has two IP addresses. The IP on the physical NIC will be in the same IP subnet as the other machines on that network (in your case 10.15.44.x) The host only adapter will have the address 192.168.56.1 (so that it will be in the same IP subnet as the vms using the host only network).

To reach the host from the guest (or vice versa) use the 192.168.56. IP addresses.

Re: Networking help needed

Posted: 29. Jul 2012, 20:22
by Altaf
Thanks for your inputs the issue is resolved ,

Sorry for the delay in reponding I got a bit busy with my office work.

Thanks once again.

Regards

Altaf