You are not logged in.

#1 2013-03-26 10:01:59

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

[solved kinda] New NIC names not being used

Hi, I have 3 arch computers and 2 of them have the new NIC names from systemd-197. Im struggling to get this to work on the last one.

Ive read this https://bbs.archlinux.org/viewtopic.php?id=156283&p=1 but cant find any help.

I have deleted the file /etc/udev/rules.d/80-net-name-slot.rules which I think overrode a rule somewhere else to prevent the change? So I should have the new names after removing that file?

yet

jason@jason-laptop ~ % 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
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:1d:09:a8:ae:1d brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:1c:26:ca:be:4b brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.39/24 brd 10.0.0.255 scope global wlan0
    inet6 fe80::21c:26ff:feca:be4b/64 scope link 
       valid_lft forever preferred_lft forever

Any ideas?

*Edit

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

# do not edit this file, it will be overwritten on update

ACTION=="remove", GOTO="net_name_slot_end"
SUBSYSTEM!="net", GOTO="net_name_slot_end"
NAME!="", GOTO="net_name_slot_end"

NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"

LABEL="net_name_slot_end"

Last edited by jrussell (2013-05-12 18:37:52)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#2 2013-03-26 23:26:22

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved kinda] New NIC names not being used

Just to make sure, you did actually reboot or trigger udev after this, yeah?

Offline

#3 2013-03-26 23:53:28

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [solved kinda] New NIC names not being used

What is the output of:

$ udevadm info /sys/class/net/eth0

and

$ udevadm info /sys/class/net/wlan0

?

Offline

#4 2013-03-27 10:14:03

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

Re: [solved kinda] New NIC names not being used

jason@jason-laptop ~ % sudo udevadm info /sys/class/net/eth0
[sudo] password for jason: 
P: /devices/pci0000:00/0000:00:1e.0/0000:03:00.0/ssb1:0/net/eth0
E: DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:03:00.0/ssb1:0/net/eth0
E: ID_BUS=pci
E: ID_MODEL_ID=0x170c
E: ID_NET_NAME_MAC=enx001d09a8ae1d
E: ID_OUI_FROM_DATABASE=Dell Inc
E: ID_PCI_CLASS_FROM_DATABASE=Network controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller
E: ID_PRODUCT_FROM_DATABASE=BCM4401-B0 100Base-TX
E: ID_VENDOR_FROM_DATABASE=Broadcom Corporation
E: ID_VENDOR_ID=0x14e4
E: IFINDEX=2
E: INTERFACE=eth0
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/eth0
E: TAGS=:systemd:
E: USEC_INITIALIZED=960191
jason@jason-laptop ~ % sudo udevadm info /sys/class/net/wlan0
P: /devices/pci0000:00/0000:00:1c.1/0000:0c:00.0/ssb0:0/net/wlan0
E: DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:0c:00.0/ssb0:0/net/wlan0
E: DEVTYPE=wlan
E: ID_BUS=pci
E: ID_MODEL_ID=0x4311
E: ID_NET_NAME_MAC=wlx001c26cabe4b
E: ID_OUI_FROM_DATABASE=Hon Hai Precision Ind. Co.,Ltd.
E: ID_PCI_CLASS_FROM_DATABASE=Network controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=Network controller
E: ID_PRODUCT_FROM_DATABASE=Wireless 1390 WLAN Mini-Card
E: ID_VENDOR_FROM_DATABASE=Broadcom Corporation
E: ID_VENDOR_ID=0x14e4
E: IFINDEX=3
E: INTERFACE=wlan0
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/wlan0
E: TAGS=:systemd:
E: USEC_INITIALIZED=484417

I have rebooted many times smile Actually deleted the file a while back, only noticed there was no change the other day, Im using NetworkManager.


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#5 2013-03-27 12:37:24

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [solved kinda] New NIC names not being used

Ah, so it appears we don't yet support the ssb bus (only the bcma one). Are you able to patch and compile systemd? If so could you test this patch: https://dev.archlinux.org/~tomegun/0001 … uses.patch ?

Offline

#6 2013-03-29 09:44:42

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

Re: [solved kinda] New NIC names not being used

I've never done anything like that before, but I'll give it a go.


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#7 2013-03-29 12:12:05

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [solved kinda] New NIC names not being used

@jrussell: i had a look at this, and it appears that he ssb subsystem in the kernel does not support predictable network  interface names. So even if my patch might appear to work, I don't think it will end up being a good idea (as the names might actually end up changing randomly after all).

What you could do instead, would be to use the macadress. Make a copy of /usr/lib/udev/rules.d/80-net-name-slot.rules in /etc/udev/rules.d and add the line:

NAME=="", ENV{ID_NET_NAME_MAC}!="", NAME="$env{ID_NET_NAME_MAC}"

Offline

#8 2013-04-02 14:27:28

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

Re: [solved kinda] New NIC names not being used

Alright thanks, its not a problem with me, I dont actually need any renaming, I was just curios as to why it was not working smile


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

Board footer

Powered by FluxBB