LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-01-2016, 12:20 PM   #1
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Rep: Reputation: Disabled
Question Debian Networking Troubles


I have a 6 year-old desktop on which I've been running Debian.

I updated the OS about 10 days and then was too busy to get on the machine until yesterday.
But I was trying to log back in yesterday and the machine seems to have lost our home network. The network settings just say, "Connecting..." and yet is not doing so.

The machine is plugged in with an ethernet cable and thus is not bothered by these issues of linux running on a WiFI enabled device.

Thoughts for troubleshooting?
Thank you,

J.
 
Old 05-01-2016, 12:59 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
You need to find out where things are going wrong. I suggest a few simple tests.

1. Use dmesg|more to check that the kernel is still setting up your card correctly.

2. Look in /sys/class/net to see what the interface is called. Some distros are switching from the old eth0 nomenclature to one based on bus address. For example Crux now calls my ethernet card enp0s25. If your configuration files are set to the old name and that name has changed, the network won't come up.

3. /sbin/ip link show will also provide useful information.

4. Check both ends of your ethernet cable! Sounds corny but sometimes it works.

Last edited by hazel; 05-01-2016 at 01:00 PM.
 
Old 05-01-2016, 05:33 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,985

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
https://wiki.debian.org/NetworkConfiguration may provide some clues too.
 
Old 05-02-2016, 07:31 AM   #4
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thank you both for your suggestions.

I will dig into it tonight and come back if I don't find a solution.

J.
 
Old 05-02-2016, 05:56 PM   #5
zOSGuy
LQ Newbie
 
Registered: Sep 2010
Location: Central NY, USA
Distribution: Debian
Posts: 27

Rep: Reputation: 0
Look at NM

I'm guessing you have a static network setup.
When Wheezy came out Network Manager started taking a very active role in managing network connections, and it killed me in my static network setup- any wired connection got brought down and then restarted as DHCP. I was just killing NM-applet soon after boot and resetting the connections to what I needed. You need to look up the Network Manager tutorial and set the connections up in it. In the meantime, try killing the NM-applet process, ifdown the nic (eth0,1,whatever), make sure the definitions are correct for your network in /etc/network/interfaces, and then ifup the nic. I suspect your home network will have returned.
 
Old 05-02-2016, 08:40 PM   #6
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Original Poster
Rep: Reputation: Disabled
Well, in /etc/network/interfaces

I see: source /etc/network/inerfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback

I checked the ethernet cable (looking perfectly fine on both ends).
I did notice that when I unplugged it from the machine, the notification changed (which means it is recognizing the cable) - but is still not connecting.

While reading, dmesg|more, where does it tell me if the kernel is connecting to the proper interface?

In /etc/network/run
I see lo=lo

SO, far I have experimented with changing every instance of "lo" to eth0 because the debian documentation says that is what it's supposed to be (unless, this update switched everything to "lo")
ifup & ifdown do not recognize either option.

What do people think?
Is my machine finally ready for the heap, or can I get it connected again?

I appreciate the suggestions thus far.

J.

Last edited by jlibraryist; 05-02-2016 at 08:44 PM.
 
Old 05-02-2016, 10:00 PM   #7
zOSGuy
LQ Newbie
 
Registered: Sep 2010
Location: Central NY, USA
Distribution: Debian
Posts: 27

Rep: Reputation: 0
My Debian Jessie ../interfaces looks like that too, but I added my wired connection to Network Manager, I don't know if I removed the definition in interfaces or NM did. Look for the network manager wiki/howto, there's a command you run in a terminal to add the definition to NM, you will need the hardware id for the nic because network manager doesn't go by the ethx names.
Also, you should put lo back, that's the internal loopback interface and as I understand it it's very necessary.

Last edited by zOSGuy; 05-02-2016 at 10:01 PM.
 
Old 05-03-2016, 02:26 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by jlibraryist View Post
While reading, dmesg|more, where does it tell me if the kernel is connecting to the proper interface?
It doesn't. What dmesg tells you is whether the card has been set up correctly as a piece of hardware. Usually the card is configured right at the end of the boot. You see something like this:

[ 5.384141] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[ 6.675877] e1000e: enp0s25 NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
[ 6.675986] e1000e 0000:00:19.0 enp0s25: 10/100 speed: disabling TSO
[ 6.676026] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s25: link becomes ready

That tells me that my card is up and running with the e1000e driver, and that the new interface nomenclature is being used.

You haven't said what /sys/class/net shows. If the card is working, you should see the interface name there. Mine says: enp0s25 lo. So there are two working interfaces there, the ethernet card and loopback.

Quote:
SO, far I have experimented with changing every instance of "lo" to eth0 because the debian documentation says that is what it's supposed to be (unless, this update switched everything to "lo")
No, no, no! Please change everything back to the way you found it. Only change a configuration file if you know what the line you are changing means, why it is written that way, and why it ought to be written differently. And always keep a backup copy of the file as it was before you changed it.

Work systematically. I assume your upgrade included a new kernel so first find out if the card itself still works. Then we can talk of setting up the network.
 
Old 05-03-2016, 07:10 AM   #9
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
It doesn't. What dmesg tells you is whether the card has been set up correctly as a piece of hardware. Usually the card is configured right at the end of the boot. You see something like this:

[ 5.384141] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[ 6.675877] e1000e: enp0s25 NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
[ 6.675986] e1000e 0000:00:19.0 enp0s25: 10/100 speed: disabling TSO
[ 6.676026] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s25: link becomes ready

That tells me that my card is up and running with the e1000e driver, and that the new interface nomenclature is being used.

<<Ok, I will doublecheck this toniught too.>>

You haven't said what /sys/class/net shows. If the card is working, you should see the interface name there. Mine says: enp0s25 lo. So there are two working interfaces there, the ethernet card and loopback.

<<I forgot to check this (WILL DO TONIGHT)>>

No, no, no! Please change everything back to the way you found it. Only change a configuration file if you know what the line you are changing means, why it is written that way, and why it ought to be written differently. And always keep a backup copy of the file as it was before you changed it.

<<I will change everything back this evening>>

Work systematically. I assume your upgrade included a new kernel so first find out if the card itself still works. Then we can talk of setting up the network.
I will do everything in my power to keep this machine running - this is why we call it DIY computing.
But, the machine is old enough, and I have gotten plenty of use from it - so if it's its time, I will ding it a song.
But in the meantime, more troubleshooting.

Thank you everyone,

Results will follow.

J.
 
Old 05-03-2016, 03:54 PM   #10
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by hazel View Post

2. Look in /sys/class/net to see what the interface is called. Some distros are switching from the old eth0 nomenclature to one based on bus address. For example Crux now calls my ethernet card enp0s25. If your configuration files are set to the old name and that name has changed, the network won't come up.

.
I checked in this directory and two are listed:
eth0 & lo

less ifstate
lo=lo

What are my next steps?
I edited the two config files I mangled before to return them to their original info.
Still no connection.

Ironically, even though the ifstate is lo=lo, when I open the Connection Settings, I see eth0 after the number.
I feel this might be where the issue is.

Can I manually create a new Network Connection?

Thanks,

J.
 
Old 05-03-2016, 04:10 PM   #11
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Original Poster
Rep: Reputation: Disabled
I just checked dmesg | more again

And at the end it says:

[ 16.801252] r8169 0000:02:00.0 eth0: link down
[ 16.801261] r8169 0000:02:00.0 eth0: link down
[ 16.801404] IPv6: ADDRCONF (NETDEV_UP): eth0: link is not ready
[ 18.383103] r8169 0000:02:00.0 eth0: link up
[ 16.383118] IPv6: ADDRCONF (NETDEV_CHANGE): eth0: link becomes ready

What does this tell me re: eth0 Vs. lo for ifstate?

Thank you,

J.
 
Old 05-03-2016, 07:50 PM   #12
zOSGuy
LQ Newbie
 
Registered: Sep 2010
Location: Central NY, USA
Distribution: Debian
Posts: 27

Rep: Reputation: 0
lo is an internal interface, I don't believe you even need a nic to have that interface. Eth0 is there and recognized. Open a terminal and enter "nmcli dev status" (without the quotes). Network manager will come back with the list of devices it has found and what their status is. lo should be unmanaged, what does it say about eth0? If it's unmanaged, you should probably add the device to network manager using the command line tool, for which you can find a thorough description searching on "network manager tutorial" or something similar. You don't have settings for it in /etc/network/interfaces so at this point eth0 is not configured for anything, no IP address etc., and it needs that information, be it from .../interfaces or from network manager. Network manager seems to handle wireless DHCP connections without configuring them, but not wired connections.
A quick search yields https://wiki.debian.org/NetworkManager

Last edited by zOSGuy; 05-03-2016 at 07:58 PM.
 
Old 05-08-2016, 09:58 PM   #13
jlibraryist
Member
 
Registered: Feb 2016
Location: Chitown
Distribution: debian, ubuntu-gnome
Posts: 31

Original Poster
Rep: Reputation: Disabled
I figured it ouut.

Simplicity itself.
The router needed a reset.
That coinciding with the OS update caused me to think too hard.

But Debian is running fine.
Thank you everyone.

J.
 
  


Reply

Tags
connections, debian, networking



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] troubles installing debian 7.0.0 with wireless networking mrapathy Debian 5 05-15-2013 02:59 PM
Troubles with networking renaissance Ubuntu 2 06-10-2006 06:03 PM
OpenSUSE Networking Troubles Saketh Linux - Newbie 9 03-17-2006 02:41 PM
Trouble getting X working + networking troubles outwardlymobile Linux - Hardware 2 10-17-2004 10:58 AM
Networking troubles... dave_lane Linux - Networking 2 09-08-2001 06:52 PM

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

All times are GMT -5. The time now is 12:15 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