LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2016, 01:48 PM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Rep: Reputation: 174Reputation: 174
My Network Interface Is Borked!


First: I had a stroke a few years ago, and I am a perpetual dumba$$... Sorry...

Well. it is my fault.

I did a reinstall of Debian Stable. And it asked for a firmware blob, which I had downloaded from Debian, that I put on a flash drive. For some reason, it refused to autoconfigure DHCP. I said "ignore it, I will fix it later".

Well, it is later and I have no internet access. He!!, I cannot even connect to my own modem!

So, I have been fighting with this since Saturday night, and I cannot know how to configure my eth0 interface, and yes, it is eth0.

Can anyone offer me a suggestion of what to do?

Please!

Thank you for your help.

{{PS: I have already messed with /etc/network/interfaces, ifdown eth0, ifup eth0, and I do have all of the relevant bits from debian. I just don't know how to use these things to get this eth0 interface working.}}
 
Old 09-12-2016, 02:10 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This manual setup works with any distro, of course, it will not survive reboot.
 
Old 09-12-2016, 02:15 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
What kind of install did you do? If you installed one of the desktop environments, it should have also installed networkmanager and a frontend for it that you can use.
 
Old 09-12-2016, 05:17 PM   #4
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Original Poster
Rep: Reputation: 174Reputation: 174
First: thank you, Emerson. I am using a live CD (SPIT (Fedora)) and have saved it on a flash drive. I will give it an attempt.

Second: I had tried a netinstall, then I downloaded, and burned, a three dvd disk set. Same thing happened, or didn't happen.... BLAH!!!

I have, as usual, installed XFCE and KDE, and when I get this internet/DHCP nonsense straightened out, I will be adding Fluxbox.

ALSO:

While I get no error in "ifconfig -v eth0 up/down" it still doesn't work.

I will continue working on this...
 
Old 09-12-2016, 05:37 PM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
What hardware are you using? What ethernet devices show up (if any) with the following commands?

Code:
lspci
lsusb
ip link list
ip addr list
Thanks!

I'm just confused because you mention a firmware blob, but my experience is that usually the wired ethernet adapter does NOT require a firmware blob. WiFi is different, and I often get the Debian installer asking for a firmware blob for that. (I never bother with it. I install with wired ethernet and use apt-get afterward if necessary to get wifi working.)
 
Old 09-12-2016, 06:10 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Realtek r8169 driver tries to load firmware when used with 8168 hardware, but works even without blob.
 
Old 09-12-2016, 06:25 PM   #7
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Original Poster
Rep: Reputation: 174Reputation: 174
IsaacKuo: I will check on that and tell you later.

Yes, I have a damnable driver, and prior to this reinstall, it HAD worked until Friday's nightmare. (I had initially used (spit) Fedora, but after it crashed and had to reinstall it, I decided that Debian is my best option, and thus started my Saturday night "fun").

It may have worked in the past, but it doesn't work now..... unless my computer guy put a different chip set in my computer "for" me, but it isn't on the work order. I will ask him tomorrow.
 
Old 09-12-2016, 09:00 PM   #8
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Original Poster
Rep: Reputation: 174Reputation: 174
IsaacKuo: OK, it may not be a firmware blob, but in the Debian repository it is labelled as a"Binary firmware for Realtek wired and wireless network adapters" and the particular thing had attempted to install is called "rtl_nic/rtl8168g-2.fw".

So, I don't know what it is, but the installer told me that I should install it via a flash drive. It didn't accept it, but I installed it after the system was up and running.
 
Old 09-12-2016, 09:13 PM   #9
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Original Poster
Rep: Reputation: 174Reputation: 174
Deleted because I have a better output later

Last edited by kevinbenko; 09-14-2016 at 10:11 AM.
 
Old 09-12-2016, 09:20 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OK, you have public IP address, no NAT router between you and the net. Meaning you cannot set up the IP address by hand, you must use DHCP. Which seems to be working, you got the IP address. What's in /etc/resolv.conf?
 
Old 09-12-2016, 09:23 PM   #11
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by kevinbenko View Post
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
[...]
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 40:8d:5c:8d:fc:75 brd ff:ff:ff:ff:ff:ff
[...]
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 40:8d:5c:8d:fc:75 brd ff:ff:ff:ff:ff:ff
inet 72.24.169.187/24 brd 72.24.169.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::428d:5cff:fe8d:fc75/64 scope link
valid_lft forever preferred_lft forever
Huh. Well, it looks like the required module is present, loaded, and functional. Not only that, but eth0 appears to be up and has an ip address. Unless you manually configured a static IP setup, it must surely have gotten it via DHCP.

But you say you're not able to connect to the internet? My next guess is to look at /etc/resolv.conf to find out what nameserver(s) the OS is attempting to use. The DHCP server might not be configured properly to feed the client a good nameserver to use, or the OS might have something funny going on where an old nameserver is "stuck".

For example, I've had weird things happen where I started a machine off connected to another computer using "Shared to Other computers"; /etc/resolv.conf was populated (correctly) with "nameserver 10.42.0.1". But this setting seemed to get "stuck" so it was still in place even later when I connected up to a different DHCP server.

I manually edited /etc/resolv.conf to the IP address of the currently attached gateway and my problems went away.
 
1 members found this post helpful.
Old 09-12-2016, 09:27 PM   #12
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
If you have no idea what the IP address of your currently attached gateway is, you can guess it from the results of

Code:
ip neigh list
This will list ip neighbors which have tried to connect to your computer or which your computer has tried to connect to. This will likely be a pretty short list, including the DHCP server (which is likely the gateway you need).
 
1 members found this post helpful.
Old 09-13-2016, 09:07 AM   #13
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Original Poster
Rep: Reputation: 174Reputation: 174
Quick reply to Emerson: I am connected to a router, not directly to the modem. The only thing else is a wireless modem, but WiFi has an inherent upper speed, whereas a wired modem is much faster... I want faster.

I was experimenting with a static, but as of this morning, I switched it back to DHCP.

PS: when I used, I think, "/etc/init.d/dsnmasq restart" it responded with "fail" or "failure"

Also: (spit) Fedora has a connection, as I have installed a small install of (spit) Fedora. However, neither Debian, Ubuntu, nor Mint have an internet connection. It could be an inherent problem with Debian-based kernels, and the last successful kernel compilation was in early 2011, before my stroke. Every attempt at a kernel compilation has resulted in a "kernel panic".

I will get back with that /etc/resolve.conf in about an hour or so.
 
Old 09-13-2016, 09:16 AM   #14
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I'm lost now, if you are behind a router how comes your NIC has public IP address?
 
Old 09-13-2016, 09:26 AM   #15
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 627

Original Poster
Rep: Reputation: 174Reputation: 174
As an aside... in 2005, I had been distro-hopping and I chose to stick with Debian in mid 2005. It was, ultimately, either Debian or Slackware.

Should I give Slackware a try, see if I have internet connection, and go from there?
Or maybe I should try Arch.

I have had a stroke in 2011, and I am unable to work, unable to get hired. I use the internet to occupy myself. I play an MMORPG called Ryzom, and I use Steam. Steam is a bit "chunky" on (spit) Fedora. Maybe it is the Debian-based kernels. Perhaps if I try Slackware of Arch it will work.

Just saying....
 
  


Reply



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
renaming p1p5 to eth0 borked network mcai8rw2 Linux - Networking 10 07-09-2014 04:07 PM
[SOLVED] Connman borked my Network cov Linux - Networking 3 07-18-2012 03:50 PM
How to prevent auto up an interface at /etc/network/interface file ? Joydeep Bakshi Linux - Networking 8 07-28-2011 02:43 AM
How NET_TX_SOFTIRQ select network interface when multiple interface exits Mr.J Linux - Kernel 0 06-02-2009 11:17 AM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:38 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
Open Source Consulting | Domain Registration