Sunday, September 17, 2006

First Wireless PCMCIA on ubuntu

My girlfriend Lizzy gave me as a gift a wireless card for my laptop. It is a DWL-G630 Dlink AirPlus G. At the beginning it didn't work. When I opened the System/Networking menu and activated the interface, it just hanged and the whole system hanged. I decided not to use the graphical interface and configured it manually with iwconfig.

First of all, set the network name. As my network name is ASD, then I typed:

iwconfig ra0 essid ASD

Then I set an IP for the connection

ifconfig ra0 192.168.0.7 netmask 255.255.255.0

Then I defined the standard network configuration:

echo "nameserver 192.168.0.1" > /etc/resolv.conf
route add default gw 192.168.0.1

since 192.168.0.1 is the address of my access point.

Then I verified the mac address with

ifconfig ra0

and set up access control in my access point to allow connection from the laptop.

Additionally, I set up wap encryption and it gave me a 64 bit key:

XXXX-XXXX-XXXX-XXXX

To configure it for my PCMCIA, I wrote

iwconfig ra0 key XXXX-XXXX-XXXX-XXXX

That was it. It worked perfectly .. . I am posting from it.

Hope it may be useful.

0 Comments:

Post a Comment

<< Home