View previous topic :: View next topic |
Author |
Message |
wazoo42 Apprentice
Joined: 13 Apr 2004 Posts: 165
|
Posted: Sat Apr 08, 2006 2:31 pm Post subject: network manager fails with eth0 & wlan0 (different error |
|
|
EDIT 4/11/06: I tried my wired connection again and have gotten it to the point where it has the same problem that the wireless has. It looks for a dhcp server, it doesn't find one, so it falls back to zeroconf. I have gotten unmerged dhcpcd completely, and I can bring both interfaces up manually just fine, but nm can't seem to find the dhcp server.
First, an overview of my system, I have an acer ferrari 4005 with the tg3 lan build in to the 2.6.16 kernel and I am using ndiswrapper with the wpa_supplicant (only for nm) for my wireless (broadcom 4318). Both get their IPs from dhcp and the wireless has no authentication (It's the setup somebody chose at the lab I'm doing research at, not my own choice). I figured this would be a good time to get this setup as no authentication should make things easier, right? Here are the program versions:
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
|
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
}
|
/etc/conf.d/net
Code: |
modules=("wpa_supplicant")
wpa_supplicant_wlan0="-Dndiswrapper"
config_wlan0=("dhcp")
|
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.
|
Last edited by wazoo42 on Tue Apr 11, 2006 8:09 am; edited 1 time in total |
|
Back to top |
|
|
wazoo42 Apprentice
Joined: 13 Apr 2004 Posts: 165
|
Posted: Sun Apr 09, 2006 2:07 pm Post subject: |
|
|
I guess I'll start with an easier question. Has anybody gotten nm working on amd64? If so, did you have to do anything special? |
|
Back to top |
|
|
wazoo42 Apprentice
Joined: 13 Apr 2004 Posts: 165
|
Posted: Tue Apr 11, 2006 8:07 am Post subject: |
|
|
I edited the above to include what I found for the wired connection, eth0. |
|
Back to top |
|
|
|
|
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
|
|