* [gentoo-user] wireless on boot
@ 2006-11-01 14:47 Luigi Pinna
2006-11-02 18:54 ` Mick
0 siblings, 1 reply; 6+ messages in thread
From: Luigi Pinna @ 2006-11-01 14:47 UTC (permalink / raw
To: Gentoo, List
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo!
How can I set on boot time my lan connection using a usb card?
Some service need internet on boot (ntp-client, etc.) but I cannot find
a script on /etc/init.d/ to support it.
The connection uses wpa.
A second question: some times the connection gets down but dhcpcd
doesn't see it and the only solution is to kill wpa_supplicant and
dhcpcd and restart them.
How can I prevent this problem, or connect automatic again?
Thanks,
Luigi
- --
Public key GPG(0x633F86B7) on hkp://keyserver.linux.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFSLN9HmkkjmM/hrcRAiQOAJ9LVHVyFApKV2PR+GY3R92A5Keq4wCfS5rv
tClQkEiFjq4egtkSqX3cH5g=
=PXRq
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] wireless on boot
2006-11-01 14:47 [gentoo-user] wireless on boot Luigi Pinna
@ 2006-11-02 18:54 ` Mick
2006-11-04 12:53 ` Luigi Pinna
0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2006-11-02 18:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]
On Wednesday 01 November 2006 14:47, Luigi Pinna wrote:
> gpgkeys: HTTP fetch error 6: Couldn't resolve host 'subkeys.pgp.net'
> Hallo!
> How can I set on boot time my lan connection using a usb card?
> Some service need internet on boot (ntp-client, etc.) but I cannot find
> a script on /etc/init.d/ to support it.
> The connection uses wpa.
If I understand you correctly, you won't find the entry you're looking for.
You need to create a link with the name of your usb card interface.
ifconfig -a will show you what the new network card is recognised as and then
you have to link it to /etc/init.d/net.lo. For example, if ifconfig shows
you a new interface called wlan0 then you need to run something like this:
# cd /etc/init.d
# ln -s net.lo net.wlan0
Then, set something like RC_NET_STRICT_CHECKING="no" in your /etc/conf.d/rc
and all the right things should happen when you boot up.
> A second question: some times the connection gets down but dhcpcd
> doesn't see it and the only solution is to kill wpa_supplicant and
> dhcpcd and restart them.
> How can I prevent this problem, or connect automatic again?
Sorry, not adequately clued up on this, to offer any reliable advice. I know
that the wpa_supplicant requires the iface to stay up, something which may
not happen if dhcpcd goes down and takes the iface with it. You may want to
try adding an option like dhcpcd_wlan0="-o" in your /etc/conf.d/net to see if
it makes any difference. Someone more knowledgeable in network matters ought
to advise here.
HTH.
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] wireless on boot
2006-11-02 18:54 ` Mick
@ 2006-11-04 12:53 ` Luigi Pinna
2006-11-04 19:44 ` Neil Bothwick
0 siblings, 1 reply; 6+ messages in thread
From: Luigi Pinna @ 2006-11-04 12:53 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alle 19:54, giovedì 2 novembre 2006, Mick ha scritto:
> If I understand you correctly, you won't find the entry you're
> looking for. You need to create a link with the name of your usb card
> interface. ifconfig -a will show you what the new network card is
> recognised as and then you have to link it to /etc/init.d/net.lo.
> For example, if ifconfig shows you a new interface called wlan0 then
> you need to run something like this:
>
> # cd /etc/init.d
> # ln -s net.lo net.wlan0
>
> Then, set something like RC_NET_STRICT_CHECKING="no" in your
> /etc/conf.d/rc and all the right things should happen when you boot
> up.
Ok, I did it: it works!
But I continue to have some problems...
First, on boot time net.eth0 gives up and I must wait until timeout
before that boot could continue.
Second net.wlan0 fails with a strange message, it says that no wlan0 are
present on system to check hardware and driver.
The strange thing is that after boot I had already network and that
message:
WARNING: net.wlan0 has started but is inactive
WARNING: ntp-client is scheduled to start when net.wlan0 has started.
WARNING: festival is scheduled to start when net.wlan0 has started.
WARNING: sshd is scheduled to start when net.wlan0 has started.
WARNING: netmount is scheduled to start when net.wlan0 has started.
WARNING: samba is scheduled to start when net.wlan0 has started.
How can I solve it? Boot is too slow...
> > A second question: some times the connection gets down but dhcpcd
> > doesn't see it and the only solution is to kill wpa_supplicant and
> > dhcpcd and restart them.
> > How can I prevent this problem, or connect automatic again?
>
> Sorry, not adequately clued up on this, to offer any reliable advice.
> I know that the wpa_supplicant requires the iface to stay up,
> something which may not happen if dhcpcd goes down and takes the
> iface with it. You may want to try adding an option like
> dhcpcd_wlan0="-o" in your /etc/conf.d/net to see if it makes any
> difference. Someone more knowledgeable in network matters ought to
> advise here.
> HTH.
I found the problem! I used wpa_supplicant with this command line:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
- -B says to work as daemon, but it can't change keys and after my key
expiration the system disconnect me.
Now it works fine.
Thanks,
Luigi
- --
Public key GPG(0x633F86B7) on hkp://keyserver.linux.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFTI1XHmkkjmM/hrcRAtziAJ9M+9VBdEDIJPaaPdOGj7+uo/NZBwCfZvzc
vVLRPEE0YBK7GZWgVXKD0gw=
=NXEM
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] wireless on boot
2006-11-04 12:53 ` Luigi Pinna
@ 2006-11-04 19:44 ` Neil Bothwick
2006-11-07 19:35 ` Luigi Pinna
0 siblings, 1 reply; 6+ messages in thread
From: Neil Bothwick @ 2006-11-04 19:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
On Sat, 4 Nov 2006 13:53:39 +0100, Luigi Pinna wrote:
> But I continue to have some problems...
> First, on boot time net.eth0 gives up and I must wait until timeout
> before that boot could continue.
emerge ifplugd and read the comments about it in /etc/conf.d/net.example
--
Neil Bothwick
"B?#$^f," said Pooh, as line noise garbled his transmission.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] wireless on boot
2006-11-04 19:44 ` Neil Bothwick
@ 2006-11-07 19:35 ` Luigi Pinna
2006-11-08 13:24 ` Mick
0 siblings, 1 reply; 6+ messages in thread
From: Luigi Pinna @ 2006-11-07 19:35 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alle 20:44, sabato 4 novembre 2006, Neil Bothwick ha scritto:
> On Sat, 4 Nov 2006 13:53:39 +0100, Luigi Pinna wrote:
> > But I continue to have some problems...
> > First, on boot time net.eth0 gives up and I must wait until timeout
> > before that boot could continue.
>
> emerge ifplugd and read the comments about it in
> /etc/conf.d/net.example
Sorry I answer only now: I was not here!
Your command works good, now in boot time I don't wait about net.eth0
but net.wlan0 and net.eth0 seem not active, but the wireless works.
I found that my connection is not still stable.
dmesg is full from this kind of messagges:
zd1211:Mixed Mode
wlan0: Configured authentication algorithms: Open system
wlan0: Drop encrypted: enabled
zd1211:Switch to Infra mode
zd1211:Mixed Mode
wlan0: WPA version: WPA
wlan0: pairwise cipher: TKIP
wlan0: group cipher: TKIP
wlan0: key mgmt: PSK
wlan0: privacy: enabled
wlan0: Allow Rx unencrypted EAPOL: disabled
zd1211:STA_ASSOCIATED with 00:15:0c:24:bd:22
zd1211:Notify_join_event:00:15:0c:24:bd:22
zd1211:Mixed Mode
zd1211:STA_ASSOCIATED with 00:15:0c:24:bd:22
******We Lose AP for 5 seconds
zd1211:zd1205_dis_connect
zd1205_notify_disjoin_event
wlan0: Configured authentication algorithms: Open system
wlan0: Drop encrypted: enabled
zd1211:Switch to Infra mode
zd1211:Mixed Mode
wlan0: WPA version: WPA
wlan0: pairwise cipher: TKIP
wlan0: group cipher: TKIP
wlan0: key mgmt: PSK
wlan0: privacy: enabled
wlan0: Allow Rx unencrypted EAPOL: disabled
zd1211:Mixed Mode
zd1211:STA_ASSOCIATED with 00:15:0c:24:bd:22
zd1211:Notify_join_event:00:15:0c:24:bd:22
And after same time (very irregular days or hours), I lose the signal
but nothing notices it.
I can solve with 2 simple command: rmmod zd1211b and modprobe zd1211b
When I put on the module again, dhcpcd recognizes it and start a new
connection.
What is wrong in my configuration?
My /etc/wpa_supplicant .conf is:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
network={
ssid="MySSID"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=CCMP TKIP WEP104 WEP40
psk="MyPassword"
priority=2
}
fast_reauth=1
Thanks,
Luigi
- --
Public key GPG(0x633F86B7) on hkp://keyserver.linux.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFUN/wHmkkjmM/hrcRAuwhAKCJukCsTF6mbEawidfragFRzQz9nwCgmFb1
dkGVCGE5/sSmnjYdq4t5CUY=
=YxJp
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] wireless on boot
2006-11-07 19:35 ` Luigi Pinna
@ 2006-11-08 13:24 ` Mick
0 siblings, 0 replies; 6+ messages in thread
From: Mick @ 2006-11-08 13:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]
On Tuesday 07 November 2006 19:35, Luigi Pinna wrote:
> Alle 20:44, sabato 4 novembre 2006, Neil Bothwick ha scritto:
> > On Sat, 4 Nov 2006 13:53:39 +0100, Luigi Pinna wrote:
> > > But I continue to have some problems...
> > > First, on boot time net.eth0 gives up and I must wait until timeout
> > > before that boot could continue.
> >
> > emerge ifplugd and read the comments about it in
> > /etc/conf.d/net.example
>
> Sorry I answer only now: I was not here!
> Your command works good, now in boot time I don't wait about net.eth0
> but net.wlan0 and net.eth0 seem not active, but the wireless works.
> I found that my connection is not still stable.
I'm not sure but it may have something to do with TTL and MTU sizes being
different between your wireless router and your computer wifi card?
> dmesg is full from this kind of messagges:
> zd1211:Mixed Mode
Assuming that is your zd1211 is your wireless card device I would comment out
the mixed and infrastructure mode settings from the /etc/conf.d/net file to
see if it makes a difference.
If you still cannot find what's causing it I would suggest that you establish
a basic connection to the router without passwd authentication, or anything
clever and see if that holds the connection. If the connection failures
continue, then it may have to do with a hardware problem. If the connection
failures go away, then it is a configuration issue.
HTH.
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-11-08 13:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 14:47 [gentoo-user] wireless on boot Luigi Pinna
2006-11-02 18:54 ` Mick
2006-11-04 12:53 ` Luigi Pinna
2006-11-04 19:44 ` Neil Bothwick
2006-11-07 19:35 ` Luigi Pinna
2006-11-08 13:24 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox