Re: eth0 and wlan0 keep falling back to zeroconf



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benj FitzPatrick wrote:
> Hello, I have a ferrari 4005 (broadcom tigon3 = eth0 and broadcom
> 4318 = wlan0) and I get my IP using dhcp.  For both devices I can
> manually bring them up using, for example, /etc/init.d/net.eth0
> start. However, if I try to get nm to initialize either device it
> times out after 25s and switches back to zeroconf which gives me a
> 169.254.x.x address.
>
> A little background, the tigon3 support is compiled statically into
>  the 2.6.16 kernel.  I'm using ndiswrapper for wlan0 and the AP has
>  no encryption and is in managed mode.  I'm using vidalinux (gentoo
>  variant) and my package versions are listed below.  The example I
> gave was for wlan0, but eth0 is similar.
>
> Am I just doing something stupid, or is something mis-configured?
> I appreciate any help as I'd like to get this working. Benj
>
> nm 0.6.1-r2 wpa_supplicant-0.5.2 dbus-0.61-r1 ndiswrapper-1.9
> dhcp-3.0.3-r4
>
> After reading many (20+) posts on the forums I still haven't found
> the trick to getting it working.  In one it said to have USE="dbus"
>  when I emerge dhcp.  It turns out that option is in my make.conf,
> and that the version of dhcp I have available, 3.0.3-r4, does not
> have dbus as an option.  I have created the folders
> /var/run/NetworkManager and /var/run/wpa_supplicant as another
> suggests, and nm actually gets rid of /var/run/wpa_supplicant when
> I tell nm-applet to connect to one of the APs it finds.  I was also
>  told that I should remove dhcpcd as it conflicts with dhcp, but it
>  didn't seem to make any difference.  Also, when I try to bring up
> wlan0 without nm dhclient has a different error about missing files
>  (it says that the script it is reading can't find a file, but I
> actually can't find the script or the file so I guess it isn't
> lying completely).  I also made /sbin/dhclient-script executable as
>  another thread suggested.
>
> What works: If I bring both up manually with nm off this works
> fine.  For this case my /etc/conf.d/net has config_eth0=("dhcp")
> and config_wlan0=("dhcp"), and /etc/conf.d/wireless has
> config_wlan0=("dhcp"). [code]ender benjfitz # /etc/init.d/net.wlan0
> restart * Starting wlan0 *   Configuring wireless network for wlan0
>  *     wlan0 connected to "one" at 00:02:72:41:96:AF *     in auto
> mode (WEP disabled) *   Bringing up wlan0 *     dhcp *
> Running dhcpcd ...
>  [ ok ] *       wlan0 received address 192.168.16.49 [/code]
>
> However when I have started nm and use nm-applet I get a timeout on
>  wlan0 (I'll get to eth0 later as I'm away from a wired connection
> at the moment).  As best as I can tell it is doing everything
> right, it just doesn't ever associate.  I've listed dmesg,
> /var/log/messages, and some config files below.
>
> Any help would be greatly appreciated.
>
>
> I left /etc/conf.d/wireless the same, and I modified the
> /etc/dbus..../NetworkManager.conf dhcdbd.conf nm-applet.conf
> properly (so far as I know) as in I took the root section, copied
> it and changed my user name for root's.
>
> wpa_supplicant.conf [code] ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=wheel eapol_version=1 ap_scan=1 fast_reauth=1
> network={ ssid="" key_mgmt=NONE } [/code]
>
> /etc/conf.d/net [code] modules=("wpa_supplicant")
> wpa_supplicant_wlan0="-Dndiswrapper" config_wlan0=("dhcp") [/code]
>
> dmesg output [code] Apr  8 08:55:34 ender NetworkManager:
> <information>     starting... Apr  8 08:55:34 ender
> ADDRCONF(NETDEV_UP): eth0: link is not ready Apr  8 08:55:34 ender
> NetworkManager: <information>     eth0: Device is fully-supported
> using driver 'tg3'. Apr  8 08:55:34 ender NetworkManager:
> <information> nm_device_init(): waiting for device's worker thread
> to start Apr  8 08:55:34 ender NetworkManager: <information>
> nm_device_init(): device's worker thread started, continuing. Apr
> 8 08:55:34 ender NetworkManager: <information>     Now managing
> wired Ethernet (802.3) device 'eth0'. Apr  8 08:55:34 ender
> NetworkManager: <information>     Deactivating device eth0. Apr  8
> 08:55:34 ender ASSERT: CPU #0, raw comefrom(ffff81003e43a890) = 1
> Apr  8 08:55:34 ender ASSERT: CPU #0, mangle
> comefrom(ffff81003e43c890) = 1 Apr  8 08:55:34 ender ASSERT: CPU
> #0, filter comefrom(ffff81003e43ac90) = 2 Apr  8 08:55:34 ender
> NetworkManager: <information>     wlan0: Device is fully-supported
> using driver 'ndiswrapper'. Apr  8 08:55:34 ender NetworkManager:
> <information> nm_device_init(): waiting for device's worker thread
> to start Apr  8 08:55:34 ender NetworkManager: <information>
> nm_device_init(): device's worker thread started, continuing. Apr
> 8 08:55:34 ender NetworkManager: <information>     Now managing
> wireless (802.11) device 'wlan0'. Apr  8 08:55:34 ender
> NetworkManager: <information>     Deactivating device wlan0. Apr  8
> 08:57:07 ender NetworkManager: <information>     Updating allowed
> wireless network lists. Apr  8 08:57:07 ender NetworkManager:
> <WARNING> nm_dbus_get_networks_cb (): nm-dbus-nmi.c:522
> (nm_dbus_get_networks_cb): error received:
> org.freedesktop.NetworkManagerInfo.NoNetworks - There are no
> wireless networks stored.. Apr  8 08:57:16 ender NetworkManager:
> <debug info> [1144457836.458082]
> nm_device_802_11_wireless_get_activation_ap (): Forcing AP 'two'
> Apr  8 08:57:16 ender NetworkManager: <information>     User
> Switch: /org/freedesktop/NetworkManager/Devices/wlan0 / two Apr  8
> 08:57:16 ender NetworkManager: <information>     Deactivating
> device wlan0. Apr  8 08:57:18 ender NetworkManager: <information>
> Activated the DHCP daemon /sbin/dhcdbd with PID 14107. Apr  8
> 08:57:18 ender dhcdbd: Started up. Apr  8 08:57:19 ender dhcdbd:
> message_handler: message handler not found under
> /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.reason Apr  8
> 08:57:19 ender NetworkManager: <information>     Device wlan0
> activation scheduled... Apr  8 08:57:19 ender NetworkManager:
> <information>     Activation (wlan0) started... Apr  8 08:57:19
> ender NetworkManager: <information>     Activation (wlan0) Stage 1
> of 5 (Device Prepare) scheduled... Apr  8 08:57:19 ender
> NetworkManager: <information>     Activation (wlan0) Stage 1 of 5
> (Device Prepare) started... Apr  8 08:57:19 ender NetworkManager:
> <information>     Activation (wlan0) Stage 2 of 5 (Device
> Configure) scheduled... Apr  8 08:57:19 ender NetworkManager:
> <information>     Activation (wlan0) Stage 1 of 5 (Device Prepare)
> complete. Apr  8 08:57:19 ender NetworkManager: <information>
> Activation (wlan0) Stage 2 of 5 (Device Configure) starting... Apr
> 8 08:57:19 ender NetworkManager: <information>     Activation
> (wlan0/wireless): access point 'two' is unencrypted, no key needed.
>  Apr  8 08:57:20 ender NetworkManager: <information>     SUP:
> sending command 'INTERFACE_ADD wlan0               ndiswrapper
> /var/run/wpa_supplicant   ' Apr  8 08:57:20 ender NetworkManager:
> <information>     SUP: response was 'OK' Apr  8 08:57:20 ender
> NetworkManager: <information>     SUP: sending command 'AP_SCAN 1'
> Apr  8 08:57:20 ender NetworkManager: <information>     SUP:
> response was 'OK' Apr  8 08:57:20 ender NetworkManager:
> <information>     SUP: sending command 'ADD_NETWORK' Apr  8
> 08:57:20 ender NetworkManager: <information>     SUP: response was
> '0' Apr  8 08:57:20 ender NetworkManager: <information>     SUP:
> sending command 'SET_NETWORK 0 ssid 74776f' Apr  8 08:57:20 ender
> NetworkManager: <information>     SUP: response was 'OK' Apr  8
> 08:57:20 ender NetworkManager: <information>     SUP: sending
> command 'SET_NETWORK 0 key_mgmt NONE' Apr  8 08:57:20 ender
> NetworkManager: <information>     SUP: response was 'OK' Apr  8
> 08:57:20 ender NetworkManager: <information>     SUP: sending
> command 'ENABLE_NETWORK 0' Apr  8 08:57:20 ender NetworkManager:
> <information>     SUP: response was 'OK' Apr  8 08:57:20 ender
> NetworkManager: <information>     Activation (wlan0) Stage 2 of 5
> (Device Configure) complete. Apr  8 08:57:28 ender NetworkManager:
> <information>     wlan0: link timed out. Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Global control
> interface '/var/run/wpa_supplicant-global' Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): RX global
> ctrl_iface - hexdump_ascii(len=57): Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110):      49 4e 54
> 45 52 46 41 43 45 5f 41 44 44 20 77 6c   INTERFACE_ADD wl Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> 61 6e 30 09 09 6e 64 69 73 77 72 61 70 70 65 72   an0__ndiswrapper
> Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110):      09 2f 76 61 72 2f 72 75 6e 2f 77 70 61
> 5f 73 75   _/var/run/wpa_su Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110):      70 70 6c 69 63 61 6e 74
> 09                        pplicant_ Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): CTRL_IFACE
> GLOBAL INTERFACE_ADD 'wlan0           ndiswrapper
> /var/run/wpa_supplicant ' Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): Initializing interface 'wlan0'
> conf 'N/A' driver 'ndiswrapper' ctrl_interface
> '/var/run/wpa_supplicant' bridge 'N/A' Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Initializing
> interface (2) 'wlan0' Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): EAPOL: SUPP_PAE entering state
> DISCONNECTED Apr  8 08:57:30 ender NetworkManager: <information>
>  wpa_supplicant(14110): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
>  Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): EAPOL: SUPP_BE entering state INITIALIZE Apr
> 8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): EAP: EAP entering state DISABLED Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> EAPOL: External notification - portEnabled=0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): EAPOL:
> External notification - portValid=0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): SIOCGIWRANGE:
> WE(compiled)=19 WE(source)=18 enc_capa=0xf Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110):
> capabilities: key_mgmt 0xf enc 0xf Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Own MAC
> address: 00:14:a4:3c:d3:6e Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): y: alg=0 key_idx=0 set_tx=0
> seq_len=0 key_len=0 Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): wpa_driver_wext_set_key: alg=0
> key_idx=1 set_tx=0 seq_len=0 key_len=0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110):
> wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0
> key_len=0 Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): wpa_driver_wext_set_key: alg=0 key_idx=3
> set_tx=0 seq_len=0 key_len=0 Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): Setting scan request: 0 sec
> 100000 usec Apr  8 08:57:30 ender NetworkManager: <information>
>  wpa_supplicant(14110): Added interface wlan0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Wireless
> event: cmd=0x8b06 len=12 Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): RX ctrl_iface -
> hexdump_ascii(len=9): Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110):      41 50 5f 53 43 41 4e 20
> 31                        AP_SCAN 1 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): RX ctrl_iface
> - hexdump_ascii(len=11): Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110):      41 44 44 5f 4e 45 54 57
> 4f 52 4b                  ADD_NETWORK Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): CTRL_IFACE:
> ADD_NETWORK Apr  8 08:57:30 ender NetworkManager: <information>
>  wpa_supplicant(14110): RX ctrl_iface - hexdump_ascii(len=25):
> [REMOVED] Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): CTRL_IFACE: SET_NETWORK id=0 name='ssid' Apr
> 8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): CTRL_IFACE: value - hexdump_ascii(len=6):
> [REMOVED] Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): ssid - hexdump_ascii(len=3): Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110):      74
> 77 6f                                          two Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): RX
> ctrl_iface - hexdump_ascii(len=27): [REMOVED] Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): CTRL_IFACE:
> SET_NETWORK id=0 name='key_mgmt' Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): CTRL_IFACE:
> value - hexdump_ascii(len=4): [REMOVED] Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): key_mgmt: 0x4
> Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): mp_ascii(len=16): Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110):      45 4e 41
> 42 4c 45 5f 4e 45 54 57 4f 52 4b 20 30   ENABLE_NETWORK 0 Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> CTRL_IFACE: ENABLE_NETWORK id=0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Setting scan
> request: 0 sec 0 usec Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): State: DISCONNECTED ->
> SCANNING Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): Starting AP scan (broadcast SSID) Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> Trying to get current scan results first without requesting a new
> scan to speed up initial association Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Received 851
> bytes of scan results (4 BSSes) Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Scan results:
> 4 Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): Selecting BSS from priority group 0 Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> 0: 00:02:72:41:98:0d ssid='five' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
>  Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110):    skip - no WPA/RSN IE Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): 1:
> 00:02:72:41:96:af ssid='one' wpa_ie_len=0 rsn_ie_len=0 caps=0x1 Apr
> 8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110):    skip - no WPA/RSN IE Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): 2:
> 00:02:72:41:96:8d ssid='seven' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
> Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110):    skip - no WPA/RSN IE Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): 3:
> 00:02:72:41:98:1f ssid='two' wpa_ie_len=0 rsn_ie_len=0 caps=0x1 Apr
> 8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110):    skip - no WPA/RSN IE Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110):
> selected non-WPA AP 00:02:72:41:98:1f ssid='two' Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): Trying
> to associate with 00:02:72:41:98:1f (SSID='two' freq=2437 MHz) Apr
> 8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): Cancelling scan request Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): WPA:
> clearing own WPA/RSN IE Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): Automatic auth_alg selection:
> 0x1 Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): WPA: clearing AP WPA IE Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110): WPA:
> clearing AP RSN IE Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): WPA: clearing own WPA/RSN IE
> Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): No keys have been configured - skip key
> clearing Apr  8 08:57:30 ender NetworkManager: <information>
> wpa_supplicant(14110): State: SCANNING -> ASSOCIATING Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> Setting authentication timeout: 10 sec 0 usec Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): EAPOL:
> External notification - portControl=ForceAuthorized Apr  8 08:57:30
> ender NetworkManager: <information> wpa_supplicant(14110):
> CTRL_IFACE monitor attached - hexdump(len=41): 2f 76 61 72 2f 72 75
> 6e 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72 2f 77 70 61 5f 63
> 74 72 6c 5f 31 34 30 34 37 2d 31 00 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Wireless
> event: cmd=0x8b15 len=24 Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): Wireless event: new AP:
> 00:00:00:00:00:00 Apr  8 08:57:30 ender NetworkManager:
> <information> wpa_supplicant(14110): Added BSSID 00:00:00:00:00:00
> into blacklist Apr  8 08:57:30 ender NetworkManager: <information>
>  wpa_supplicant(14110): State: ASSOCIATING -> DISCONNECTED Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> EAPOL: External notification - portEnabled=0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): EAPOL:
> External notification - portValid=0 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110):
> CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys Apr  8
> 08:57:30 ender NetworkManager: <information> wpa_supplicant(14110):
> CTRL_IFACE monitor send - hexdump(len=41): 2f 76 61 72 2f 72 75 6e
> 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72 2f 77 70 61 5f 63 74
> 72 6c 5f 31 34 30 34 37 2d 31 00 Apr  8 08:57:30 ender
> NetworkManager: <information> wpa_supplicant(14110): Authentication
> with 00:00:00:00:00:00 timed out. Apr  8 08:57:40 ender
> NetworkManager: <information>     Activation (wlan0/wireless):
> association took too long (>20s), failing activation.Apr  8
> 08:57:40 ender NetworkManager: <information> Activation (wlan0)
> failure scheduled... Apr  8 08:57:40 ender NetworkManager:
> <information>     Activation (wlan0) failed for access point (two)
> Apr  8 08:57:40 ender NetworkManager: <information>     Activation
> (wlan0) failed. Apr  8 08:57:40 ender NetworkManager: <information>
> Deactivating device wlan0.
>
I've got no idea how vidalinux has things setup, but if you are using
the Gentopia overlay, please please please, update dhcp.  You should
be using dhcp 3.0.3-r6, as well as NetworkManager 0.6.2, the rest of
them, seem fine - not sure about ndiswrapper support though.  Where
are you pulling your packages from anyways?  It is always important to
know that part.  I've never talked to anyone from VidaLinux, although
if they wanna shoot me an email, more than happy to let them know.  On
a side note, the only thing currently barring me from getting NM into
portage itself, are the 2 patches required to dhcp (the one for the
extended options, and the patch to dhclient-script that dbusifies it
for dhcdbd)  I have talked with the Gentoo dhcp maintainer, and he
said that as long as I write a patch for the script for every platform
that dbus is on, then we should be good to go.

Side note for the list about that last sentence - what all platforms
will NetworkManager work on?  I was thinking only Linux, as I don't
believe hal works on other platforms, I know at least it doesn't on
OpenSolaris, but does it on any of the others?

- -- Steev
Gentopia Project
Gentoo Linux Developer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEPSBl1c+EtXTHkJcRAp+bAJ93oaoGI6GHPJau52IaZwGtWDuDnACeNXxA
Lp+d90Zy5PqTRz7SVdUUBIM=
=Ahmt
-----END PGP SIGNATURE-----




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