Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a general networking issue in regards to my Backtrack 5 (x64) KDE VM in VirtualBox. The VM appears to be on a separate subnet, but for my purposes, I'd like to include the VM in the private class C network (192.168.x.x).

Do you know why the VM is using a Class B private address as opposed to a Class C? My understanding with NAT is that the system would use a single IPv4 address to connect the virtual machine to the network.

How can I change the VM config. so that I can access the 192.168.x.x subnet?

Technical details of VM/network config.

  • Using NAT adapter from Virtualbox to communicate w/LAN
  • Nmap scan of returns 5 active hosts on LAN

I'm trying to:

  • Use nmap to perform a scan of the 192.168.2.x subnet

The issue:

  • Can only scan LAN if querying, shouldn't I be querying Command used: nmap -sP

Windows 7 x64 (Host)

Windows IP Configuration
   Physical Address. . . . . . . . . : EC-55-F9-C8-67-38
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::f9cc:d2f8:a30d:15b0%12(Preferred)
   IPv4 Address. . . . . . . . . . . :
   Subnet Mask . . . . . . . . . . . :
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . :

Backtrack 5 VirtualBox VM (Guest)

root@bt:~# ifconfig eth0
eth0      Link encap:Ethernet HWaddr 08:00:27:40:ed:f7
          inet addr: Bcast: Mask:
          inet6 addr: fe80::a00:27ff:fe40:edf7/64 Scope:Link
share|improve this question

closed as off topic by jokerdino, Anwar Shah, fossfreedom Sep 4 '12 at 11:33

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Back track questions are off topic. – jokerdino Sep 4 '12 at 9:15
up vote 1 down vote accepted

Instead of NAT, use bridge adapter. If your Host (Win) is getting IP through DHCP then your vm (bt) will also get IP through the same source.

Hope it helps.

share|improve this answer
Upon switching NAT to bridge adapter, will I be able to use both the Host, and Guest OSs without network issues? The BT5 environment isn't permanent by any means, just something that I can open up on the fly, and work on simultaneously. – Tyler May 11 '12 at 2:19
You should be good using bridge for working on both Host and Guest simultaneously. – Muhammad Murtaza Ali May 11 '12 at 2:32
Thank you, your solution worked perfectly. Cheers. – Tyler May 11 '12 at 2:33
You're welcome mate! – Muhammad Murtaza Ali May 11 '12 at 2:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.