LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB Wireless Adapter (https://www.linuxquestions.org/questions/linux-newbie-8/usb-wireless-adapter-125391/)

isone 12-12-2003 09:48 PM

USB Wireless Adapter
 
Hi,
I am a complete Linux newbie and need help installing my wireless network. I'm using Redhat 9 and have a D-link DWL 120 usb card. I know that there is a way to install this card, but cannot understand the instructions that I have read. Getting Linux up and running on my Athlon 2000+ box was an achievement in itself, I need help now to finish the job. Please be gentle, I have no experience of programming! Hope somebody can give me a "How To : Step by Step" answer.

Guru3 12-13-2003 02:06 AM

Lucky for you, I recently installed a usb card which uses the same driver, so I know what to do :).

0) Unplug it.
1) Go to: http://at76c503a.berlios.de/ and get the driver.
2) Extract it and run make, then make install.
3) Reboot.
4) Plug it in. If everything is sucessful, it will be registered as wlan0
5) Run iwconfig wlan0 essid GOESHERE channel # mode managed, and fill in acording to your wireless lan settings.
6) Run ifconfig wlan0 192.168.0.254, or what ever the ip address should be.
7) If you are running a dhcp server, run dhclient wlan0 (or dhcpcd).

And you should be ready... If you want directions on how to make it run at boot time, let us know.

isone 12-17-2003 10:56 AM

Thank you Guru3 for ur help,
Your suggestion has solved the driver installation problem. It has registered as wlan0. but i still have problem for dhclient. There is a dhcp server in my network but it doesnt assign an ip to my pc after i type 'dhclient wlan0'. The message that i have got since after the installation is here :

[root@localhost root]# iwconfig wlan0 mode ad-hoc essid my_wlan
[root@localhost root]#
[root@localhost root]# ifconfig wlan0 10.10.10.10
[root@localhost root]# ping 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.309 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.036 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.036 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.036 ms
64 bytes from 10.10.10.10: icmp_seq=5 ttl=64 time=0.039 ms



--- 10.10.10.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3996ms
rtt min/avg/max/mdev = 0.036/0.091/0.309/0.109 ms
[root@localhost root]#


[root@localhost root]# dhclient wlan0
Internet Software Consortium DHCP Client V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP



/sbin/dhclient-script: configuration for wlan0 not found.
Listening on LPF/wlan0/00:05:5d:93:11:b0
Sending on LPF/wlan0/00:05:5d:93:11:b0
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
/sbin/dhclient-script: configuration for wlan0 not found.
[root@localhost root]#

Now i'm windows and my connection status is :
IP address : 172.16.1.19
Subnet Mask : 255.255.0.0
Default Gateway : 172.16.1.1

what should i do to make it work in linux?

Guru3 12-17-2003 11:41 AM

Find another dhcp program called dhcpcd. You can get it here: ftp://rpmfind.net/linux/redhat/7.3/e...pl1-7.i386.rpm. Install that rpm with rpm -ivh dhcpcd-1.3.22pl1-7.i386.rpm and then run dhcpcd wlan0 and you should be set to go.


All times are GMT -5. The time now is 11:14 AM.