Friday, July 6, 2012

Internet Access In Backtrack Virtual Machine

I’ve found that some people are struggling hard to access internet in there backtrack virtual machine from their USB Modem, so today I am going to tell you how you can access internet in your virtual machine by your datacard.
Open Network Adapter Settings ( Run -> ncpa.cpl )
Right Click on your USB Modem Adapter and go to properties.


Now go to Sharing Tab and check the option ‘Allow other network users to connect through this computer’s Internet Connection’. Click OK if anything pops up. Now Select Home Networking connection as‘Local Area Network 3’. Click on Yes or OK if anything pops up.


Now Connect to internet with your USB modem and fire up your Backtrack in your VMware.
Put the network card of your backtrack in NAT mode.



Now open up the Terminal/Konsole and enter the commands.
Ifconfig eth0 up


Now enter the second command
ifconfig eth0 192.168.137.xxx netmask 255.255.255.0
xxx could be any number between 2 and 254.


Now enter the third command:

route add default gw 192.168.137.1



Now enter the fourth and last command:

echo “nameserver 192.168.137.1” > /etc/resolv.conf


Now open up your firefox you will be able to access internet in your virtual machine.

No comments:

Search This Blog