How to Set a static IP address in Backtrack 4

First, start networking in BackTrack 4:

/etc/init.d/networking start

Next, set the static IP address:

ifconfig eth0 netmask up

Next, set the default gateway:

route add default gw

Finally, set DNS servers and search suffixes:

nano /etc/resolv.conf

Add the following lines for your environment:

domain internaldomain.local
search internaldomain.local

Now you should have network connectivity with your desired static IP address in BackTrack 4.

Leave a Reply

Your email address will not be published. Required fields are marked *