You are not logged in.

#1 2013-03-28 19:23:24

maggie
Member
Registered: 2011-02-12
Posts: 255

Cannot enable systemd persistent network naming

So I read https://mailman.archlinux.org/pipermail … 24231.html and deleted /usr/lib/udev/rules.d/80-net-name-slot.rules but my system still uses eth0 and eth1 even after a reboot. Can someone tell me what I can do to get the default behavior?

$ udevadm test-builtin net_id /sys/class/net/eth0
calling: test-builtin
=== trie on-disk ===
tool version:          198
file size:         5544030 bytes
header size             80 bytes
strings            1242254 bytes
nodes              4301696 bytes
load module index
ID_NET_NAME_MAC=enx1ab0490a0e01
ID_OUI_FROM_DATABASE=GIGA-BYTE TECHNOLOGY CO.,LTD.
ID_NET_NAME_PATH=enp4s0
unload module index

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 4c:d0:49:0a:0a:42 brd ff:ff:ff:ff:ff:ff
    inet 10.1.10.104/24 brd 10.1.10.255 scope global eth0
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 01:24:1d:30:25:5e brd ff:ff:ff:ff:ff:ff

Last edited by maggie (2013-03-28 19:23:49)

Offline

#2 2013-03-28 19:41:04

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: Cannot enable systemd persistent network naming

maggie wrote:

... deleted /usr/lib/udev/rules.d/80-net-name-slot.rules ...

uhm... to enable the default behaviour you would have to remove /etc/udev/rules.d/80-net-name-slot.rules. Reinstall systemd to restore the file in /usr/lib and remove the file in /etc.

Offline

#3 2013-03-28 21:06:10

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: Cannot enable systemd persistent network naming

My bad. A mistake in my post. I actually removed the correct file. See:

$ locate 80-net-name-slot.rules
/usr/lib/udev/rules.d/80-net-name-slot.rules

Offline

#4 2013-03-28 21:12:52

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Cannot enable systemd persistent network naming

FWIW, locate is probably not the best tool in this situation, since it relies on a database which may be out of date.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2013-03-28 21:59:06

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: Cannot enable systemd persistent network naming

I updated the db first. There is no file.

$ls  /etc/udev/rules.d

Offline

#6 2013-03-29 09:43:40

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: Cannot enable systemd persistent network naming


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

Board footer

Powered by FluxBB