Package: guessnet Version: 0.55 Severity: normal The guessnet syslog logs are incomplete with hotplug, so that one doesn't know the ARP replies, nor which profile have been chosen.
See the following tests with the USB connection between my laptop and my Nokia N900. With the hotplug system, there is nothing after "3 candidates". By plugging in the USB cable: Aug 10 23:14:36 xvii kernel: [242588.232164] usb 2-2: new high-speed USB device number 19 using ehci_hcd Aug 10 23:14:36 xvii kernel: [242588.365619] usb 2-2: New USB device found, idVendor=0421, idProduct=01c8 Aug 10 23:14:36 xvii kernel: [242588.365629] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Aug 10 23:14:36 xvii kernel: [242588.365636] usb 2-2: Product: N900 (PC-Suite Mode) Aug 10 23:14:36 xvii kernel: [242588.365641] usb 2-2: Manufacturer: Nokia Aug 10 23:14:36 xvii kernel: [242588.370152] cdc_acm 2-2:1.6: This device cannot do calls on its own. It is not a modem. Aug 10 23:14:36 xvii kernel: [242588.370352] cdc_acm 2-2:1.6: ttyACM0: USB ACM device Aug 10 23:14:36 xvii kernel: [242588.373292] cdc_ether 2-2:1.8: usb0: register 'cdc_ether' at usb-0000:00:1d.7-2, CDC Ethernet Device, 3e:71:19:83:80:24 Aug 10 23:14:36 xvii mtp-probe: checking bus 2, device 19: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2" Aug 10 23:14:36 xvii mtp-probe: bus: 2, device: 19 was not an MTP device Aug 10 23:14:36 xvii guessnet[17553]: Added startable with priority 100 Aug 10 23:14:36 xvii guessnet[17553]: Added startable with priority 200 Aug 10 23:14:36 xvii guessnet[17553]: Added startable with priority 4294967295 Aug 10 23:14:36 xvii guessnet[17553]: Added startable with priority 4294967295 Aug 10 23:14:36 xvii guessnet[17553]: 2 candidates found in input Aug 10 23:14:36 xvii guessnet[17553]: Guessnet 0.54 starting... Aug 10 23:14:36 xvii guessnet[17553]: Trying MII detection Aug 10 23:14:36 xvii guessnet[17553]: Link beat detection (mii) failed: Operation not supported Aug 10 23:14:36 xvii guessnet[17553]: 0 candidate profiles Aug 10 23:14:36 xvii guessnet[17553]: Added "default" test usb0-dhcp Aug 10 23:14:36 xvii guessnet[17553]: Trying MII detection Aug 10 23:14:36 xvii guessnet[17553]: Interface usb0 was down: initializing for broadcast Aug 10 23:14:36 xvii guessnet[17553]: Trying MII detection Aug 10 23:14:36 xvii guessnet[17553]: Initialized test subsystems Aug 10 23:14:36 xvii guessnet[17553]: Starting all 3 startables Aug 10 23:14:36 xvii guessnet[17553]: Starting elements with priority 100 Aug 10 23:14:36 xvii kernel: [242588.440033] device usb0 entered promiscuous mode Aug 10 23:14:36 xvii guessnet[17553]: Starting elements with priority 200 Aug 10 23:14:36 xvii guessnet[17553]: Starting net sender Aug 10 23:14:36 xvii guessnet[17553]: Starting elements with priority 4294967295 Aug 10 23:14:36 xvii guessnet[17553]: Sending 10 ARP probes, 1 every second... Aug 10 23:14:36 xvii guessnet[17553]: Sending 10 ARP probes, 1 every second... Aug 10 23:14:36 xvii guessnet[17553]: Started tests Aug 10 23:14:36 xvii guessnet[17553]: 3 candidates Aug 10 23:14:38 xvii avahi-daemon[3083]: Joining mDNS multicast group on interface usb0.IPv6 with address fe80::3c71:19ff:fe83:8024. Aug 10 23:14:38 xvii avahi-daemon[3083]: New relevant interface usb0.IPv6 for mDNS. Aug 10 23:14:38 xvii avahi-daemon[3083]: Registering new address record for fe80::3c71:19ff:fe83:8024 on usb0.*. Aug 10 23:14:41 xvii avahi-daemon[3083]: Interface usb0.IPv6 no longer relevant for mDNS. Aug 10 23:14:41 xvii avahi-daemon[3083]: Leaving mDNS multicast group on interface usb0.IPv6 with address fe80::3c71:19ff:fe83:8024. Aug 10 23:14:41 xvii avahi-daemon[3083]: Withdrawing address record for fe80::3c71:19ff:fe83:8024 on usb0. Aug 10 23:14:41 xvii kernel: [242593.459614] device usb0 left promiscuous mode Aug 10 23:14:41 xvii dhclient: Internet Systems Consortium DHCP Client 4.2.4 [...] With "ifdown usb0" / "ifup usb0": Aug 10 23:16:31 xvii guessnet[17891]: Added startable with priority 100 Aug 10 23:16:31 xvii guessnet[17891]: Added startable with priority 200 Aug 10 23:16:31 xvii guessnet[17891]: Added startable with priority 4294967295 Aug 10 23:16:31 xvii guessnet[17891]: Added startable with priority 4294967295 Aug 10 23:16:31 xvii guessnet[17891]: 2 candidates found in input Aug 10 23:16:31 xvii guessnet[17891]: Guessnet 0.54 starting... Aug 10 23:16:31 xvii guessnet[17891]: Trying MII detection Aug 10 23:16:31 xvii guessnet[17891]: Link beat detection (mii) failed: Operation not supported Aug 10 23:16:31 xvii guessnet[17891]: 0 candidate profiles Aug 10 23:16:31 xvii guessnet[17891]: Added "default" test usb0-dhcp Aug 10 23:16:31 xvii guessnet[17891]: Trying MII detection Aug 10 23:16:31 xvii guessnet[17891]: Interface usb0 was down: initializing for broadcast Aug 10 23:16:31 xvii guessnet[17891]: Trying MII detection Aug 10 23:16:31 xvii guessnet[17891]: Initialized test subsystems Aug 10 23:16:31 xvii guessnet[17891]: Starting all 3 startables Aug 10 23:16:31 xvii guessnet[17891]: Starting elements with priority 100 Aug 10 23:16:31 xvii kernel: [242703.744088] device usb0 entered promiscuous mode Aug 10 23:16:32 xvii guessnet[17891]: Starting elements with priority 200 Aug 10 23:16:32 xvii guessnet[17891]: Starting net sender Aug 10 23:16:32 xvii guessnet[17891]: Starting elements with priority 4294967295 Aug 10 23:16:32 xvii guessnet[17891]: Sending 10 ARP probes, 1 every second... Aug 10 23:16:32 xvii guessnet[17891]: Sending 10 ARP probes, 1 every second... Aug 10 23:16:32 xvii guessnet[17891]: Started tests Aug 10 23:16:32 xvii guessnet[17891]: 3 candidates Aug 10 23:16:32 xvii guessnet[17891]: Got ARP reply from 192.168.2.15 36:0b:ba:01:38:68 Aug 10 23:16:32 xvii guessnet[17891]: Got ARP reply from 192.168.2.15 36:0b:ba:01:38:68 Aug 10 23:16:32 xvii guessnet[17891]: ARP reply from 192.168.2.15 36:0b:ba:01:38:68 matches Aug 10 23:16:32 xvii guessnet[17891]: Notified success of scan peer 192.168.2.15 36:0b:ba:01:38:68 Aug 10 23:16:32 xvii guessnet[17891]: Removing candidate eth0-home Aug 10 23:16:32 xvii guessnet[17891]: Keeping candidate usb0-n900 Aug 10 23:16:32 xvii guessnet[17891]: We had changes, notifying the listener Aug 10 23:16:32 xvii kernel: [242703.770424] device usb0 left promiscuous mode Aug 10 23:16:32 xvii dhclient: Internet Systems Consortium DHCP Client 4.2.4 [...] By plugging in the USB cable: Aug 10 23:17:35 xvii kernel: [242767.280329] usb 2-2: new high-speed USB device number 20 using ehci_hcd Aug 10 23:17:35 xvii kernel: [242767.415339] usb 2-2: New USB device found, idVendor=0421, idProduct=01c8 Aug 10 23:17:35 xvii kernel: [242767.415344] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Aug 10 23:17:35 xvii kernel: [242767.415347] usb 2-2: Product: N900 (PC-Suite Mode) Aug 10 23:17:35 xvii kernel: [242767.415350] usb 2-2: Manufacturer: Nokia Aug 10 23:17:35 xvii kernel: [242767.419195] cdc_acm 2-2:1.6: This device cannot do calls on its own. It is not a modem. Aug 10 23:17:35 xvii kernel: [242767.419364] cdc_acm 2-2:1.6: ttyACM0: USB ACM device Aug 10 23:17:35 xvii kernel: [242767.422260] cdc_ether 2-2:1.8: usb0: register 'cdc_ether' at usb-0000:00:1d.7-2, CDC Ethernet Device, 3e:71:19:83:80:24 Aug 10 23:17:35 xvii mtp-probe: checking bus 2, device 20: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2" Aug 10 23:17:35 xvii mtp-probe: bus: 2, device: 20 was not an MTP device Aug 10 23:17:35 xvii guessnet[18283]: Added startable with priority 100 Aug 10 23:17:35 xvii guessnet[18283]: Added startable with priority 200 Aug 10 23:17:35 xvii guessnet[18283]: Added startable with priority 4294967295 Aug 10 23:17:35 xvii guessnet[18283]: Added startable with priority 4294967295 Aug 10 23:17:35 xvii guessnet[18283]: 2 candidates found in input Aug 10 23:17:35 xvii guessnet[18283]: Guessnet 0.54 starting... Aug 10 23:17:35 xvii guessnet[18283]: Trying MII detection Aug 10 23:17:35 xvii guessnet[18283]: Link beat detection (mii) failed: Operation not supported Aug 10 23:17:35 xvii guessnet[18283]: 0 candidate profiles Aug 10 23:17:35 xvii guessnet[18283]: Added "default" test usb0-dhcp Aug 10 23:17:35 xvii guessnet[18283]: Trying MII detection Aug 10 23:17:35 xvii guessnet[18283]: Interface usb0 was down: initializing for broadcast Aug 10 23:17:35 xvii guessnet[18283]: Trying MII detection Aug 10 23:17:35 xvii guessnet[18283]: Initialized test subsystems Aug 10 23:17:35 xvii guessnet[18283]: Starting all 3 startables Aug 10 23:17:35 xvii guessnet[18283]: Starting elements with priority 100 Aug 10 23:17:35 xvii kernel: [242767.484271] device usb0 entered promiscuous mode Aug 10 23:17:35 xvii guessnet[18283]: Starting elements with priority 200 Aug 10 23:17:35 xvii guessnet[18283]: Starting net sender Aug 10 23:17:35 xvii guessnet[18283]: Starting elements with priority 4294967295 Aug 10 23:17:35 xvii guessnet[18283]: Sending 10 ARP probes, 1 every second... Aug 10 23:17:35 xvii guessnet[18283]: Sending 10 ARP probes, 1 every second... Aug 10 23:17:35 xvii guessnet[18283]: Started tests Aug 10 23:17:35 xvii guessnet[18283]: 3 candidates Aug 10 23:17:36 xvii avahi-daemon[3083]: Joining mDNS multicast group on interface usb0.IPv6 with address fe80::3c71:19ff:fe83:8024. Aug 10 23:17:36 xvii avahi-daemon[3083]: New relevant interface usb0.IPv6 for mDNS. Aug 10 23:17:36 xvii avahi-daemon[3083]: Registering new address record for fe80::3c71:19ff:fe83:8024 on usb0.*. Aug 10 23:17:40 xvii avahi-daemon[3083]: Interface usb0.IPv6 no longer relevant for mDNS. Aug 10 23:17:40 xvii avahi-daemon[3083]: Leaving mDNS multicast group on interface usb0.IPv6 with address fe80::3c71:19ff:fe83:8024. Aug 10 23:17:40 xvii avahi-daemon[3083]: Withdrawing address record for fe80::3c71:19ff:fe83:8024 on usb0. Aug 10 23:17:40 xvii kernel: [242772.505944] device usb0 left promiscuous mode Aug 10 23:17:40 xvii dhclient: Internet Systems Consortium DHCP Client 4.2.4 [...] With "ifdown usb0" / "ifup usb0": Aug 10 23:31:02 xvii guessnet[19362]: Added startable with priority 100 Aug 10 23:31:02 xvii guessnet[19362]: Added startable with priority 200 Aug 10 23:31:02 xvii guessnet[19362]: Added startable with priority 4294967295 Aug 10 23:31:02 xvii guessnet[19362]: Added startable with priority 4294967295 Aug 10 23:31:02 xvii guessnet[19362]: 2 candidates found in input Aug 10 23:31:02 xvii guessnet[19362]: Guessnet 0.54 starting... Aug 10 23:31:02 xvii guessnet[19362]: Trying MII detection Aug 10 23:31:02 xvii guessnet[19362]: Link beat detection (mii) failed: Operation not supported Aug 10 23:31:02 xvii guessnet[19362]: 0 candidate profiles Aug 10 23:31:02 xvii guessnet[19362]: Added "default" test usb0-dhcp Aug 10 23:31:02 xvii guessnet[19362]: Trying MII detection Aug 10 23:31:02 xvii guessnet[19362]: Interface usb0 was down: initializing for broadcast Aug 10 23:31:02 xvii guessnet[19362]: Trying MII detection Aug 10 23:31:02 xvii guessnet[19362]: Initialized test subsystems Aug 10 23:31:02 xvii guessnet[19362]: Starting all 3 startables Aug 10 23:31:02 xvii guessnet[19362]: Starting elements with priority 100 Aug 10 23:31:02 xvii guessnet[19362]: Starting elements with priority 200 Aug 10 23:31:02 xvii kernel: [243574.184145] device usb0 entered promiscuous mode Aug 10 23:31:02 xvii guessnet[19362]: Starting net sender Aug 10 23:31:02 xvii guessnet[19362]: Starting elements with priority 4294967295 Aug 10 23:31:02 xvii guessnet[19362]: Sending 10 ARP probes, 1 every second... Aug 10 23:31:02 xvii guessnet[19362]: Sending 10 ARP probes, 1 every second... Aug 10 23:31:02 xvii guessnet[19362]: Started tests Aug 10 23:31:02 xvii guessnet[19362]: 3 candidates Aug 10 23:31:02 xvii guessnet[19362]: Got ARP reply from 192.168.2.15 36:0b:ba:01:38:68 Aug 10 23:31:02 xvii guessnet[19362]: Got ARP reply from 192.168.2.15 36:0b:ba:01:38:68 Aug 10 23:31:02 xvii guessnet[19362]: ARP reply from 192.168.2.15 36:0b:ba:01:38:68 matches Aug 10 23:31:02 xvii guessnet[19362]: Notified success of scan peer 192.168.2.15 36:0b:ba:01:38:68 Aug 10 23:31:02 xvii guessnet[19362]: Removing candidate eth0-home Aug 10 23:31:02 xvii guessnet[19362]: Keeping candidate usb0-n900 Aug 10 23:31:02 xvii guessnet[19362]: We had changes, notifying the listener Aug 10 23:31:02 xvii kernel: [243574.195931] device usb0 left promiscuous mode Aug 10 23:31:02 xvii dhclient: Internet Systems Consortium DHCP Client 4.2.4 [...] I've attached my /etc/network/interfaces file. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages guessnet depends on: ii libc6 2.13-35 ii libgcc1 1:4.7.1-6 ii libiw30 30~pre9-8 ii libnet1 1.1.4-2.1 ii libpcap0.8 1.3.0-1 ii libstdc++6 4.7.1-6 guessnet recommends no packages. Versions of packages guessnet suggests: pn ifplugd <none> pn pppoe <none> -- no debconf information
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The eth0 interface will be automatically brought up by netplugd # (from the netplug package) when an Ethernet connection is detected. # Thus, do not use auto for eth0, otherwise a DHCP client will be # started, yielding timeouts. auto lo # The loopback network interface iface lo inet loopback # Note: Using the full path for the script command is safer because # ifup can be executed by various scripts (e.g. /etc/netplug/netplug, # which uses its own $PATH). Moreover, the guessnet(8) man page says: # # Please note that you have to specify the fully qualified path to # guessnet (/usr/sbin/guessnet-ifupdown), as otherwise it won't be # run at system boot, as /usr/sbin is not on PATH of networking # init script any more. # # However this doesn't apply in my case, as eth0 isn't handled by the # networking init script here (see above about "auto"). # mapping eth0 script /usr/sbin/guessnet-ifupdown map syslog: true map default: eth0-dhcp map debug: true map timeout: 10 iface eth0-dhcp inet dhcp iface eth0-home inet static address 192.168.0.8 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 test peer address 192.168.0.1 mac 00:00:C5:B4:98:74 up sed -i 's/.*[[:space:]]n900\./192.168.0.9\tn900./' /etc/hosts # To use the Nokia N900 as a USB router. allow-hotplug usb0 mapping usb0 script /usr/sbin/guessnet-ifupdown map syslog: true map default: usb0-dhcp map debug: true iface usb0-dhcp inet dhcp # Warning! the MAC address of the usb0 interface of the N900 can change! iface usb0-n900 inet dhcp test peer address 192.168.2.15 mac 36:0B:BA:01:38:68 up sed -i 's/.*[[:space:]]n900\./192.168.2.15\tn900./' /etc/hosts down sed -i 's/.*[[:space:]]n900\./192.168.0.9\tn900./' /etc/hosts # $Id: interfaces 54073 2012-08-10 21:13:50Z vinc17/xvii $