Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Network interface name issue.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 124

PostPosted: Tue Jul 05, 2022 10:53 pm    Post subject: [Solved]Network interface name issue. Reply with quote

Solved: The issue seems to be with sys-apps/systemd-utils:251.2-r1. I figured this out by masking it, and emerging sys-apps/systemd-utils:250.
I'm having issue where dhcpcd can't find valid interface. I did have my ethernet port named enp8s0, and that was working up until today. Now it's defauilting to eth0:, but I'm not sure why. Output of emerge.log that includes relevant packages emerged today
Code:
   34 1657038136:  >>> emerge (2 of 18) app-eselect/eselect-iptables-20220320 to /
   33 1657038136:  === (2 of 18) Cleaning (app-eselect/eselect-iptables-20220320::/var/db/repos/gentoo/app-eselect/eselect-iptables/eselect-i      ptables-20220320.ebuild)
   32 1657038136:  === (2 of 18) Compiling/Merging (app-eselect/eselect-iptables-20220320::/var/db/repos/gentoo/app-eselect/eselect-iptables/      eselect-iptables-20220320.ebuild)
   31 1657038138:  === (2 of 18) Merging (app-eselect/eselect-iptables-20220320::/var/db/repos/gentoo/app-eselect/eselect-iptables/eselect-ip      tables-20220320.ebuild)
   30 1657038138:  >>> AUTOCLEAN: app-eselect/eselect-iptables:0
   29 1657038139:  === (2 of 18) Post-Build Cleaning (app-eselect/eselect-iptables-20220320::/var/db/repos/gentoo/app-eselect/eselect-iptable      s/eselect-iptables-20220320.ebuild)
   28 1657038139:  ::: completed emerge (2 of 18) app-eselect/eselect-iptables-20220320 to /
    9 1657038174:  >>> emerge (5 of 18) sys-kernel/gentoo-sources-5.18.9 to /
    8 1657038174:  === (5 of 18) Cleaning (sys-kernel/gentoo-sources-5.18.9::/var/db/repos/gentoo/sys-kernel/gentoo-sources/gentoo-sources-5.      18.9.ebuild)
    7 1657038174:  === (5 of 18) Compiling/Merging (sys-kernel/gentoo-sources-5.18.9::/var/db/repos/gentoo/sys-kernel/gentoo-sources/gentoo-s      ources-5.18.9.ebuild)
    6 1657038188:  === (5 of 18) Merging (sys-kernel/gentoo-sources-5.18.9::/var/db/repos/gentoo/sys-kernel/gentoo-sources/gentoo-sources-5.1      8.9.ebuild)
    5 1657038199:  >>> AUTOCLEAN: sys-kernel/gentoo-sources:5.18.9
    4 1657038201:  === (5 of 18) Post-Build Cleaning (sys-kernel/gentoo-sources-5.18.9::/var/db/repos/gentoo/sys-kernel/gentoo-sources/gentoo      -sources-5.18.9.ebuild)
    3 1657038201:  ::: completed emerge (5 of 18) sys-kernel/gentoo-sources-5.18.9 to /
    2 1657038201:  >>> emerge (6 of 18) net-firewall/iptables-1.8.8-r4 to /
    1 1657038201:  === (6 of 18) Cleaning (net-firewall/iptables-1.8.8-r4::/var/db/repos/gentoo/net-firewall/iptables/iptables-1.8.8-r4.ebuil      d)
36557 1657038201:  === (6 of 18) Compiling/Merging (net-firewall/iptables-1.8.8-r4::/var/db/repos/gentoo/net-firewall/iptables/iptables-1.8.8      -r4.ebuild)
    1 1657038212:  === (6 of 18) Merging (net-firewall/iptables-1.8.8-r4::/var/db/repos/gentoo/net-firewall/iptables/iptables-1.8.8-r4.ebuild      )
    2 1657038212:  >>> AUTOCLEAN: net-firewall/iptables:0
    3 1657038212:  === Unmerging... (net-firewall/iptables-1.8.8-r3)
    4 1657038213:  >>> unmerge success: net-firewall/iptables-1.8.8-r3
    5 1657038214:  === (6 of 18) Post-Build Cleaning (net-firewall/iptables-1.8.8-r4::/var/db/repos/gentoo/net-firewall/iptables/iptables-1.8      .8-r4.ebuild)
    6 1657038214:  ::: completed emerge (6 of 18) net-firewall/iptables-1.8.8-r4 to /    7 1657038246:  >>> emerge (10 of 18) sys-apps/systemd-utils-251.2-r1 to /
    8 1657038246:  === (10 of 18) Cleaning (sys-apps/systemd-utils-251.2-r1::/var/db/repos/gentoo/sys-apps/systemd-utils/systemd-utils-251.2-      r1.ebuild)
    9 1657038246:  === (10 of 18) Compiling/Merging (sys-apps/systemd-utils-251.2-r1::/var/db/repos/gentoo/sys-apps/systemd-utils/systemd-uti      ls-251.2-r1.ebuild)
   10 1657038256: Started emerge on: Jul 05, 2022 10:24:16
   11 1657038256:  *** emerge --ask-enter-invalid --columns --quiet-repo-display --quiet-unmerge-warn --ask --autounmask=n --color=y --deep -      -with-bdeps=y --quiet-build=y --quiet-fail=y --regex-search-auto=y --verbose elogind
   12 1657038262:  *** exiting unsuccessfully with status '130'.
   13 1657038262:  *** terminating.
   14 1657038265:  === (10 of 18) Merging (sys-apps/systemd-utils-251.2-r1::/var/db/repos/gentoo/sys-apps/systemd-utils/systemd-utils-251.2-r      1.ebuild)
   15 1657038266:  >>> AUTOCLEAN: sys-apps/systemd-utils:0
   16 1657038266:  === Unmerging... (sys-apps/systemd-utils-250.7)
   17 1657038267:  >>> unmerge success: sys-apps/systemd-utils-250.7
   18 1657038268:  === (10 of 18) Post-Build Cleaning (sys-apps/systemd-utils-251.2-r1::/var/db/repos/gentoo/sys-apps/systemd-utils/systemd-u      tils-251.2-r1.ebuild)
   19 1657038268:  ::: completed emerge (10 of 18) sys-apps/systemd-utils-251.2-r1 to /
   20 1657038268:  >>> emerge (11 of 18) sys-apps/openrc-0.45.2 to /
   21 1657038268:  === (11 of 18) Cleaning (sys-apps/openrc-0.45.2::/var/db/repos/gentoo/sys-apps/openrc/openrc-0.45.2.ebuild)
   22 1657038268:  === (11 of 18) Compiling/Merging (sys-apps/openrc-0.45.2::/var/db/repos/gentoo/sys-apps/openrc/openrc-0.45.2.ebuild)
   23 1657038273:  === (11 of 18) Merging (sys-apps/openrc-0.45.2::/var/db/repos/gentoo/sys-apps/openrc/openrc-0.45.2.ebuild)
   24 1657038274:  >>> AUTOCLEAN: sys-apps/openrc:0
   25 1657038274:  === Unmerging... (sys-apps/openrc-0.45.1)
   26 1657038275:  >>> unmerge success: sys-apps/openrc-0.45.1
   27 1657038275:  === (11 of 18) Post-Build Cleaning (sys-apps/openrc-0.45.2::/var/db/repos/gentoo/sys-apps/openrc/openrc-0.45.2.ebuild)
   28 1657038275:  ::: completed emerge (11 of 18) sys-apps/openrc-0.45.2 to /

Here's output of
Code:
❯ dmesg | rg r8169
[    0.246555] r8169 0000:08:00.0 eth0: RTL8168h/8111h, a8:a1:59:16:66:a6, XID 541, IRQ 41
[    0.246559] r8169 0000:08:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
before I run
Code:
doas ip link set dev eth0 name enp8s0
I than get
Code:
[   47.339204] r8169 0000:08:00.0 enp8s0: renamed from eth0
[   47.362934] r8169 0000:08:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2
[   47.362936] r8169 0000:08:00.0: Unable to load firmware rtl_nic/rtl8168h-2.fw (-2)
[   47.385559] Generic FE-GE Realtek PHY r8169-0-800:00: attached PHY driver (mii_bus:phy_addr=r8169-0-800:00, irq=MAC)
[   47.452958] r8169 0000:08:00.0 enp8s0: Link is Down
[   50.948886] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control rx/tx
After I run that dhcpcd is working correctly. Here's output from kern.log
Code:
    9 Jul  5 16:20:13 soydfree kernel: [   47.339204] r8169 0000:08:00.0 enp8s0: renamed from eth0
    8 Jul  5 16:20:13 soydfree kernel: [   47.362934] r8169 0000:08:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2
    7 Jul  5 16:20:13 soydfree kernel: [   47.362936] r8169 0000:08:00.0: Unable to load firmware rtl_nic/rtl8168h-2.fw (-2)
    6 Jul  5 16:20:13 soydfree kernel: [   47.385559] Generic FE-GE Realtek PHY r8169-0-800:00: attached PHY driver (mii_bus:phy_addr=r8169-0      -800:00, irq=MAC)
    5 Jul  5 16:20:13 soydfree kernel: [   47.452958] r8169 0000:08:00.0 enp8s0: Link is Down
    4 Jul  5 16:20:16 soydfree kernel: [   50.948886] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control rx/tx
    3 Jul  5 16:20:16 soydfree kernel: [   50.948892] IPv6: ADDRCONF(NETDEV_CHANGE): enp8s0: link becomes ready
And here's daemon.log
Code:
   31 Jul  5 16:19:07 soydfree dhcpcd[3272]: received SIGTERM, stopping
   30 Jul  5 16:19:07 soydfree dhcpcd[3272]: enp8s0: removing interface
   29 Jul  5 16:19:07 soydfree dhcpcd[3272]: dhcpcd exited
   28 Jul  5 16:19:31 soydfree dhcpcd[1579]: dhcpcd-9.4.1 starting
   27 Jul  5 16:19:31 soydfree dhcpcd[1581]: dev: loaded udev
   26 Jul  5 16:19:31 soydfree dhcpcd[1581]: DUID 00:01:00:01:29:b2:7c:1d:a8:a1:59:16:66:a6
   25 Jul  5 16:19:31 soydfree dhcpcd[1581]: no valid interfaces found
   24 Jul  5 16:19:31 soydfree dhcpcd[1581]: no interfaces have a carrier
Hopefully I've provided enough relevant information.

Last edited by JustCauseWhyNot on Thu Jul 07, 2022 6:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Jul 06, 2022 7:45 am    Post subject: Reply with quote

Hi
What is the output of
Code:

grep -i cmdline /etc/default/grub
and
ip a #before you do any manual renaming
and
ls /etc/udev/rules.d
and
emerge -pv  sys-apps/systemd-utils

_________________
:)
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 124

PostPosted: Thu Jul 07, 2022 5:49 pm    Post subject: Reply with quote

Here's
Code:
❯ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether a8:a1:59:16:66:a6 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
and
Code:
❯ doas emerge -p systemd-utils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/systemd-utils                                [251.2-r1]                    USE="kmod (split-usr) tmpfiles udev -acl -boot (-selinux) -sysusers -test" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
I don't use grub just efistub with efibootmgr.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Thu Jul 07, 2022 6:45 pm    Post subject: Reply with quote

Quote:

Solved: The issue seems to be with sys-apps/systemd-utils:251.2-r1. I figured this out by masking it, and emerging sys-apps/systemd-utils:250.


Not sure.
I have the above version and there is no renaming happening.
Granted i have net.ifnames=0 kernel parameter applied.
_________________
:)
Back to top
View user's profile Send private message
JustCauseWhyNot
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2021
Posts: 124

PostPosted: Thu Jul 07, 2022 6:48 pm    Post subject: Reply with quote

Quote:

Not sure.
I have the above version and there is no renaming happening.
Granted i have net.ifnames=0 kernel parameter applied.

I'm not sure if I made it understood but I want udev predictable interface naming. So my interface being named eht0 was a issue, and I wanted it named enp8s0. But I don't no why 251 is causing issues compared too 250.
Back to top
View user's profile Send private message
nkichukov
n00b
n00b


Joined: 16 Oct 2012
Posts: 14
Location: Amstelveen, Netherlands

PostPosted: Wed Sep 07, 2022 10:06 pm    Post subject: Reply with quote

JustCauseWhyNot wrote:
Quote:

Not sure.
I have the above version and there is no renaming happening.
Granted i have net.ifnames=0 kernel parameter applied.

I'm not sure if I made it understood but I want udev predictable interface naming. So my interface being named eht0 was a issue, and I wanted it named enp8s0. But I don't no why 251 is causing issues compared too 250.


Same issue here when systemd-utils package got upgraded from version 250.7 to 251.3. Not sure why, but all interfaces became ethX instead of the previous predictive names. Going back to ethX caused a lot of trouble on this system.

This is an openrc system and I used to have an INSTALL_MASK like this:
INSTALL_MASK="/etc/system.d /lib/systemd /lib64/systemd /usr/lib/systemd /usr/lib64/systemd <some non systemd related dirs>"

But also, just reverting to 250.7 fixed the problem and got me going. JustCauseWhyNot, were you able to get to the bottom of this issue? I have another system which is also openrc and has 251.3 on and it does use predictive names of the network interfaces just fine.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1524

PostPosted: Thu Sep 08, 2022 5:48 am    Post subject: Reply with quote

Isn't this the issue with iwd doing it'd own thing? Do you have iwd emerged?

Regards,
Georgi
Back to top
View user's profile Send private message
nkichukov
n00b
n00b


Joined: 16 Oct 2012
Posts: 14
Location: Amstelveen, Netherlands

PostPosted: Thu Sep 08, 2022 11:47 am    Post subject: Reply with quote

logrusx wrote:
Isn't this the issue with iwd doing it'd own thing? Do you have iwd emerged?

Regards,
Georgi


This has no relation to iwd, I am afraid, see:
https://bugs.gentoo.org/856916
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1524

PostPosted: Thu Sep 08, 2022 12:17 pm    Post subject: Reply with quote

nkichukov wrote:
logrusx wrote:
Isn't this the issue with iwd doing it'd own thing? Do you have iwd emerged?

Regards,
Georgi


This has no relation to iwd, I am afraid, see:
https://bugs.gentoo.org/856916


Did you check if you have iwd running?

Because I have no such issue and I have disabled iwd. In the same time I'm already on systemd-251.3.

Check it please.

The only odd thing is systemd reaches network target before the rename happens, but I'm not using the wired ethernet adapter...

Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum