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