Page 1 of 1

IP Address

Posted: 9. Sep 2012, 09:31
by ezcocos
Hi there,

I have installed the Oracle virtualbox on my win 7 laptop.
ifconfig show an ip address 127.0.0.1 in the virtualbox. I have a few questions where the first is the most important.

1) How can I change this ip address to a "normal" one 192.168.x.x? I would think in a fixed way.

2) I have read it is possible to assign automatic ip address through DHCP. How can I do it?

3) In these threads, they are talking "eth0", "eth1", "tap0"... What are these? How to create them? There are no such names in my network adapter.

4) By the way, the reason I want to change this ip address (127.0.0.1) is that by using sqlplus from the host I get this message "ORA-12541: TNS: No listener". I have read other thread which seems to linked this error message to this "non-normal" address of 127.0.0.1. Any other thoughts to solve this problem will be very much appreciated. I can ping 127.0.0.1 from the host and ping the host 192.168.1.1 from the guest virtualbox.

Many thanks in advance,

Re: IP Address

Posted: 10. Sep 2012, 03:38
by BillG
VirtualBox is the name of the application program. The virtual machines which you create are called virtual machines or guests, not "virtualboxes".

127.0.0.1 is a loopback address. It means "this machine" and cannot be accessed from any other machine (real or virtual). If you ping 127.0.0.1 from the host you will get a reply because it will reply itself! The reply will not come from the guest.

If you want the vm to get a 192.168.1.x address from DHCP you will need to set the networking in the vm to bridged. It will then behave as if it was another machine on your local LAN.