I have my /etc/network/interfaces configured for multiple interface profiles to be chosen by guessnet script. That's because I want to use my laptop both at work (static address) and at home (dhcp). The file looks like so:
# The loopback network interface
iface lo inet loopback
# The primary network interface
map verbose: true
iface eth0 inet static
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 18.104.22.168 22.214.171.124 126.96.36.199
test peer address 188.8.131.52 mac 58:8d:09:13:31:40
iface eth0-home inet dhcp
#actually don't know how to check dhcp, but it will automatically fall back to the none :)
test peer address 184.108.40.206
iface none inet dhcp
But when the script is run at startup by ifupdown, it outputs the following:
guessnet: Link beat detection (mii) failed: No such device
guessnet: 0 candidate profiles
guessnet: Interface eth0 was down: initializing for broadcast
guessnet: Sending 10 ARP probes, 1 every second...
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/04:7d:7b:8d:5a:23
Sending on LPF/eth0/04:7d:7b:8d:5a:23
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPOFFER from 220.127.116.11
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 18.104.22.168
bound to 22.214.171.124 -- renewal in 1688 seconds.
That's the case if I try to invoke the interface at home - script falls back to "none" and manages to configure eth0. But when I am at work this, of course, do not work. What could be the reason? Thanks in advance!
uname -r output:
I am on Debian 6.0.5; the laptop model is Lenovo IdeaPad Z580A. Ethernet controller is: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05) (output from lspci).