Re: Fc30 -> FC31 : Can't rename interfaces. FC30 worked.

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

 



My 70-persistent-net.rules looks like this:
SUBSYSTEM=="net", ACTION="" DRIVERS=="?*", ATTR{address}=="00:25:22:36:97:f9", ATTR{type}=="1", KERNEL=="eth*", NAME="lan4"
SUBSYSTEM=="net", ACTION="" DRIVERS=="?*", ATTR{address}=="00:e0:29:37:0e:78", ATTR{type}=="1", KERNEL=="eth*", NAME="wifi"
SUBSYSTEM=="net", ACTION="" DRIVERS=="?*", ATTR{address}=="00:e0:4c:20:59:10", ATTR{type}=="1", KERNEL=="eth*", NAME="ccast"

Don't know if that is the secret sauce to make yours rename.

Bill

cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION="" ATTR{address}=="50:7b:9d:0b:8a:ab", NAME="external"
SUBSYSTEM=="net", ACTION="" ATTR{address}=="00:0e:c6:dc:01:aa", NAME="internal"

rebooted

One odd result of running udevadm test on the "external" interface:

enp1s0: Failed to rename network interface 2 from 'enp1s0' to 'external': Device or resource busy

There must be some trick here that I'm missing. What's the problem with the FC31 kernel ?

sean

I tried net.ifnames=0. That resulted in interface names eth0 and eth1. And did not honor the persistent name request.

udevadm finds the 10-external.link file :

SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/eth0
Successfully loaded SELinux database in 1.572ms, size on heap is 331K.
Trying to open "/etc/systemd/hwdb/hwdb.bin"...
Trying to open "/etc/udev/hwdb.bin"...
=== trie on-disk ===
tool version:          243
file size:         9955651 bytes
header size             80 bytes
strings            2118107 bytes
nodes              7837464 bytes
Load module index
Found container virtualization none.
Network interface NamePolicy= disabled on kernel command line, ignoring.
timestamp of '/etc/systemd/network' changed
Parsed configuration file /usr/lib/systemd/network/99-default.link
Parsed configuration file /etc/systemd/network/10-internal.link
Parsed configuration file /etc/systemd/network/10-external.link
Created link configuration context.
ID_NET_DRIVER=r8169
eth0: Config file /etc/systemd/network/10-external.link is applied
ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
eth0: Failed to query name_assign_type: Invalid argument
eth0: Policies didn't yield a name, using specified Name=external.
ID_NET_LINK_FILE=/etc/systemd/network/10-external.link
ID_NET_NAME=external
Unload module index
Unloaded link configuration context.

but still the interface name is not changed!

sean
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux