View previous topic :: View next topic |
Author |
Message |
amphibious Apprentice
Joined: 25 Sep 2003 Posts: 174 Location: boston, massachusetts, usa
|
Posted: Sat Apr 23, 2005 4:07 am Post subject: iwconfig sees wireless network, ifconfig wlan0 up doesn't... |
|
|
I'm sure this is an easy fix, it's probably just a newb missing a step or something...
Anyway, iwconfig turns up this result:
Code: |
wlan0 IEEE 80211.g ESSID:"mywirelessnetwork"
Mode: Managed Frequency:2.462GHz Access Point: XX:XX:XX:XX:XX:XX
Bit Rate=54 Mb/s Tx-Power=16dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=77/100 Signal level=-52 dBm Noise level=-83 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2 Missed beacon1
|
When I run "ifconfig wlan0 up" I get this when I type ifconfig:
Code: |
wlan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet6 addr: XXXX::XXX:XXXX:XXXX:XXXXXXX Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 195 errors:0 dropped:2 overruns:0 frame:0
TX packets: 20 errors:0 dropped:0 overruns:0 carrier:-
collisions:0 txqueuelan:1000
RX bytes:736 (736.0 b) TX bytes:1264 (1.2 Kb)
Interrupt:11 Base address:0xe000 Memory:d0202000-d0202fff
|
I followed the instructions from http://www.ict.tuwien.ac.at/staff/palensky/p7010/... which says to do this:
Quote: | # WLAN
It has an Intel Pro Wireless 2200bg card on board: ACCEPT_KEYWORDS="~x86" emerge ipw2200 (make sure that your /usr/src/linux link is set correctly!)
Use /etc/iftab to rename your network interfaces:
Code: |
wlan0 driver ipw2200
eth0 driver 8139too
fiwi0 driver eth1394
|
Copy /etc/init.d/net.eth0 to net.wlan0 and add the following (ugly but working) clause to it:
Code: |
preup() {
#ESSID=MyNet # THIS IS CASE SeNsItIvE!! any == associate to any ESSID
RATE=11 # auto, 11M, 12, 18, 24, 36, 48, 54
CHAN=11 # 1, 6 or 11
TXPOWER=16 # 16 == 16.5dBm, 18 == 18dBm (default)
MODE=Managed # Managed, Ad-Hoc, Master, Repeater, Secondary, Monitor, Auto
DEBUG=0x00
#KEY="1234567812345678ABCDEFABCD" # WEP128
ALG=open # open == Open System, restricted == Shared Key
IWCONF=`which iwconfig`
IWPRIV=`which iwpriv`
DEV="$1"
EXIST=`$IWCONF $DEV 2>&1 | grep 'No such device'`
if test -n "${EXIST}"; then
echo " device ${DEV} not found..."
return 1
else
$IWCONF $DEV rate $RATE
$IWCONF $DEV channel $CHAN
$IWCONF $DEV txpower $TXPOWER
sleep 1
if test -z "$ESSID"; then
ESSID=any
fi
$IWCONF $DEV essid "$ESSID"
$IWCONF $DEV mode $MODE
if test -n "$KEY"; then
$IWCONF $DEV key $ALG "$KEY"
fi
fi
} |
|
I also added a wlan0 line to my /etc/conf.d/net...
What else am I missing? Thanks... _________________ http://amphibio.us |
|
Back to top |
|
|
amphibious Apprentice
Joined: 25 Sep 2003 Posts: 174 Location: boston, massachusetts, usa
|
Posted: Sat Apr 23, 2005 5:13 am Post subject: |
|
|
Hrm... I rebooted and now everything works. I thought that was only supposed to fix problems with Windows systems. _________________ http://amphibio.us |
|
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
|
|