Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Manual wireless configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
parsim
Guru
Guru


Joined: 12 Aug 2004
Posts: 347
Location: Melbourne, Australia

PostPosted: Wed Nov 16, 2005 1:34 am    Post subject: Manual wireless configuration Reply with quote

I'm having trouble connecting to my AP:

Code:
# /etc/init.d/net.wlan0 start
* Starting wlan0
*    Loading networking modules for wlan0
*       modules: iwconfig essidnet iptunnel ifconfig dhcpcd apipa
*          iwconfig provides wireless
*          ifconfig provides interface
*          dhcpcd provides dhcp
*    Configuring wireless network for wlan0
*    Scanning for access points
*       Found "zephyr" at 00:0F:B5:50:1C:D2
*       Found "default" at 00:0C:41:AA:EA:86
*    Connecting to "zephyr" (WEP Disabled) ...                              [ !! ]
*    Failed to configure wireless for wlan0                                 [ !! ]

But I'm often able to connect to the neighbour's unsecured AP ("default") just fine, which I think means the card is configured OK.

To work out what's wrong, I want to configure the card manually, but I'm having a doozy of a time working out what I'm meant to do. I think I'm meant to do this:
Code:
iwconfig wlan0 essid zephyr
iwconfig wlan0 mode managed
ifconfig wlan0 up
dhcpcd wlan0

Is this right?

What I'm finding is that the card's details don't seem to change (i.e. I set the essid and it still says "off/any"), and when I get to the dhcpcd stage, it just times out--I guess because it never associated with the AP.
Back to top
View user's profile Send private message
eyeL
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2005
Posts: 82
Location: Missouri

PostPosted: Wed Nov 16, 2005 1:53 am    Post subject: Reply with quote

here's something I wrote awhile ago for my slackware box.

#!/bin/bash
echo "Loading modules..."
# Be sure to update these periodically
# They have had security flaws
modprobe wlan_tkip
modprobe wlan_acl
modprobe wlan_xauth
modprobe wlan_wep
modprobe ath_pci
modprobe ath_rate_sample
modprobe wlan
modprobe ath_hal

echo "Setting up card..."
ifconfig ath0 up
iwconfig ath0 essid "ssidhere"
iwconfig ath0 mode managed
# You may be able to just set the previous command to iwconfig ath0 mode auto
echo "Setting AP..."
iwconfig ath0 ap aphere

echo "Setting WEP key..."
iwconfig ath0 key keyhere

echo "Attempting to get IP via DHCP..."
dhcpcd ath0
_________________
[theNPA - down for updates] | [Adopt an unanswered post]
gentoo 2005.1 [lazy] - gcc 4.1.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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