Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[wireless] Problem to configure the network automatically
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
falconn
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2004
Posts: 89

PostPosted: Wed Dec 15, 2004 8:25 pm    Post subject: [wireless] Problem to configure the network automatically Reply with quote

Hi all,

I've successfully configured my wireless card by hand with some commands (iwconfig, ifconfig...). Now I want to keep those settings at each boot.

For this, I've changed the configuration file "/etc/conf.d/net" to configure the ip adress, netmask, broadcast adress and default router.
I've dupplicated net.wlan0 from net.eth0 and then launched "rc-update". To configure the essid and mode (ad-hoc) I've typed the command into the file /etc/conf.d/local.start : "iwconfig wlan0 essid nameessid mode ad-hoc". I'm sure that this script is launched at boot time (through /etc/init.d/local).

When I log in, the networks is unreachable. Iwconfig shows me that
the essid is not taken in account during boot time. If I launch local.start by hand it works without problem.
I've thought about a path problem, but even if I put the complete path into local.start (/usr/sbin/iwconfig ... ), it doesn't change.

Could someone help me ?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Dec 15, 2004 10:08 pm    Post subject: Reply with quote

baselayout-1.11.7-r2 has wireless support for you - however it's up to you to unmask it (hint: it's masked ~ARCH - probably ~x86 for you)
Back to top
View user's profile Send private message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Thu Dec 16, 2004 10:49 pm    Post subject: Re: [wireless] Problem to configure the network automaticall Reply with quote

falconn wrote:
Hi all,

I've successfully configured my wireless card by hand with some commands (iwconfig, ifconfig...). Now I want to keep those settings at each boot.

For this, I've changed the configuration file "/etc/conf.d/net" to configure the ip adress, netmask, broadcast adress and default router.
I've dupplicated net.wlan0 from net.eth0 and then launched "rc-update". To configure the essid and mode (ad-hoc) I've typed the command into the file /etc/conf.d/local.start : "iwconfig wlan0 essid nameessid mode ad-hoc". I'm sure that this script is launched at boot time (through /etc/init.d/local).

When I log in, the networks is unreachable. Iwconfig shows me that
the essid is not taken in account during boot time. If I launch local.start by hand it works without problem.
I've thought about a path problem, but even if I put the complete path into local.start (/usr/sbin/iwconfig ... ), it doesn't change.

Could someone help me ?


Two things, you could add

iwconfig wlan0 mode managed
iwconfig wlan0 essid name
iwconfig wlan0 key wepkey

to your /etc/init.d/net.wlan0 right underneath the comments(as a cheap trick)

(and unless it's computer to computer? you should be using managed mode)

Secondly, it appears since it's wlan0 and not eth1 that you're using ndiswrapper(which has MANY known problems lately with committing essid changes and associating with an access point), and if you're able to, I recommend another route for your wifi.


Michael
_________________
Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com
Back to top
View user's profile Send private message
falconn
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2004
Posts: 89

PostPosted: Wed Dec 22, 2004 10:25 am    Post subject: Reply with quote

ok thanks :D I will try this tonight!
Back to top
View user's profile Send private message
dhalsiim
Guru
Guru


Joined: 29 Jan 2003
Posts: 486

PostPosted: Mon Dec 27, 2004 5:45 pm    Post subject: Do you mind if I start a new subject here :/ Reply with quote

-> First time wireless setup <-

Yep I've been reading on the subject alot lately and then went out and bought 2 WiFi cards that were kind of cheap (and therefore I'll have to use ndiswrapper now ><)

So my /etc/conf.d/wireless has:
Code:
essid_wlan0="Gentoo"
mode_wlan0="ad-hoc"
channel_wlan0="5"
key_GNet="s:gentoopenguin enc open"


and I added in my /etc/conf.d/:
Code:
config_Gentoo=( "192.168.0.2/24 brd 192.168.0.255" )


and finally ln -s net.lo net.wlan0 in /etc/init.d

Starting the service is fine, but stopping it gives:
Quote:
ERROR: "net.wlan0" has not yet been started.


and the interface also doesn't show up in ifconfig. ifconfig -a shows my device though ^^ Any hints?
EDIT: Oh and even if I were to setup everything manually by hand, the network does not work :[ can't ping laptop -> desktop and vice versa. Although on the laptop I can see a link established when I define the essid, channel, key manually. So .. I'm kinda lost here :[

EDIT: Well I guess I can pin-point the problem to the following: setting iwconfig wlan0 mode Ad-Hoc works without a hitch, but running iwconfig alone does not indicate that this is the mode that is currently set. And checking dmesg shows the error:
Quote:
ndiswrapper (iw_get_mode:169): getting operating mode failed (C00000BB)

I'm guessing this is due to ndiswrapper not supporting the windows driver fully or something along that line. I'm going to give linux-wlan-ng a try, although I don't think it would be any different.

EDIT: So here's the thing. I had no luck with linux-wlan-ng because I couldn't understand how to set it up xD So I tried out linuxant's commercial "DriverLoader" which worked .. yeehaw. But, after you set the options using iwconfig and it starts getting a signal (I don't even get the chance to ping).. the kernel panics! Something about driverloader tainting the kernel. I'll probably return the card tomorrow (D-Link G510) and look for a natively compatible one on ebay (in the range of 30 $'s xD). Thank you for being a wonderful audience :/ Would anyone be kind enough to list a few PCI cards that work with the prism54 drivers that I would be able to find online or in stores before New Year ><; prism54.org seems to be down.

EDIT: Sigh.. Ok I take that back. After running into another post on linuxquestions I found that using WinME's inf and sys files with linuxant's DriverLoader works without causing a panic. Now all I have to do is figure out why after 'iwlist eth2 scan' and finding a cell to communicate with I can't ping either ways >_<;
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