[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mystery interface reported by ip.



On Sun, Oct 28, 2018 at 11:18:09AM -0700, peter@easthope.ca wrote:
> > root@joule:/etc# ip link show | grep rename
> > 4: rename4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
> > 
> > root@joule:/etc# find . -type f -exec grep "rename4" '{}' \; -print
> > root@joule:/etc#
> > 
> > So ip reports an interface named rename4 but it doesn't 
> > appear anywhere in /etc/.  Where does the name originate?

    From: Reco <recoverym4n@enotuniq.net>
    Date: Sun, 28 Oct 2018 22:07:46 +0300
> Udev failed to rename this interface to some Predictableâ?¢ name.
> I'd search dmesg for clues.

root@joule:/etc# dmesg | grep rename
[    1.547879] e100 0000:02:08.0 LocLCS218301788: renamed from eth0
[   20.974490] asix 1-6:1.0 LocLCS1788: renamed from eth1
[   20.997121] asix 1-3:1.0 rename3: renamed from eth0

So eth0 was renamed to LocLCS218301788.  

root@joule:/etc/udev# find . -type f -exec grep "eth0" '{}' \; -print
#ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
./rules.d/70-persistent-net.rules

eth0 is defined in 70-persistent-net.rules.
Why rename it?

LocLCS218301788 existed previously in 
/etc/udev/rules.d/70-persistent-net.rules but I shortened the name to 
LocLCS1788; as evident here.

root@joule:/etc# grep 1788 /etc/udev/rules.d/70-persistent-net.rules
ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="LocLCS1788"

The old name "LocLCS218301788" was dredged up from somewhere 
outside /etc/.  Where?  Old NIC names are cached? 

Thanks,             ... Peter E.



-- 
Message composed and transmitted by software designed to avoid the 
need, overhead and vulnerability of antivirus software.

123456789 123456789 123456789 123456789 123456789 123456789 123456789
Tel: +1 360 639 0202                                  +1 
http://easthope.ca/Peter.html              Bcc: peter at easthope. ca


Reply to: