LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2012, 01:04 PM   #1
HRS1064
LQ Newbie
 
Registered: May 2012
Location: Riga, Latvia
Distribution: Debian
Posts: 13

Rep: Reputation: 0
Guessnet-ifupdown sees no device and then in some case founds it though


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:

Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#allow-hotplug eth0
mapping eth0
	script guessnet-ifupdown
	map verbose: true
	#autofilter: true
	map eth0-work
	map eth0-home	
iface eth0 inet static
	address 213.175.108.176
	netmask 255.255.255.0
	network 213.175.108.0
	broadcast 213.175.108.255
	gateway 213.175.108.254
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 213.175.108.2 195.13.129.5 91.198.156.20
	dns-search cfi.lu.lv
	test peer address 213.175.108.254 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 46.109.88.1
iface none inet dhcp
But when the script is run at startup by ifupdown, it outputs the following:

Code:
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 46.109.88.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 46.109.88.1
bound to 81.198.37.234 -- 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!

P. S.
uname -r output:
3.2.0-0.bpo.3-amd64
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).
 
Old 10-16-2012, 09:43 AM   #2
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE 13, Kernel 3.13.3
Posts: 122

Rep: Reputation: 47
Quote:
iface eth0 inet static
address 213.175.108.176
netmask 255.255.255.0
network 213.175.108.0
broadcast 213.175.108.255
gateway 213.175.108.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 213.175.108.2 195.13.129.5 91.198.156.20
dns-search cfi.lu.lv
test peer address 213.175.108.254 mac 58:8d:09:13:31:40
Just guessing, but shouldn't that read "iface eth0-work inet static"? Other than that, I would just verify that the IP address is allowed by the router and that it's not already in use by someone else. I am not familiar with guessnet, but with normal ifup, I thought that "broadcast" would be the hostname of your computer or any name you want to broadcast to the network and "network" would be the domain or possibly workgroup name.
 
Old 10-16-2012, 10:28 AM   #3
HRS1064
LQ Newbie
 
Registered: May 2012
Location: Riga, Latvia
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by purevw View Post
Just guessing, but shouldn't that read "iface eth0-work inet static"?
My shame It was indeed so some time ago. This syntax error appeared when I was trying to use one single configuration only (when at work), but that does not matter here. Nevertheless, fixing that error gives no help - "No such device" persists.

And actually internet did work via eth0 at work with all static settings listed - when I was using the laptop at work only (and the system was also installed at work with all static data entered that time). Problems started when I began to seech how to use internet both at work and at home.

Also, I could notice that "No such device" appears at home, too - where dhcp is present. So it seems to me there is no trouble with ifupdown settings...
 
Old 10-21-2012, 01:16 PM   #4
HRS1064
LQ Newbie
 
Registered: May 2012
Location: Riga, Latvia
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Possibly traced

Dealing with another problem, noticed such a message on rebuilding initrd:

W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169

So I will try to dig forward in this direction and report here, despite being a complete fool Maybe somebody else will ever had a similar problem.
 
Old 10-22-2012, 07:10 AM   #5
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE 13, Kernel 3.13.3
Posts: 122

Rep: Reputation: 47
If you haven't already found it,: http://www.realtek.com/Downloads/dow...&GetDown=false

Realtek lists many Linux drivers for your NIC. I assume that the proprietary driver would have it's own firmware. Hope this helps.
 
Old 10-22-2012, 01:39 PM   #6
HRS1064
LQ Newbie
 
Registered: May 2012
Location: Riga, Latvia
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Question

Thank you for the link, I have already installed these non-free firmware packages from Debian testing repository (and update-initramfs does not complain since), but - I am heavily puzzled The device had worked well with one static configuration before I decided to try guessnet. It works well when guessnet falls back to the "none" option and chooses dhcp. Why guessnet does not see it before ?!..

And what is interesting. If I add some dummy interface configuration (static) with "missing-cable" test, guessnet initially displays message "0 candidate profiles" and then... obviously selects the dummy profile (not the "none" profile), as there are no messages from DHCP client further.

So it seems to me that guessnet is the only program that has problem with managing my Ethernet controller... What should I do now?..
 
Old 11-03-2012, 11:37 AM   #7
HRS1064
LQ Newbie
 
Registered: May 2012
Location: Riga, Latvia
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Could anybody help me, please?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ndiswrapper sees device but noting happens. (Debian) werner291 Linux - Software 10 08-02-2013 09:22 AM
I can't find the ifupdown command htamayo Linux - Networking 1 11-27-2007 08:58 AM
Too many lost and founds manolakis Linux - Newbie 3 02-14-2007 02:06 PM
Suse 9.2 sees my WUSB54G as an unclassified device, why? elsmack Linux - Wireless Networking 1 03-18-2005 12:09 AM
RH9 sees ehthernet device, but won't connect? NiallC Linux - Networking 3 10-04-2003 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration