Excerpts from Thomas Bächler's message of 2011-09-28 13:14:06 +0200:
Am 28.09.2011 11:53, schrieb Philipp:
Hi there, I use netcfg for my university wlan (eduroam). It works fine for a while but after a couple of minutes I get disconnected and need to reconnect manually. I think that happens pretty regularly, so I assume that some kind of connection renewal doesn't work for some reason. Any idea what could be wrong, how to fix it or how to reconnect automatically?
No idea why this might go wrong. I suggest you use net-auto-wireless, that will handle everything gracefully.
I took some time today to fiddle with netcfg, ifplugd, net-auto-wireless and wpa_actiond. Your script, slightly modified, works fine in my case Thomas, thanks. Took me a bit to figure that it needs to replace ifplugd.action though. Now with net-auto-wireless before ifplugd in the daemons-array the system works fine (as long as I'm not too fast with unplugging and replugging). I get just cable at home and wireless at university, everything's fine, except that I still get disconnected from the university wlan about every 30 minutes. net-auto-wireless didn't change a thing in this regard. Here's an excerpt from everything.log, pretty beginning with bootup. The reconnects in there are from manually running '/etc/rc.d/net-auto-wireless restart', the thing that I tried to avoid. I have no idea why these disconnects happen: ----- Oct 8 12:03:34 localhost kernel: [ 11.539025] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio2/input/inp ut6 Oct 8 12:03:34 localhost kernel: [ 11.739452] [drm] initialized overlay support Oct 8 12:03:34 localhost kernel: [ 11.872555] fbcon: inteldrmfb (fb0) is primary device Oct 8 12:03:34 localhost kernel: [ 11.914034] fixme: max PWM is zero. Oct 8 12:03:34 localhost kernel: [ 11.918693] Console: switching to colour frame buffer device 160x50 Oct 8 12:03:34 localhost kernel: [ 11.922746] fb0: inteldrmfb frame buffer device Oct 8 12:03:34 localhost kernel: [ 11.922748] drm: registered panic notifier Oct 8 12:03:34 localhost kernel: [ 11.944380] acpi device:04: registered as cooling_device1 Oct 8 12:03:34 localhost kernel: [ 11.944990] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/inp ut/input7 Oct 8 12:03:34 localhost kernel: [ 11.945133] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) Oct 8 12:03:34 localhost kernel: [ 11.945475] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 Oct 8 12:03:34 localhost kernel: [ 12.341015] EXT4-fs (sda3): warning: maximal mount count reached, running e2fsck is recom mended Oct 8 12:03:34 localhost kernel: [ 12.422472] EXT4-fs (sda3): re-mounted. Opts: user_xattr,acl,barrier=1,nodelalloc,data=or dered Oct 8 12:03:34 localhost kernel: [ 12.480155] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) Oct 8 12:03:34 localhost kernel: [ 12.525213] Adding 2104508k swap on /dev/sda2. Priority:-1 extents:1 across:2104508k Oct 8 12:03:37 localhost wpa_actiond[907]: Starting wpa_actiond session for interface 'wlan0' Oct 8 12:03:38 localhost ifplugd(eth0)[942]: ifplugd 0.28 initializing. Oct 8 12:03:38 localhost kernel: [ 18.524010] tg3 0000:02:00.0: irq 45 for MSI/MSI-X Oct 8 12:03:38 localhost ifplugd(eth0)[942]: Using interface eth0/00:1D:72:CC:61:88 with driver <tg3> (version: 3.119) Oct 8 12:03:38 localhost ifplugd(eth0)[942]: Using detection mode: SIOCETHTOOL Oct 8 12:03:38 localhost ifplugd(eth0)[942]: Initialization complete, link beat not detected. Oct 8 12:03:38 localhost crond[1006]: /usr/sbin/crond 4.5 dillon's cron daemon, started with loglevel info Oct 8 12:03:38 localhost ntpd[1000]: ntpd 4.2.6p3@1.2290-o Sun Apr 3 17:50:25 UTC 2011 (1) Oct 8 12:03:38 localhost ntpd[1008]: proto: precision = 1.187 usec Oct 8 12:03:38 localhost kernel: [ 19.249394] NET: Registered protocol family 10 Oct 8 12:03:38 localhost kernel: [ 19.250412] ADDRCONF(NETDEV_UP): eth0: link is not ready Oct 8 12:03:38 localhost kernel: [ 19.280690] Oct 8 12:03:39 localhost ntpd[1008]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 Oct 8 12:03:39 localhost ntpd[1008]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 Oct 8 12:03:39 localhost ntpd[1008]: Listen and drop on 1 v6wildcard :: UDP 123 Oct 8 12:03:39 localhost ntpd[1008]: Listen normally on 2 lo 127.0.0.1 UDP 123 Oct 8 12:03:39 localhost ntpd[1008]: bind(19) AF_INET6 fe80::222:69ff:fe73:3c68%2#123 flags 0x11 failed: Cannot assign reques ted address Oct 8 12:03:39 localhost ntpd[1008]: unable to create socket on wlan0 (3) for fe80::222:69ff:fe73:3c68#123 Oct 8 12:03:39 localhost ntpd[1008]: failed to init interface for address fe80::222:69ff:fe73:3c68 Oct 8 12:03:39 localhost ntpd[1008]: Listen normally on 4 lo ::1 UDP 123 Oct 8 12:03:39 localhost ntpd[1008]: peers refreshed Oct 8 12:03:39 localhost wpa_actiond[907]: Interface 'wlan0' connected to network 'eduroam' Oct 8 12:03:40 localhost ntpd[1008]: Deferring DNS for pool.ntp.org 1 Oct 8 12:03:40 localhost ntpd[1045]: signal_no_reset: signal 17 had flags 4000000 Oct 8 12:03:40 localhost laptop-mode: Laptop mode Oct 8 12:03:40 localhost laptop-mode: enabled, not active Oct 8 12:03:40 localhost ntpd[1008]: bind(20) AF_INET6 fe80::222:69ff:fe73:3c68%2#123 flags 0x11 failed: Cannot assign reques ted address Oct 8 12:03:40 localhost ntpd[1008]: unable to create socket on wlan0 (5) for fe80::222:69ff:fe73:3c68#123 Oct 8 12:03:40 localhost ntpd[1008]: failed to init interface for address fe80::222:69ff:fe73:3c68 Oct 8 12:03:42 localhost ntpd_intres[1045]: host name not found: pool.ntp.org Oct 8 12:03:42 localhost dhcpcd[1376]: version 5.2.12 starting Oct 8 12:03:42 localhost dhcpcd[1376]: wlan0: rebinding lease of 192.168.0.140 Oct 8 12:03:42 localhost dhcpcd[1376]: wlan0: NAK: from 143.205.175.4 Oct 8 12:03:43 localhost dhcpcd[1376]: wlan0: broadcasting for a lease Oct 8 12:03:45 localhost dhcpcd[1376]: wlan0: offered 143.205.193.100 from 143.205.192.2 Oct 8 12:03:45 localhost dhcpcd[1376]: wlan0: ignoring offer of 143.205.192.218 from 143.205.192.3 Oct 8 12:03:45 localhost dhcpcd[1376]: wlan0: acknowledged 143.205.193.100 from 143.205.192.2 Oct 8 12:03:45 localhost dhcpcd[1376]: wlan0: checking for 143.205.193.100 Oct 8 12:03:49 localhost kernel: [ 30.256709] wlan0: no IPv6 routers present Oct 8 12:03:51 localhost dhcpcd[1376]: wlan0: leased 143.205.193.100 for 86400 seconds Oct 8 12:03:51 localhost dhcpcd[1376]: forked to background, child pid 1404 Oct 8 12:04:44 localhost ntpd_intres[1045]: DNS pool.ntp.org -> 86.59.113.114 Oct 8 12:04:44 localhost ntpd[1008]: Listen normally on 6 wlan0 143.205.193.100 UDP 123 Oct 8 12:04:44 localhost ntpd[1008]: Listen normally on 7 wlan0 fe80::222:69ff:fe73:3c68 UDP 123 Oct 8 12:04:44 localhost ntpd[1008]: peers refreshed Oct 8 12:04:44 localhost ntpd[1008]: new interface(s) found: waking up resolver Oct 8 12:05:01 localhost crond[1006]: FILE /var/spool/cron/root USER root PID 1592 job sys-hourly Oct 8 12:05:02 localhost crond[1006]: exit status 1 from user root job sys-hourly Oct 8 12:05:02 localhost crond[1593]: mailing cron output for user root job sys-hourly Oct 8 12:05:02 localhost crond[1593]: unable to exec /usr/sbin/sendmail: cron output for user root job sys-hourly to /dev/nul l Oct 8 12:23:34 localhost -- MARK -- Oct 8 12:34:14 localhost wpa_actiond[907]: Interface 'wlan0' lost connection to network 'eduroam' Oct 8 12:34:14 localhost dhcpcd[1404]: wlan0: carrier lost Oct 8 12:34:44 localhost wpa_actiond[907]: Interface 'wlan0' disconnected from network 'eduroam' Oct 8 12:34:44 localhost dhcpcd[2099]: sending signal 1 to pid 1404 Oct 8 12:34:44 localhost dhcpcd[1404]: received SIGHUP, releasing Oct 8 12:34:44 localhost dhcpcd[1404]: wlan0: removing interface Oct 8 12:34:44 localhost dhcpcd[2099]: waiting for pid 1404 to exit Oct 8 12:34:45 localhost ntpd[1008]: Deleting interface #7 wlan0, fe80::222:69ff:fe73:3c68#123, interface stats: received=0, sent=0, dropped=0, active_time=1800 secs Oct 8 12:34:45 localhost ntpd[1008]: Deleting interface #6 wlan0, 143.205.193.100#123, interface stats: received=28, sent=28, dropped=0, active_time=1800 secs Oct 8 12:34:45 localhost ntpd[1008]: 86.59.113.114 interface 143.205.193.100 -> (none) Oct 8 12:34:45 localhost ntpd[1008]: peers refreshed Oct 8 12:43:34 localhost -- MARK -- Oct 8 12:46:49 localhost wpa_actiond[907]: Terminating wpa_actiond session for interface 'wlan0' Oct 8 12:46:49 localhost kernel: [ 2608.732218] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready Oct 8 12:46:52 localhost wpa_actiond[2575]: Starting wpa_actiond session for interface 'wlan0' Oct 8 12:46:53 localhost kernel: [ 2612.995837] Oct 8 12:46:53 localhost wpa_actiond[2575]: Interface 'wlan0' connected to network 'eduroam' Oct 8 12:46:55 localhost dhcpcd[2597]: version 5.2.12 starting Oct 8 12:46:55 localhost dhcpcd[2597]: wlan0: rebinding lease of 143.205.193.100 Oct 8 12:46:55 localhost dhcpcd[2597]: wlan0: acknowledged 143.205.193.100 from 143.205.192.2 Oct 8 12:46:55 localhost dhcpcd[2597]: wlan0: checking for 143.205.193.100 Oct 8 12:46:59 localhost dhcpcd[2597]: wlan0: leased 143.205.193.100 for 86400 seconds Oct 8 12:46:59 localhost dhcpcd[2597]: forked to background, child pid 2624 Oct 8 12:47:02 localhost kernel: [ 2621.749785] wlan0: no IPv6 routers present Oct 8 12:49:45 localhost ntpd[1008]: Listen normally on 8 wlan0 143.205.193.100 UDP 123 Oct 8 12:49:45 localhost ntpd[1008]: Listen normally on 9 wlan0 fe80::222:69ff:fe73:3c68 UDP 123 Oct 8 12:49:45 localhost ntpd[1008]: peers refreshed Oct 8 12:49:45 localhost ntpd[1008]: new interface(s) found: waking up resolver Oct 8 13:03:34 localhost -- MARK -- Oct 8 13:05:01 localhost crond[1006]: FILE /var/spool/cron/root USER root PID 2779 job sys-hourly Oct 8 13:05:01 localhost crond[1006]: exit status 1 from user root job sys-hourly Oct 8 13:05:01 localhost crond[2780]: mailing cron output for user root job sys-hourly Oct 8 13:05:01 localhost crond[2780]: unable to exec /usr/sbin/sendmail: cron output for user root job sys-hourly to /dev/null Oct 8 13:07:16 localhost wpa_actiond[2575]: Interface 'wlan0' lost connection to network 'eduroam' Oct 8 13:07:16 localhost dhcpcd[2624]: wlan0: carrier lost Oct 8 13:07:46 localhost wpa_actiond[2575]: Interface 'wlan0' disconnected from network 'eduroam' Oct 8 13:07:46 localhost dhcpcd[2809]: sending signal 1 to pid 2624 Oct 8 13:07:46 localhost dhcpcd[2624]: received SIGHUP, releasing Oct 8 13:07:46 localhost dhcpcd[2624]: wlan0: removing interface Oct 8 13:07:46 localhost dhcpcd[2809]: waiting for pid 2624 to exit Oct 8 13:09:45 localhost ntpd[1008]: Deleting interface #9 wlan0, fe80::222:69ff:fe73:3c68#123, interface stats: received=0, sent=0, dropped=0, active_time=1200 secs Oct 8 13:09:45 localhost ntpd[1008]: Deleting interface #8 wlan0, 143.205.193.100#123, interface stats: received=16, sent=17, dropped=2, active_time=1200 secs Oct 8 13:09:45 localhost ntpd[1008]: 86.59.113.114 interface 143.205.193.100 -> (none) Oct 8 13:09:45 localhost ntpd[1008]: peers refreshed Oct 8 13:14:15 localhost wpa_actiond[2575]: Terminating wpa_actiond session for interface 'wlan0' Oct 8 13:14:15 localhost kernel: [ 4255.385430] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready Oct 8 13:14:18 localhost wpa_actiond[3075]: Starting wpa_actiond session for interface 'wlan0' Oct 8 13:14:20 localhost kernel: [ 4259.664834] Oct 8 13:14:20 localhost wpa_actiond[3075]: Interface 'wlan0' connected to network 'eduroam' Oct 8 13:14:22 localhost dhcpcd[3097]: version 5.2.12 starting Oct 8 13:14:22 localhost dhcpcd[3097]: wlan0: rebinding lease of 143.205.193.100 Oct 8 13:14:22 localhost dhcpcd[3097]: wlan0: acknowledged 143.205.193.100 from 143.205.192.2 Oct 8 13:14:22 localhost dhcpcd[3097]: wlan0: checking for 143.205.193.100 Oct 8 13:14:26 localhost dhcpcd[3097]: wlan0: leased 143.205.193.100 for 86400 seconds Oct 8 13:14:26 localhost dhcpcd[3097]: forked to background, child pid 3120 Oct 8 13:14:28 localhost kernel: [ 4268.242933] wlan0: no IPv6 routers present Oct 8 13:14:45 localhost ntpd[1008]: Listen normally on 10 wlan0 143.205.193.100 UDP 123 Oct 8 13:14:45 localhost ntpd[1008]: Listen normally on 11 wlan0 fe80::222:69ff:fe73:3c68 UDP 123 Oct 8 13:14:45 localhost ntpd[1008]: peers refreshed Oct 8 13:14:45 localhost ntpd[1008]: new interface(s) found: waking up resolver ----- Any ideas? Regards, Philipp