I have a Linux box with Ubuntu 16.04. I've noticed some odd behavior when I needed use the loopback interface.
So I checked with ifconfig first and it showed that:
rename1 Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:326 (326.0 B) TX bytes:326 (326.0 B)
ip link shows this:
1: rename1: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
The "rename1" is not intentional and I wanted revert this to "lo".
After some search I found this command:
sudo ip link set rename1 name lo
Witch it does what I wanted, but after a restart it changes back to "rename1" and I don't know how to fix this.