ISP <---> wrt54g router <---> Dell Inspiron E1505 laptop
where ISP is the Internet Service Provider such as roadrunner, comcast etc., (and in my case "clarity connect").
The main steps involved are
- configure the router
- Install the necessary software packages on the Debian machine
- encrypt the password (if necessary)
- add a network stanza in /etc/network/interfaces
- restart the network
The information about the wireless card can be found by using
sudo lspci --vvIn this case, we have
0b:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)The router is configured as shown below.
The SSID stands for "Service Set Identifier". It is basically the name of the wireless network. In this example, it is set to "Raju_and_Satish". Change the SSID according to your network.
A list of available networks and their SSIDs can be obtained by using
As can be seen from snapshot 2, the router is configured to use TKIP as its WPA encryption algorithm.
The "WPA Shared Key" (snapshot 2) is the place holder for setting a password to the network. Since the password is usually a bunch of ASCII characters, it is also referred as a "passphrase". In this example, the password for the network is "strongpassword". Change it according to your network.
Install the necessary software by using the apt-get command. I have installed
The next step is to generate an encrypted string known as the pre-shared key (PSK) from the ASCII password and the SSID. This can be achieved using the wpa_passphrase command.
$wpa_passphrase Raju_and_Satish strongpassword
After this, add the following stanza to the /etc/network/interfaces.
# wireless setup
iface eth2 inet dhcp
Replace the wpa-ssid, wpa-psk with the values corresponding to your network configuration.
Then restart the network connections by doing
$sudo /etc/init.d/networking restart
Now the network should be up and running. Its status can be tested by using host, ping commands.
www.google.com CNAME www.l.google.com
www.l.google.com A 188.8.131.52
www.l.google.com A 184.108.40.206
$ping -c3 www.google.com
PING www.l.google.com (220.127.116.11) 56(84) bytes of data.
64 bytes from 18.104.22.168: icmp_seq=1 ttl=242 time=40.7 ms
64 bytes from 22.214.171.124: icmp_seq=2 ttl=242 time=40.9 ms
64 bytes from 126.96.36.199: icmp_seq=3 ttl=242 time=39.6 ms
--- www.l.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 10124ms
rtt min/avg/max/mdev = 39.616/40.437/40.985/0.635 ms