Wednesday, March 16, 2011

How to Start Networking in Backtrack


This is always a huge topic and it seems simple to many of us but the fact of the matter is we have a lot of "new" people so we need to be clear about this sort of thing. (Note all commands should be run as root or with sudo)

1. To start networking in Backtrack 4 final issue the following command.

/etc/init.d/networking start

This will attempt to start all the interfaces in the /etc/network/interfaces file.

root@bt:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

If you don't have or don't want some of these interfaces then simply remove the from this file and they will not start.

If you need to set a static IP just set the variables in the /etc/network/interfaces file

auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

You will also need to make sure you set a nameserver in /etc/resolv.conf

root@bt:~# cat /etc/resolv.conf
nameserver 192.168.0.1

So for example if all you have is eth0 and wlan0 on your system and you want them both to get a adress via DHCP then remove every thing else for the file with the exception of the lo interface. Here is a example.

root@bt:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

Now if are lazy and want all this to start at boot you can simply issue this command as root

update-rc.d networking defaults

This will create all the proper sym-links

What about ssh?

So while I am on the subject I may as well go over ssh. In order to use ssh on backtrack 4 final you need to generate the keys first.

sshd-generate

after that you can start ssh like this:

/etc/init.d/ssh start

or you can add it to the boot sequence like this:

update-rc.d ssh defaults

Well thats enough to get up and running. I hope this was somewhat helpful to any one just getting started with backtrack.

2 comments:

Anonymous said...

HP Printer Support Phone Number +1-888-609-4777
Contact Us And Get On-Site HP Printer Support & HP Scanner Support. Our Experts We Will Solve Your Printer And Scanner Related Technical Issue In Few Minutes. For Instant Help Call At Our Toll Free Number. Visit Our Website- Http://www.Printhelp99.Club Our Toll Free No +1-888-609-4777
Get In Touch With HP Printer Support Phone Number:
Do you have printer at home? Is it troubling you too much? Are you trying to install by yourself? It is not possible for someone who is not professional. You can now take the help from experts. The brand name HP is popular. People look for printer, laptop and other electronic products. HP is one of such wonderful brands that is known for quality. But, you must know its operation. How is it possible? The hp printer support phone number is the best option. You can stay online and contact the expert for the same.
Quick Access With Hp Printer Support Phone Number
Are you willing to operate HP printer soon? You must be irresistible. You may need this for your official task. Parents also need it for their children’s project work. These days, in school and colleges, several projects are conducted. Some images needed to be print out. Also, you need some texts for print out. Without HP printer installation, it is not possible. Expert help is needed here. The hp printer support phone number is now available online. You can easily get the best help from the experts.
Software Download Hp Printer Support
Buying printer does not mean plug in and operate. You need to go ahead with software download. Driver installation is another vital task. If you are not operating the printer from before- hand, you may not know the process. Take expert help over here. The installers know how to install the drivers. You can also take help online. But, you need an HP account for that. Get in to your account with your user id and password. You can sign in to the account by registering your name and other details. There after you will get the option for The hp printer support phone number.
Visit Our Website- Http://www.Printhelp99.Club Our Toll Free No +1-888-609-4777

Best SEO Service said...

I'm excellent Google Review , Linkbuilding , Citations , Backlinks builder , Blog commenting, Social bookmaking, Article Submission,
Directory Submission, Forum Posting, etc expert . If you need a person to complete your order very fast then I'm here to do that. I will do it for the very low budget but with great quality.


Contact Me

Skype : shamimporadaha
Number and WhatsApp : +880 1922375185
Email : shamimporadaha@gmail.com
Website : Best SEO Service
Fiverr : Fiverr Profile

Post a Comment