Another problem configuring the wireless
Using the MCC I configured my wireless card Intel/pro 2200 bg. The installation system recognized it. I set the right operating mode, the ESSID and the autentication key. At the end of the procedure I could reach the wireless router and my firewall.
Here my problem: when I reboot the system the kernel recognizes the card, starts it up but I need to run a script to send the authentication key, using the iwconfig option: Code:
iwconfig eth3 key s:xxxxx |
Do you already have that command running on boot? You might need to configure some more things. If you have an ifcfg-wlan0 file in /etc/sysconfig/network (this might only be on SuSE, not quite sure how it works in Mandriva...) then you should be good to go, and just fill out any missing areas. Copy your iwconfg and ifconfig output in here so I can see if anything is missing. Of course cover up/remove the wireless key from the posting. :D I know how you feel, I have been trying forever to get wireless working in linux (Fedora, SuSE, Knoppix, WHAX, you name it) and I just got it working a couple days ago.
chiefreborn |
At the moment I haven't the possibility to check what you're asking for, I need to wait this evening at home but I'd tell you other info:
-if I set the card to work with DHCP, during the boot I'd see the system is waiting for an IP address, then it exit with an error because it canno't reach the DHCP server until I run the script into the X-server. -if I set a static IP, like at the moment, the boot sequence go on without error messages, when I enter the X-serverr I can see the "started network" icon on the task bar but I'm not able to ping the firewall until the script. For the other request see you this evening (Italian evening) |
Okay. Whenever you give me the other info I'll try to help you out some more.
|
Here I'm with the requested informations.
The ifcfg-wlan0 in Mandriva is called ifcfg-ethx (where x is the card number) and it's located in /etc/sysconfig/network-scripts (just fyi) and, here, you'll find the content of my one: DEVICE=eth3 BOOTPROTO=static IPADDR=192.168.0.15 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255 ONBOOT=yes HWADDR=00:0e:35:9f:3a:fc METRIC=10 MII_NOT_SUPPORTED=yes USERCTL=yes WIRELESS_MODE=Master WIRELESS_ESSID=WiFiCasa WIRELESS_ENC_KEY=xxxxxxxxxxxx here the iwconfig, cleaned by the no-wireless-cards informations: eth3 IEEE 802.11g ESSID:"WiFiCasa" Nickname:"Notebook" Mode:Managed Frequency:2.462 GHz Access Point: 00:01:E3:04:F7:2A Bit Rate=54 Mb/s Tx-Power=20 dBm RTS thr: off Fragment thr: off Encryption key:6275-6C67-6172-6F67-7261-7373-6F Security mode: open Power Management: off Link Quality=73/100 Signal level=-55 dBm Noise level=-87 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 and finally the ifconfig: eth0 Link encap:Ethernet HWaddr 00:40: D0:69:3E:E0 inet addr:10.0.20.241 Bcast:10.0.20.255 Mask:255.255.255.0 inet6 addr: fe80::240:d0ff:fe69:3ee0/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:3062 (2.9 Kb) Interrupt:10 Base address:0xeb00 eth1 Link encap:UNSPEC HWaddr 00-40-D0-01-00-28-AC-2A-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) eth3 Link encap:Ethernet HWaddr 00:0E:35:9F:3A:FC inet addr:192.168.0.15 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20e:35ff:fe9f:3afc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:718 errors:0 dropped:0 overruns:0 frame:0 TX packets:692 errors:0 dropped:0 overruns:0 carrier:1 collisions:0 txqueuelen:1000 RX bytes:297020 (290.0 Kb) TX bytes:92689 (90.5 Kb) Interrupt:10 Base address:0x2000 Memory:d0001000-d0001fff lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:21 errors:0 dropped:0 overruns:0 frame:0 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1816 (1.7 Kb) TX bytes:1816 (1.7 Kb) sit0 Link encap:IPv6-in-IPv4 inet6 addr: ::192.168.0.15/96 Scope:Compat inet6 addr: ::10.0.20.241/96 Scope:Compat inet6 addr: ::127.0.0.1/96 Scope:Unknown UP RUNNING NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) I hope you'd find what you're searching for. I needed to isert some spaces somewhere into the code because the string ": o" (for example from the string ": off") introduces a smile. Thanks for your help. |
So you statically set your IP and routing information? Here's an example of my ifcfg-wlan0 file:
BOOTPROTO='dhcp' MTU='' NAME='Ethernet Network Card' REMOTE_IPADDR='' STARTMODE='auto' USERCONTROL='yes' WIRELESS_AP='' WIRELESS_AUTH_MODE='open' WIRELESS_BITRATE='auto' WIRELESS_CHANNEL='6' WIRELESS_DEFAULT_KEY='0' WIRELESS_ESSID='CodifNet' WIRELESS_FREQUENCY='' WIRELESS_KEY='' WIRELESS_KEY_0='insert your key here' WIRELESS_KEY_1='' WIRELESS_KEY_2='' WIRELESS_KEY_3='' WIRELESS_KEY_LENGTH='128' WIRELESS_MODE='Managed' WIRELESS_NICK='' WIRELESS_NWID='' WIRELESS_POWER='yes' WIRELESS_WPA_PSK='' _nm_name='static-0' You might want to replace 'static' with 'dhcp' so that it automatically sets your routing settings and IP info. If this is not possible, try adding your default access point/router IP with the 'route add default gw [insert IP address here]'. Try pinging 'google.com'. If that doesn't work, try a 'dhcpcd' (if it exists in Mandriva) and try pinging google again. And if all THAT doesn't work, let me know. BTW, your wireless key is in your post in case you haven't noticed. ;) |
did you set your modem to bridge intead of pppoe?
|
@chiefreborn: I forgot to clean my key, you're right. I chose to use static IP because the system wasn't able to find a free IP due to the lack of activationduring the boot (my main problem).In this way I have an address which is useable immediatly after the key encyiption.
@crAckZ: I didn't configure the modem, maybe it's something standard in Mandriva. |
Well, does your card work once you run the script? If it does, find the equivalent of the 'rc.local' file in the /etc/init.d directory. If you just need to execute a shell script on command, edit the rc.local file and put the line:
./shell_script_name.sh Or whatever command you use to execute the script. |
Finally I found the time to do what you've suggested and it works! Thanks a lot.
This is a good way to solve the problem but I still have a question: which is the reason why the official configuring tool (MCC) doesn't configure the card in the right way? In your opinion, is this a bug to be send to the Mandriva devel team? |
Yes. If it is a problem with Mandriva, send it in. This is what worked for me in SuSE so it's definitely a problem with Mandriva.
|
All times are GMT -5. The time now is 05:12 PM. |