17 hours ago
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.
I'm trying to:
The issue:
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 ...
30 hours ago
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.