View previous topic :: View next topic |
Author |
Message |
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Sat Aug 09, 2003 1:56 pm Post subject: Wireless pci card up how to enable on boot and disable eth0? |
|
|
Hello all!!
Ok...progress so far. Finally found the README on the linux-wlan-ng site
(ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README)
I first did and ifconfig eth0 down, then followed the instructions for setting the
/etc/wlan/wlancfg-DEFAULT
and
/etc/wlan/wlan.conf
Files. Then I ran:
modprobe prism2_pci [or prism2_usb/prism2_plx]
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=<your APs SSID> authtype=opensystem
ifconfig wlan0 <yourIP> netmask <yourNetmask> broadcast <yourBroadcast>
route add default gw <yourGateway>
Voila...the Linksys wmp-11 is running, and connecting just fine. However, I'm confused on the Gentoo way to get this to startup on boot. The instructions on the site say to put the 5 previously listed commands in your rc.local file. I looked in /etc and didn't see such a file. It said you could also "Alternatively, you can use the rc.wlan script, which ties into the /etc/wlan/* configuration files..."
I can't seem to find this file either. So, if someone could maybe point me in the right direction. I'm guessing I need to set something in a file similar to when I set up eth0 when I initially built the system. I remember I did: rc-update add net.eth0 default
And I see in the install doc, if you have multiple ethx's...you cp the file and do the rc-update command. Do I do the same thing for wlan0? Do I need to edit this file before I rc-update?
Also, after I get the wlan0 on boot...I really don't need eth0...how do I stop it from coming up on boot...is there a 'anti- rc-update command. I guess I don't understand what rc-update does. Does anyone have a link to read up on the rc-update command?
thanks for all the help so far...as soon as I get this working..going to try to start to put a definitive post together on all it takes to get a linksys wireless pci card working.
Thanks in advance!!
cayenne |
|
Back to top |
|
|
Souf n00b
Joined: 07 Aug 2003 Posts: 29 Location: Belgium
|
Posted: Sat Aug 09, 2003 2:51 pm Post subject: |
|
|
Quote: | Also, after I get the wlan0 on boot...I really don't need eth0...how do I stop it from coming up on boot...is there a 'anti- rc-update command. |
Try this one:
Code: | rc-update del net.eth0 default |
Greetz,
Souf |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Sat Aug 09, 2003 6:54 pm Post subject: Close...very close.. |
|
|
Hello all!!
Ok...I'm VERY close to getting my linksys wireless to working on boot. A couple problems.
1. I can't seem to find the boot log...I looked in /var/log , but, can't find the one that has all the boot messages on it...I saw from a previous post that dmesg would print it...but, is not the same thing. I can see some wlan-ng errors flash by the screen, but, can't read them. Can someone tell me where the log for boot messages are?
2. Once the system got up...wlan0, of course, was not up. However, if it do ifconfig wlan0 up, it fires up...but, doesn't know the default gateway, I do the route add default gw command...and now, it is all functioning just fine. So...does this lend a clue as to what files I have wrong...or what is set wrong to keep box from booting up with wlan0 up?
So far, I disabled eth0 (thanks for the reply on that one!!!). I looked in my kernel config...has been awhile since I built the box...I saw I had
hermes chipset 802.11b support compiled into the kernel....and also, pad prism 2.5 pci 802.11b adaptor support (experimental) as a module. So, I added an alias into my /etc/modules.d/aliases file (alias wlan0 prism2_pci) and modules-update. Now, I have no idea which one it is using..but, figure I'm covered with both of them. I've done all the stuff in previous post above....
So, I can get the linksys wmp-11 pci card working AFTER boot...with the ifconfig and route commands...but, cannot get the final parts of booting up with it in place.
ALL suggestions or links GREATLY appreciated!!
cayenne..................... |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Mon Aug 11, 2003 10:04 pm Post subject: Any suggestions? |
|
|
Anyone? |
|
Back to top |
|
|
deuce n00b
Joined: 11 Dec 2002 Posts: 56
|
Posted: Tue Aug 12, 2003 3:01 pm Post subject: |
|
|
I don't have the wlan-ng package, but this is how to enable an additional network interface.
First, for dmesg do:
and the messages won't just scroll by.
To set up wlan0 at boot, do the following as root:
Code: | cd /etc/init.d
cp net.eth0 net.wlan0
cd /etc/conf.d
nano -w net
|
Inside of /etc/conf.d/net you need to specifiy:
Code: | iface_wlan0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
gateway="wlan0/192.168.0.1"
|
and to enable the wireless interface at boot:
Code: | rc-update add net.wlan0 default |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|