Re: How can i make a wireless connection in the command line?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Timothy Murphy wrote:
> Ed Landaveri wrote:
> 
>> Does not work with my wlan  adapter eventhough I
>> configured the AP with static assignments. If I use
>> dhcp it works. This is my script that I run:
>> #!/bin/bash
>> #Wireless script
>> #Author: Ed Landaveri
>> #Date: 06/08/2007
>> iwconfig wlan0 mode Managed
>> iwconfig wlan0 essid myessid
>> dhclient
>> echo $?
>>
>> Then my wlan adapter works.
> 
> But I think you could put these commands in the ifcfg-* script,
> eg 
> BOOTPROTO=dhcp
> ESSID=<whatever>
> MODE=managed
> 
> 
One thing to be aware of when configuring a wireless connection from
the command line is that if you are using WEP with a shared key, you
may have to add the restricted option before you can connect.

iwconfig wlan0 key restricted <key>

It depends on the settings of the Access Point. My AP will not
respond to DHCP requests unless you have the shared key, and the
restricted option with the WiFi cards I have used.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux