Automatically connect Wireless AdHoc network



Hi,

i want to connect automatically to a AdHoc network but it does not work. My system-connection looks like:

### BEGIN Wireless-AdHoc ###
[connection]
id=Wireless-AdHoc
uuid=cabfaf9e-4043-4afb-8506-0e6f4a225636
type=802-11-wireless
autoconnect=true
timestamp=0

[802-11-wireless-security]
key-mgmt=none
wep-tx-keyidx=0
wep-key0=0123456789abcdef0123456789
wep-key-type=0

[ipv4]
method=link-local
ignore-auto-routes=false
ignore-auto-dns=false
dhcp-send-hostname=false
never-default=false

[802-11-wireless]
ssid=116;101;115;116;97;100;104;111;99;
mode=adhoc
channel=0
rate=0
tx-power=0
mtu=0
security=802-11-wireless-security
### END Wireless-AdHoc ###


File Permisson is 600:

$ ls -al /etc/NetworkManager/system-connections/|grep Wireless
-rw------- 1 root root  489 May 10 15:44 Wireless-AdHoc


Settings looks like:

$ cat /etc/NetworkManager/nm-system-settings.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false


NM-Debug is:


$ sudo NetworkManager --no-daemon
NetworkManager: <info>  starting...
NetworkManager: <info>  modem-manager is now available
NetworkManager:    SCPlugin-Ifupdown: init!
NetworkManager:    SCPlugin-Ifupdown: update_system_hostname
NetworkManager:    SCPluginIfupdown: management mode: unmanaged
NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:19.0/net/eth0, iface: eth0)
NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:19.0/net/eth0, iface: eth0): no ifupdown configuration found.
NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0, iface: wlan0)
NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0, iface: wlan0): no ifupdown configuration found.
NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-2/3-2.1/3-2.1:1.0/net/wlan1, iface: wlan1)
NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-2/3-2.1/3-2.1:1.0/net/wlan1, iface: wlan1): no ifupdown configuration found.
NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.7/net/usb0, iface: usb0)
NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.7/net/usb0, iface: usb0): no ifupdown configuration found.
NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/pan0, iface: pan0)
NetworkManager:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/pan0, iface: pan0): no ifupdown configuration found.
NetworkManager:    SCPlugin-Ifupdown: end _init.
NetworkManager: Loaded plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list.
NetworkManager: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
NetworkManager: <info>  Found wlan radio killswitch rfkill3 (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill3) (driver <unknown>)
NetworkManager: <info>  Found wlan radio killswitch rfkill4 (at /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-2/3-2.1/3-2.1:1.0/ieee80211/phy1/rfkill4) (driver <unknown>)
NetworkManager: <info>  Found wwan radio killswitch rfkill2 (at /sys/devices/platform/thinkpad_acpi/rfkill/rfkill2) (driver thinkpad_acpi)
NetworkManager: <info>  WiFi enabled by radio killswitch; enabled by state file
NetworkManager: <info>  WWAN enabled by radio killswitch; disabled by state file
NetworkManager:    SCPlugin-Ifupdown: (151628064) ... get_connections.
NetworkManager:    SCPlugin-Ifupdown: (151628064) ... get_connections (managed=false): return empty list.
NetworkManager:    Ifupdown: get unmanaged devices count: 0
NetworkManager: <info>  (eth0): carrier is ON
NetworkManager: <info>  (eth0): new Ethernet device (driver: 'e1000e')
NetworkManager: <info>  (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
NetworkManager: <info>  (eth0): now managed
NetworkManager: <info>  (eth0): device state change: 1 -> 2 (reason 41)
NetworkManager: <info>  (eth0): preparing device.
NetworkManager: <info>  Activation (eth0) starting connection 'Auto eth0'
NetworkManager: <info>  (eth0): device state change: 2 -> 7 (reason 0)
NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
NetworkManager: <info>  (wlan0): driver supports SSID scans (scan_capa 0x01).
NetworkManager: <info>  (wlan0): new 802.11 WiFi device (driver: 'iwlagn')
NetworkManager: <info>  (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1
NetworkManager: <info>  (wlan0): now managed
NetworkManager: <info>  (wlan0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info>  (wlan0): bringing up device.
NetworkManager: <info>  (wlan0): preparing device.
NetworkManager: <info>  (wlan0): deactivating device (reason: 2).
NetworkManager: <info>  (wlan1): driver supports SSID scans (scan_capa 0x01).
NetworkManager: <info>  (wlan1): new 802.11 WiFi device (driver: 'rt73usb')
NetworkManager: <info>  (wlan1): exported as /org/freedesktop/NetworkManager/Devices/2
NetworkManager: <info>  (wlan1): now managed
NetworkManager: <info>  (wlan1): device state change: 1 -> 2 (reason 2)
NetworkManager: <info>  (wlan1): bringing up device.
-- Error received: No such file or directory
-- Original message: type=0x13 length=32 flags=<REQUEST,ACK> sequence-nr=1273569334 pid=4207602
NetworkManager: <info>  (wlan1): deactivating device (reason: 2).
NetworkManager: <info>  (usb0): carrier is OFF
NetworkManager: <info>  (usb0): new Ethernet device (driver: 'cdc_ether')
NetworkManager: <info>  (usb0): exported as /org/freedesktop/NetworkManager/Devices/3
NetworkManager: <info>  (usb0): now managed
NetworkManager: <info>  (usb0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info>  (usb0): bringing up device.
NetworkManager: <info>  (usb0): preparing device.
NetworkManager: <info>  (usb0): deactivating device (reason: 2).
NetworkManager: Added default wired connection 'Auto usb0' for /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.7/net/usb0
NetworkManager: <WARN>  device_creator(): /sys/devices/virtual/net/pan0: couldn't determine device driver; ignoring...
/sbin/ifup: interface lo already configured
NetworkManager: <info>  (usb0): now unmanaged
NetworkManager: <info>  (usb0): device state change: 2 -> 1 (reason 36)
NetworkManager: <info>  (usb0): cleaning up...
NetworkManager: <info>  (usb0): taking down device.
NetworkManager: <info>  (usb0): new GSM device (driver: 'cdc_ether')
NetworkManager: <info>  (usb0): exported as /org/freedesktop/NetworkManager/Devices/4
NetworkManager: <info>  (usb0): now managed
NetworkManager: <info>  (usb0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info>  (usb0): deactivating device (reason: 2).
NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
NetworkManager: <info>  Activation (eth0) Beginning DHCP transaction (timeout in 45 seconds)
NetworkManager: <info>  dhclient started with pid 13314
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP6 Configure Get) scheduled...
NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
NetworkManager: <info>  (usb0): device state change: 2 -> 3 (reason 0)
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP6 Configure Get) started...
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP6 Configure Get) complete.
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

NetworkManager: <info>  DHCP: device eth0 state changed (null) -> preinit
NetworkManager: <info>  (wlan0): supplicant interface state:  starting -> ready
NetworkManager: <info>  (wlan0): device state change: 2 -> 3 (reason 42)
NetworkManager: <info>  (wlan1): supplicant interface state:  starting -> ready
NetworkManager: <info>  (wlan1): device state change: 2 -> 3 (reason 42)
Listening on LPF/eth0/00:24:7e:da:2c:d1
Sending on   LPF/eth0/00:24:7e:da:2c:d1
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.12.1
bound to 192.168.12.24 -- renewal in 1739186 seconds.
NetworkManager: <info>  DHCP: device eth0 state changed preinit -> reboot
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled...
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started...
NetworkManager: <info>    address 192.168.12.24
NetworkManager: <info>    prefix 24 (255.255.255.0)
NetworkManager: <info>    gateway 192.168.12.111
NetworkManager: <info>    nameserver '192.168.12.1'
NetworkManager: <info>    nameserver '192.168.12.3'
NetworkManager: <info>    domain name 'Ammonoidea.Ammonit.de'
NetworkManager: <info>    wins '192.168.12.1'
NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete.
NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
NetworkManager: <info>  (eth0): device state change: 7 -> 8 (reason 0)
NetworkManager: <info>  Policy set 'Auto eth0' (eth0) as default for routing and DNS.
NetworkManager: <info>  Activation (eth0) successful, device activated.
NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.



Any ideas?

Cheers,

Tom




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