1

I want to program an FPGA via JTAG and the xmd script connects to 127.0.0.1:3121 to do so. That worked nicely for months. After a reboot this connection suddenly didn't exist any more, I cannot ping 127.0.0.1 or localhost (still resolved to 127.0.0.1) any more either. ifconfig is missing "lo". I have entries for eth4 and eth5, my two network cards, but no lo. Full output is at the end of the question. Connections to and from other computers work fine. How do I get it running again?

I tried to start it manually but that doesn't change anything:

> ifup lo ifup: interface lo already configured > ifup --force lo (no output) 

This doesn't work either:

> route add -host 127.0.0.1 dev lo SIOCADDRT: No such device 

Some diagnosis output:

> route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.153.1 0.0.0.0 UG 0 0 0 eth5 192.168.10.0 0.0.0.0 255.255.255.0 U 1 0 0 eth4 192.168.153.0 0.0.0.0 255.255.255.0 U 1 0 0 eth5 > cat /var/run/network/ifstate lo=lo > cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback > iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination 

I don't have an /etc/iptables.conf

I also tried sudo rm -rf /var/run/network/* from this question. I did apt-get update and apt-get upgrade. No change.

> ifconfig 127.0.0.1 lo lo: Unknown host ifconfig: `--help' gives usage information. 

Output of ifconfig:

eth4 Link encap:Ethernet HWaddr 00:24:e8:45:8f:10 inet addr:192.168.10.2 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::224:e8ff:fe45:8f10/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:67 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:10916 (10.9 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:35392 errors:0 dropped:0 overruns:0 frame:0 TX packets:28754 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:20734790 (20.7 MB) TX bytes:4354467 (4.3 MB) 

Edit:

> ip link 1: ttyUSB0: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether d8:eb:97:71:be:e5 brd ff:ff:ff:ff:ff:ff 3: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 00:24:e8:45:8f:10 brd ff:ff:ff:ff:ff:ff 
1
  • Could you try using ip link instead of the obsolete ifconfig? It will list all registered interfaces with their current status and you can try to bring them up using ip link set <interface> up Commented Jan 24, 2019 at 7:12

2 Answers 2

1

Dennis: I have these two lines in /etc/network/interfaces already and tried ifup lo already. I says "interface lo already configured" when I do that, or nothing if I add --force.

Ginnungagap had the right idea. I could bring the ttyUSB0 from "DOWN" to "UNKNOWN":

> sudo ip link set ttyUSB0 up 

Now the output is

1: ttyUSB0: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 

Now it works again, both ping and also programming the FPGA.

Thank you very much.

1
  • Since it solved the issue, please accept this answer ans the solution. Commented Jan 24, 2019 at 9:34
1

try to add following lines to /etc/network/interfaces:

auto lo iface lo inet loopback 

Then do

ifup lo 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.