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

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

 



Ed Landaveri wrote:

>> > You might need to change the ifcfg-ethX
>> > with something like:
>> >
>> > DEVICE=eth0
>> > USERCTL=no
>> > ONBOOT=yes
>> > BOOTPROTO=none
>> > BROADCAST=192.168.1.255
>> > NETWORK=192.168.1.0
>> > NETMASK=255.255.255.0
>> > IPADDR=192.168.1.5
>> >
>> > Then
>> > Your /etc/sysconfig/network file would be:
>> >
>> > NETWORKING=yes
>> > HOSTNAME=foo
>> > GATEWAY=192.168.1.1
> 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


-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


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

  Powered by Linux