Page 1 of 1

Unable to get a valid etho address

Posted: 28. Aug 2013, 10:28
by Maarvin
- I have just created a virtual box using OEL 5.9. 64 bit on a Windows 7 64 bit desktop machine.
- I have the following (default) network configuration:
Adapter1: NAT
Adapter Type: Intel PRO/1000 MT Desktop (82540EM)
This adapter is enabled

- Yet, I am unable to get a correct etho addess:
eth0
inet addr:10.0.2.15

Does someone know how to configure properly eth0 address?

Thanks and Regards.

Re: Unable to get a valid etho address

Posted: 28. Aug 2013, 10:39
by mpack
That's a NAT address. Why do you not consider that "a proper eth0 address"? NAT VMs communicate via the host, so don't get their own independant addresses.

Re-Unable to get a valid etho address

Posted: 28. Aug 2013, 11:13
by Maarvin
A proper IP address would be (for me) for instance: 192.168.44.123.
Because there is a virtuyal machine/server installed in the virtual box, I should be able (externally to that box) to ping the IP address of the virtual machine/server and get an answer without error.
Furthermore, from another Linux machine, I should be able to access that virtual machine/server as: ssh user@192.168.11.123.
(this is for instance possible with vmware with the default NAT settings).

Any suggestions regarding NAT/network configuration to access that server from outside?

Re: Unable to get a valid etho address

Posted: 28. Aug 2013, 11:18
by mpack
As I said, 10.x.x.x is a NAT address. If you want the guest to have a true network connection then use bridged networking.

Re-Unable to get a valid etho address

Posted: 28. Aug 2013, 13:01
by Maarvin
Well,

If I have the network settings:
Adapter1: still the default.
Adapter 2:
Use: Network bridge adapter
Name: Realtek PCIe GBE Family Controler

I still have the same problem.

Can someone explain me how to configure the network settings?

Re: Unable to get a valid etho address

Posted: 28. Aug 2013, 13:05
by mpack
I'm not sure why you're now introducing a second adapter? I expected you to reconfigure the first one.

Re-Unable to get a valid etho address

Posted: 28. Aug 2013, 13:33
by Maarvin
I introduced a second adapter to keep the initial one (default) untouched.

Here is now my configuration:
Adapter1:
Coupled to: Network bridge adapter
Name: Realtek PCIe GBE Family Controler
Type: Intel PRO/1000 MT Desktop (832540EM)
All allowed

I still don't get an IP address.

Can someone explain me how to do it?

Re: Unable to get a valid etho address

Posted: 28. Aug 2013, 14:56
by mpack
With bridged mode your VM is the same as any other PC - it will be assigned an IP address by whichever DHCP server is responsible for handing out IP addresses to other PCs on the same network. At my home it's done by the router. In an office it might be done by a server PC.

Re-Unable to get a valid etho address

Posted: 9. Oct 2013, 14:10
by Maarvin
Thanks. I have found it. It works now.