Enter your email address:


Delivered by FeedBurner
Feb
16th

Install network card, assign IP and change MAC in linux

Author: admin | Files under Tutorials

INSTALL NETWORK CARD and ASSIGN IP ADDRESS IN LINUX:

After Back Track 3 installation i had to install my network (NIC) drivers because no drivers were available in linux system. I have used Generic Marvell Yukon 88E8071 based ethernet controller. So I had to download Linux drivers for Linux kerner 2.4.20 or higher for my Generic Marvell Yukon 88E8071 network card. How to install drivers try looking for readme file. Just extract zip file to Root. There you will have a folder named DriverInstall. In shell execute this command to start the sk98lin driver build process:

cd DriverInstall
./install.sh

And next step is to choose driver installation mode. Well, we have USB which save changes after each reboot. In shell type:

ifconfig -a

There you should see your Network (NIC) card installed. Drivers are ready so it is time to configure your network IPs. To set up IPs type this command in shell:

ifconfig eth0 192.168.0.123 netmask 255.255.255.0 up

We assigned IP to our eth0 network card. To set up gateway use this command:

route add default gateway 192.168.0.1

Ok now you can communicate with the machines on the internet but if you open your web browser at this point and try to navigate to any web site you will get an error that says “Address not found”. You need to specify a DNS server(s). DNS server is specified in the file:

/etc/resolv.conf

You will get a content of this file. I think this should be empty but it is not important now. To add DNS sever execute this command:

sudo echo “nameserver 172.16.1.20″ > /etc/resolv.conf

This will add DNS server to the file. Do not forget to use your IP not IP in example. If you want to add another DNS server execute this command:

sudo echo “nameserver 172.16.1.20″ >> /etc/resolv.conf

You can see that there are two >>.

The last thing I had to do to use my connection was to change my MAC address.

CHANGE MAC ADDRESS IN LINUX:

Just execute the commands. After each line you need to hit <ENTER>

ifconfig eth0 down
ifconfig eth0 hw ether 00:00:00:00:00:00
ifconfig eth0 up
ifconfig eth0 |grep HWaddr

Instead of the numbers in example use your own mac address. You might need to change MAC to use internet connection after installing BT3 because MAC address can be different than the one stored in the database of the ISP.

Related posts:

  1. Keep network changes in BackTrack after reboot
  2. Informal network for managers only
  3. Back Track 4 on USB with persistent changes – bootable BT4 USB stick
  4. Make bootable USB to save changes – Back Track 3 on USB with persistent changes
en_quibids_ipad_300x250_18

Post a Comment