Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 10.0.2.1-254 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 10.0.2.1-254, shouldn't I be querying 192.168.2.1-254? Command used: nmap -sP 10.0.2.1-254

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. . . . . . . . . . . : 192.168.2.4(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.2.1
   DHCP Server . . . . . . . . . . . : 192.168.2.1

Backtrack 5 VirtualBox VM (Guest)

root@bt:~# ifconfig eth0
eth0      Link encap:Ethernet HWaddr 08:00:27:40:ed:f7
          inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe40:edf7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          ...
share|improve this question
    
Back track questions are off topic. –  jokerdino Sep 4 '12 at 9:15
add comment

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.

1 Answer

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. –  Delete 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. –  Delete May 11 '12 at 2:33
    
You're welcome mate! –  Muhammad Murtaza Ali May 11 '12 at 2:35
add comment

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