LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-24-2019, 07:44 PM   #1
Martin.B
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Rep: Reputation: Disabled
Loopback interface missing


Ping to 127.0.0.1 times out, ifconfig doesn't have lo. How can I get it back?

System setup: Ubuntu 14.04. Two network cards, one goes to the house network and from there to the internet, one goes to local hardware.

Code:
sudo ifup lo
ifup: interface lo already configured
Code:
ifconfig lo
lo: error fetching interface information: Device not found
Doesn't help. Things I tried: ifup lo, change /etc/network/interfaces (see commented out lines there, below), mess with 70-persistent-net.rules as suggested here, reboot of course, connect another network card via USB to look for changes, no success. The problem looks similar to this old thread but there ifup lo recovered the loopback.

Things worked months ago, the problem might have been caused by some update.

One more observation: Normally trying to ping 127.0.0.1 just times out, but if I disconnect the cable going to the house network I get "network is unreachable". It seems to look for 127.0.0.1 in the local network where it doesn't find it of course.

ifconfig:
Code:
eth4      Link encap:Ethernet  HWaddr 00:24:e8:45:8f:10  
          inet6 addr: fe80::224:e8ff:fe45:8f10/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:180 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:35088 (35.0 KB)  TX bytes:3183 (3.1 KB)
          Interrupt:21 Memory:f7fe0000-f8000000 

eth5      Link encap:Ethernet  HWaddr d8:eb:97:71:be:e5  
          inet addr:192.168.153.124  Bcast:192.168.153.255  Mask:255.255.255.0
          inet6 addr: fe80::daeb:97ff:fe71:bee5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:149995 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37251 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:48465215 (48.4 MB)  TX bytes:5040261 (5.0 MB)
ifconfig -a finds some additional device I don't understand:
Code:
ttyUSB0   Link encap:Local Loopback  
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
/etc/network/interfaces:
Code:
auto lo
 iface lo inet loopback
# iface lo inet static
# address 127.0.0.1
# netmask 255.0.0.0
 
Old 09-26-2019, 04:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Hello and welcome to LQ.

This makes me think it is OK.
"sudo ifup lo
ifup: interface lo already configured"

Try ifconfig -a instead maybe.

Might be worth using the ip command now. https://www.cyberciti.biz/faq/linux-...-usage-syntax/
 
Old 09-26-2019, 04:12 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by Martin.B View Post
Ping to 127.0.0.1 times out, ifconfig doesn't have lo. How can I get it back?
This statement really threw me off, because the loopback interface appears automagically when IP support is loaded (or compiled into the kernel). One can certainly mess with the IP address assigned to the loopback i/f, but how could it be gone and IP support still be there?
Quote:
Originally Posted by Martin.B View Post
System setup: Ubuntu 14.04. Two network cards, one goes to the house network and from there to the internet, one goes to local hardware.

Code:
sudo ifup lo
ifup: interface lo already configured
Ah, so the interface is present. Phew!
Quote:
Originally Posted by Martin.B View Post
Code:
ifconfig lo
lo: error fetching interface information: Device not found
...but it isn't called "lo" anymore...?
Quote:
Originally Posted by Martin.B View Post
ifconfig -a finds some additional device I don't understand:
Code:
ttyUSB0   Link encap:Local Loopback  
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
You know, I think you just found your loopback interface.

How on earth it came to be renamed to "ttyUSB0", I have no idea, but I'm willing to bet good money it has something to do with your udev configuration.

My guess is that at some point, udev decided it would be a splendid idea to ifrename your loopback interface and turn it into "ttyUSB0".

Do you by any chance have any USB peripherals connected?
 
Old 09-26-2019, 04:47 PM   #4
Martin.B
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
This was stuck in moderation for a bit, I found a solution in the meantime. It looks like lo was renamed, but I don't know why. Thanks for the answers.

Code:
ip link set TTYUSB0 up
solved the problem.
Quote:
Originally Posted by Ser Olmy View Post
Do you by any chance have any USB peripherals connected?
Some lab devices.
 
Old 09-26-2019, 05:30 PM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by Martin.B View Post
Some lab devices.
They wouldn't happen to be usb-to-serial interfaces, by any chance? For control or data acquisition?

Compare the udev ruleset with the output from lsusb. I wouldn't be at all surprised if a manufacturer of niche equipment decided to play fast and loose with USB IDs and ended up creating a conflict. I've seen enough hardware reporting "0000" as IDs and serial numbers in my time.
 
Old 09-27-2019, 03:46 AM   #6
Martin.B
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
There is one USB to serial interface, but it doesn't use 0000. There is a rule calling the serial interface TTYUSB0, but I don't understand why it plays loopback at the same time.
Anyway, my problem has been solved.
 
  


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
[SOLVED] problem with ethernet loopback test using loopback plug/stub: receiving socket not se mcha Linux - Kernel 3 08-26-2010 11:28 AM
error on boot up: Bringing up loopback interface glorygirl Linux - Networking 2 01-18-2004 10:11 PM
Trouble with getting loopback "lo interface" to work. RickProg Linux - Networking 2 11-13-2003 09:33 PM
Bringing up loopback interface pollycat Linux - Networking 49 09-07-2003 02:07 PM
multiplayer tcp/ip game & loopback interface on RH 8 kkempter Linux - Networking 2 02-04-2003 12:33 PM

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

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