How to configure VB "network cards"

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Padre
Posts: 6
Joined: 23. Feb 2016, 02:34

How to configure VB "network cards"

Post by Padre »

I have a virtual Debian Jessie running as a VM but the NIC doesn't setup right.
My local net uses 192.168.254.0 but the VM NIC has an IP of 10.xxxx and
of course the wrong bcast and netmask IPs. I can get from the VM to the other
machines on my net but I can't go the other way.

I use a DHCP server in my modem/router for my DSL line.
Is there anyway I can get my virtual machines to use that
DHCP server and play nicely with the other machines on my network?

Many TIA!
Dennis
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: How to configure VB "network cards"

Post by mpack »

Use bridged instead of NAT. But think about why you are doing it, since your failure to understand the reason why NAT uses a 10.x addressing range is not necessarily a good reason to do something else. In particular, unless your VM is implementing a server then you probably don't need the VM to be visible on the host network. NAT is simplest to use, and fine for browser access from the VM.
Padre
Posts: 6
Joined: 23. Feb 2016, 02:34

Re: How to configure VB "network cards"

Post by Padre »

Thanks! Quick and easy, make the change and it "just works" as they say.

No, I have no idea why they would use 10.x addresses for NAT. As far as I know there is
nothing magic about using 10.x as opposed to the 172.x or 192.x ranges.

I need to be able to access any of my systems from anywhere on the LAN for
installing and testing software, changing configuration, and accessing
dbs, web pages, blogs, etc. whatever is on them. If I can't do that I would
need to do a bit of traveling.
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: How to configure VB "network cards"

Post by mpack »

Padre wrote:No, I have no idea why they would use 10.x addresses for NAT. As far as I know there is
nothing magic about using 10.x as opposed to the 172.x or 192.x ranges.
Look up IPv4 address ranges, Private Addressing.
Post Reply