Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless configuration and startup - The Gentoo way
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 57, 58, 59  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 4:05 pm    Post subject: Reply with quote

If the essid is Biowireless then the command is

wireless_key_Biowireless="restricted s:fooba"

Of course, you could change restricted to open or leave it out entirely and let the driver decide.
Back to top
View user's profile Send private message
Grilo
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 114
Location: Canada

PostPosted: Thu Mar 25, 2004 5:09 pm    Post subject: Reply with quote

ok thank you ben using the iwconfig command essid then enc

it connects but then just dies and will not even register teh eth1 if i do a iwconfig.. could that be my signal?
_________________
Knowledge is power but the drive to learn is harnessing wizdom
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Thu Mar 25, 2004 5:36 pm    Post subject: Reply with quote

Weird, I've finally found the problem why I couldn't connect to the AP.
I have to set my channel with iwconfig manually and then start my eth1 device, any idea's how to fix this ?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 5:53 pm    Post subject: Reply with quote

god8y wrote:
Weird, I've finally found the problem why I couldn't connect to the AP.
I have to set my channel with iwconfig manually and then start my eth1 device, any idea's how to fix this ?


Code:

wireless_config_eth0="channel 6"


Change interface and channel number accordingly
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 5:55 pm    Post subject: Reply with quote

Grilo wrote:
ok thank you ben using the iwconfig command essid then enc

it connects but then just dies and will not even register teh eth1 if i do a iwconfig.. could that be my signal?


Is it still working without wep? If so, your WEP config may still be causing problems. Remember, that passphrase is not supported, just the key.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Grilo
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 114
Location: Canada

PostPosted: Thu Mar 25, 2004 6:11 pm    Post subject: Reply with quote

i have wep running at 64bit and am using a key and not a parpass. not sure... i am looking into ways of boosting my router's signal. its' an smc 7004vwbr
_________________
Knowledge is power but the drive to learn is harnessing wizdom
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Thu Mar 25, 2004 6:20 pm    Post subject: Reply with quote

Some other problem I bumped on now, I can 'connect' to the AP with a HEX WEP key (128bit) but I cannot ping anything or get pinged, assume the key is 01234567890123456789012345
I should set
wireless_key_De_Coninck="open 0123-4567-8901-2345-6789-0123-45"
right?
problem is: I can connect to the AP but i have to manually set the WEP key again to make it possible the machine can be accessed
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 7:31 pm    Post subject: Reply with quote

god8y wrote:
Some other problem I bumped on now, I can 'connect' to the AP with a HEX WEP key (128bit) but I cannot ping anything or get pinged, assume the key is 01234567890123456789012345
I should set
wireless_key_De_Coninck="open 0123-4567-8901-2345-6789-0123-45"
right?
problem is: I can connect to the AP but i have to manually set the WEP key again to make it possible the machine can be accessed


If you manually set the WEP key and it works, put exactly what you type after "iwconfig eth0 key" in the wireless_key_De_Coninck field.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Thu Mar 25, 2004 8:06 pm    Post subject: Reply with quote

UberLord wrote:
god8y wrote:
Some other problem I bumped on now, I can 'connect' to the AP with a HEX WEP key (128bit) but I cannot ping anything or get pinged, assume the key is 01234567890123456789012345
I should set
wireless_key_De_Coninck="open 0123-4567-8901-2345-6789-0123-45"
right?
problem is: I can connect to the AP but i have to manually set the WEP key again to make it possible the machine can be accessed


If you manually set the WEP key and it works, put exactly what you type after "iwconfig eth0 key" in the wireless_key_De_Coninck field.


So if i type in:
iwconfig eth1 enc 01234567890123456789012345
I have to use:
wireless_key_De_Coninck="enc 01234567890123456789012345" ?

then i get:
eth1 doesn't support setting keys , so i guess it freaks on the enc thing.

I've set the wireless_key to
wireless_key_De_Coninck="open 01234567890123456789012345"
but it gives the same as first posted then, i have to reset the key manually with iwconfig to get it working on the network.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 8:51 pm    Post subject: Reply with quote

god8y wrote:

So if i type in:
iwconfig eth1 enc 01234567890123456789012345
I have to use:
wireless_key_De_Coninck="enc 01234567890123456789012345" ?

then i get:
eth1 doesn't support setting keys , so i guess it freaks on the enc thing.

I've set the wireless_key to
wireless_key_De_Coninck="open 01234567890123456789012345"
but it gives the same as first posted then, i have to reset the key manually with iwconfig to get it working on the network.


Aha

key is the same as enc
so simply do

wireless_key_De_Coninck="01234567890123456789012345"
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Thu Mar 25, 2004 9:01 pm    Post subject: Reply with quote

If I use that as setting it won't even let me connect to it, seems like it needs the word open or restricted :cry:
Back to top
View user's profile Send private message
haven
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 141
Location: Belfast, Uk

PostPosted: Thu Mar 25, 2004 9:03 pm    Post subject: Reply with quote

I just wanted to post up a quick thank-you. Last night I was running my DWL-AG650 Card under windows and I had no idea what linux wifi entailed.

Tonight I am posting this via the same laptop booted under gentoo :)

Thanks for the very helpful information found on here combined with notes from the url below:
http://www.linuxquestions.org/hcl/showproduct.php?product=675

Now I just need to figure out WPA but that can wait until another night.

Ta once more guys.
Back to top
View user's profile Send private message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Thu Mar 25, 2004 9:27 pm    Post subject: question Reply with quote

hi

this script is great, now i can configure my various wlans easily. but i have two questions

1. where can i set the nick (like "iwconfig wlan0 nick NAME" does)

2. where can i set the timeout for scanning for network "any"

thx ;-)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 10:13 pm    Post subject: Reply with quote

god8y wrote:
If I use that as setting it won't even let me connect to it, seems like it needs the word open or restricted :cry:


If you don't specify the type (open or restricted) then the driver should make a best guess.

To clarify - it works when you do it manually?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 10:18 pm    Post subject: Re: question Reply with quote

h�nse wrote:
hi

this script is great, now i can configure my various wlans easily. but i have two questions

1. where can i set the nick (like "iwconfig wlan0 nick NAME" does)

2. where can i set the timeout for scanning for network "any"

thx ;-)


1. In the setting wireless_config_wlan0="nick NAME"
You can also put other stuff in there like "channel 6 rate auto" for example

2. You can't set a timeout for individual ESSID's
However, you can set timeouts for
wireless_sleep_scan_wlan0 - Timeout before scanning
wireless_sleep_associate_wlan0 - Timeout to associate with an AP

If that's not enough, you can force timeouts by executing a script that just sleeps using
preifup_eth0="/run/this/script"
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 25, 2004 10:23 pm    Post subject: Reply with quote

haven wrote:
Thanks for the very helpful information found on here combined with notes from the url below:
http://www.linuxquestions.org/hcl/showproduct.php?product=675


I doubt that my config script works with Faye's original script :twisted:

Quote:

Now I just need to figure out WPA but that can wait until another night.


I don't know of anyone who's tried/tested WPA with my scripts - I don't have the hardware :(

Lemmie know how it works out for you
Quote:

Ta once more guys.


Welcome :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Thu Mar 25, 2004 10:58 pm    Post subject: Reply with quote

thx it works great :D
Back to top
View user's profile Send private message
Phylroy
n00b
n00b


Joined: 23 Mar 2004
Posts: 18

PostPosted: Fri Mar 26, 2004 4:34 am    Post subject: Problems with WUSB11 Reply with quote

I think I'm close but not quite...

I've set up the net scripts and It fails, I think at the dhcpcd part.

I try to start the script and I get this result..

Code:

bash-2.05b# /etc/init.d/net.eth1 restart
 * Configuring wireless network for eth1...
 *   Connecting to "any"
 *   Connected to "USR8054"                                               [ ok ]
 * Bringing eth1 up...
 * Failed to start DHCP on eth1


My output from my dmesg is

Code:

hub.c: new USB device 00:10.0-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x77b/0x2219) is not claimed by any active driver.
usb.c: registered new driver usbvnetr
usb vendor/product=77b/2219
vnet_kernel.c: Reseting Usb Device

vnet_kernel.c: Reset completed.
Reg Domain
usbvnetr: driver version 1.0.1, compiled Mar 22 2004 19:41:48 (dbg_mask x0)
MAC addr 00:06:25:B0:99:C1 firmware 1.103.2.164
divert: allocating divert_blk for eth1
Multicast is enabled
divert: allocating divert_blk for eth1
divert: freeing divert_blk for eth1
vnetusba.c: usb eth1 initialized and registered
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -6
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -6
eth1: no IPv6 routers present
vnetusba.c: Device eth1 closed


I thought it may be an IPv6 issue...(maybe it is anyways) but I was able to connect using my wired eth0
Code:

eth0      Link encap:Ethernet  HWaddr 00:0C:6E:C7:FE:D3
          inet addr:192.168.123.100  Bcast:192.168.123.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fec7:fed3/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2966 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1240 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1430622 (1.3 Mb)  TX bytes:167447 (163.5 Kb)
          Interrupt:23

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:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:576 (576.0 b)  TX bytes:576 (576.0 b)




But it is strange because it picked up all my AP's information

Code:

bash-2.05b# iwconfig eth1
eth1      ATMEL RFMD503A  ESSID:"USR8054"  Nickname:"USR8054"
          Mode:Managed  Channel:11  Access Point: 00:C0:49:CC:A1:94
          Bit Rate:11Mb/s
          RTS thr=65535 B   Fragment thr=65534 B
          Encryption key:off
          Link Quality:100  Signal level:5  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


Any ideas?

I'm running the 2.4.22-gentoo-r7 kernel with the atmel driver.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Mar 26, 2004 9:40 am    Post subject: Reply with quote

If you're connected to the AP ok, not getting a DHCP address really only be one of the following

1) No DHCP server available - or it's handing out conflicting IP's
2) WEP incorrect
3) MAC filtering
4) Firewall blocking DHCP
5) Signal isn't strong enough

Have you tried using a static IP and switching off WEP and MAC filtering?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Fri Mar 26, 2004 9:49 am    Post subject: Reply with quote

Hey,
Uberlord I think i came to a bug in the script orso, because when i set the wireless_wep_De_Coninck="open 01234567890123456789012345" It always fails for me to connect and get eth1 up, if I set it to restricted i can connect to it, but I have to reset the key again and with mode: open

any ideas?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Mar 26, 2004 9:55 am    Post subject: Reply with quote

Don't use open or closed in the key setting and let the driver decide?

Sounds more like a driver issue to me
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Fri Mar 26, 2004 2:52 pm    Post subject: Reply with quote

if I let the driver decide it keeps the same :s
dammit stupid drivers :)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Mar 26, 2004 4:27 pm    Post subject: Reply with quote

god8y wrote:
if I let the driver decide it keeps the same :s
dammit stupid drivers :)


Put the command to set the key in an script file.
When you get that working, put the path to it in the setting below

wireless_preifup_ESSID=/path/to.file

Now it should work :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
god8y
n00b
n00b


Joined: 24 Jun 2003
Posts: 71

PostPosted: Fri Mar 26, 2004 4:31 pm    Post subject: Reply with quote

Doesn't he launch the script then before the device is up ? It has to be started after it though, I will try :)
Back to top
View user's profile Send private message
t_2199
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2004
Posts: 146

PostPosted: Sat Mar 27, 2004 1:59 am    Post subject: Reply with quote

Works great for me with the first try!


THANX!

saved me alot of time
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 57, 58, 59  Next
Page 15 of 59

 
Jump to:  
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