Unable to get a valid etho address

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Maarvin
Posts: 26
Joined: 28. Aug 2013, 09:45

Unable to get a valid etho address

Post 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.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to get a valid etho address

Post 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.
Maarvin
Posts: 26
Joined: 28. Aug 2013, 09:45

Re-Unable to get a valid etho address

Post 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?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to get a valid etho address

Post 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.
Maarvin
Posts: 26
Joined: 28. Aug 2013, 09:45

Re-Unable to get a valid etho address

Post 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?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to get a valid etho address

Post by mpack »

I'm not sure why you're now introducing a second adapter? I expected you to reconfigure the first one.
Maarvin
Posts: 26
Joined: 28. Aug 2013, 09:45

Re-Unable to get a valid etho address

Post 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?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to get a valid etho address

Post 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.
Maarvin
Posts: 26
Joined: 28. Aug 2013, 09:45

Re-Unable to get a valid etho address

Post by Maarvin »

Thanks. I have found it. It works now.
Post Reply