Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What do you mean what happens? All I know is when I click on the browser and I try to go to a website, it wont let me. Btw, how do I set up that script to point at my dns server? The script was 0kb and I could not edit it. DNS is the Primary Domain Name System, right?
Last edited by Rnastyracer; 02-08-2004 at 08:19 PM.
OK lets check a few things: do a "less /etc/resolv.conf" and post that back. Also , what script were you talking about that is 0 kb?
Did you do the various steps of the README?
C) Run 'modprobe prism2_usb prism2_doreset=1' to load the driver into memory.
D) Run 'wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable' to initialize the
driver+MAC functions.
E) Run 'wlanctl-ng wlan0 lnxreq_autojoin ssid=<your ssid> authtype=opensystem'
to enable the MAC in Infrastructure Station mode.
F) Run 'ifconfig wlan0 <your IP address>'
Which router are you using? Do you get your IP by DHCP? Do you have a firewall running?
OK, I assume you have Internet-->router---wireless---> computer.
As root, edit /etc/resolv.conf
"vi /etc/resolv.conf"
and add the line "nameserver IP.of .the. router" (usually 192.168.1.1), then save and exit. Then do, as root, "route add default gw IP.of.the.router".
The Bcast is "broadcast IP" which allows packets to go to a range of IP addresses.
okay, I am making progress here. I can ping any ip, but not a website. I can connect to my router and change settings and stuff. I cant load a website. Why in the world can I do all these things and not be able to load a website?
You can't because there is no nameserver being found. A nameserver is what translates English web names (like www.google.com) into a numeric IP address. So you can ping a numeric address but when you try to go to a web site, the nameserver is not found and so nothing happens. There is a file I referred to earlier /etc/resolv.conf that points to the nameserver. In your router setup there is information that says DNS and then one or more IP addresses (for my Linksys it is under the "status" tab). Edit /etc/resolv.conf so that it says on the first line
"search your_ISP" (in my case this is gnscrp01.va.comcast.net which is the official name of Comcast, you may be able to get this from your ISP if you don't already know it)
then on the following lines you have
nameserver IP.from.the router (from above)
nameserver IP.from.the.router
nameserver IP.of.the.router (in my case 192.168.1.1)
save the file and try again to ping a named site (ping -c 4 www.google.com) or open your browser.
I also switched to Linux but I have a problem with the ZyDAS zd1201 802.11b USB Driver for my wireless network USB stick. I untarred the driver and this is what I did next (what I typed is in bold, output isn't bold):
Code:
[root@localhost Zydas]# make config
-------------- Linux WLAN Configuration Script -------------
The default responses are correct for most users.
Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: n
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: n
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]: n
Build Prism2.5 USB (_usb) driver? (y/n) [n]: y
Build ZD1201 driver on top of Prism2.5 USB? (y/n) [n]: y
Linux source directory [/usr/src/linux]: /usr/src/linux-2.6.9
The kernel source tree is version 2.6.9.
Kernel 2.5/2.6 support is highly experimental.
WARNING: the current running kernel is actually version 2.6.9-1.667.
The current kernel build date is Tue Nov 2 14:41:25 2004.
Alternate target install root directory on host []:
Module install directory [/lib/modules/2.6.9]:
It looks like you have a System V init file setup.
Prefix for build host compiler? (rarely needed) []:
Build for debugging (see doc/config.debug) (y/n) [n]:
Configuration successful.
[root@localhost Zydas]# make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/root/Desktop/Zydas/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make -C $d ; done
make[2]: Entering directory `/root/Desktop/Zydas/src/mkmeta'
gcc -E -M -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetastruct.c > .depend
mkdir -p obj
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DZD -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ ../shared/p80211types.c -o obj/p80211types.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DZD -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ ../shared/p80211metamsg.c -o obj/p80211metamsg.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DZD -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ ../shared/p80211metamib.c -o obj/p80211metamib.o
../shared/p80211metamib.c:2693: let op: overtollige elementen in beginwaarde van struct
../shared/p80211metamib.c:2693: let op: (dicht bij initialisatie van `p80211meta_mib_p2Table[5]')
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DZD -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ ../shared/p80211meta.c -o obj/p80211meta.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DZD -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ mkmetadef.c -o obj/mkmetadef.o
gcc -o mkmetadef obj/p80211types.o obj/p80211metamsg.o obj/p80211metamib.o obj/p80211meta.o obj/mkmetadef.o
cat mkmetadefhead.txt > ../include/wlan/p80211metadef.h
./mkmetadef >> ../include/wlan/p80211metadef.h
echo "#endif" >> ../include/wlan/p80211metadef.h
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DZD -I../include -I/usr/src/linux-2.6.9/include -D__LINUX_WLAN__ mkmetastruct.c -o obj/mkmetastruct.ogcc -o mkmetastruct obj/p80211types.o obj/p80211metamsg.o obj/p80211metamib.o obj/p80211meta.o obj/mkmetastruct.o
cat mkmetastructhead.txt > ../include/wlan/p80211metastruct.h
./mkmetastruct >> ../include/wlan/p80211metastruct.h
echo "#endif" >> ../include/wlan/p80211metastruct.h
make[2]: Leaving directory `/root/Desktop/Zydas/src/mkmeta'
make[2]: Entering directory `/root/Desktop/Zydas/src/p80211'
if test ! -d /root/Desktop/Zydas/src/p80211/../.tmp_versions; then \
cp -rf /usr/src/linux-2.6.9/.tmp_versions /root/Desktop/Zydas/src/p80211/../ ; \
fi
make -C /usr/src/linux-2.6.9 SUBDIRS=/root/Desktop/Zydas/src/p80211 WLAN_SRC=/root/Desktop/Zydas/src/p80211/ \
MODVERDIR=/root/Desktop/Zydas/src/p80211/../.tmp_versions modules
make[3]: Entering directory `/usr/src/linux-2.6.9'
CC [M] /root/Desktop/Zydas/src/p80211/p80211mod.o
CC [M] /root/Desktop/Zydas/src/p80211/p80211conv.o
/root/Desktop/Zydas/src/p80211/p80211conv.c: In function `skb_ether_to_p80211':
/root/Desktop/Zydas/src/p80211/p80211conv.c:142: let op: unused variable `fc'
/root/Desktop/Zydas/src/p80211/p80211conv.c:147: let op: unused variable `foo'
/root/Desktop/Zydas/src/p80211/p80211conv.c: In function `skb_p80211_to_ether':
/root/Desktop/Zydas/src/p80211/p80211conv.c:520: error: union has no member named `ethernet'
make[4]: *** [/root/Desktop/Zydas/src/p80211/p80211conv.o] Fout 1
make[3]: *** [_module_/root/Desktop/Zydas/src/p80211] Fout 2
make[3]: Leaving directory `/usr/src/linux-2.6.9'
make[2]: *** [default] Fout 2
make[2]: Leaving directory `/root/Desktop/Zydas/src/p80211'
make[1]: *** [all] Fout 2
make[1]: Leaving directory `/root/Desktop/Zydas/src'
make: *** [all] Fout 2
[root@localhost Zydas]#
What am I (or the driver) doing wrong? I use Fedora Core 3 with a 2.6.9 kernel and a Topcom Skyr@cer Wireless USB v2.0 and I used the zd1201-0.14.tar.gz package from http://linux-lc100020.sourceforge.net/.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.