Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[Solved]Network interface name issue.

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

[Solved]Network interface name issue.

  • Quote

Post by JustCauseWhyNot » Tue Jul 05, 2022 10:53 pm

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: Select all

   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: Select all

❯ 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: Select all

doas ip link set dev eth0 name enp8s0
I than get

Code: Select all

[   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: Select all

    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: Select all

   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.
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Wed Jul 06, 2022 7:45 am

Hi
What is the output of

Code: Select all

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
:)
Top
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

  • Quote

Post by JustCauseWhyNot » Thu Jul 07, 2022 5:49 pm

Here's

Code: Select all

❯ 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: Select all

❯ 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.
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Thu Jul 07, 2022 6:45 pm

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.
:)
Top
JustCauseWhyNot
Apprentice
Apprentice
Posts: 202
Joined: Tue Dec 07, 2021 12:12 am

  • Quote

Post by JustCauseWhyNot » Thu Jul 07, 2022 6:48 pm

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.
Top
nkichukov
n00b
n00b
Posts: 15
Joined: Tue Oct 16, 2012 1:11 pm
Location: Amstelveen, Netherlands

  • Quote

Post by nkichukov » Wed Sep 07, 2022 10:06 pm

JustCauseWhyNot wrote:
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.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3534
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Thu Sep 08, 2022 5:48 am

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

Regards,
Georgi
Top
nkichukov
n00b
n00b
Posts: 15
Joined: Tue Oct 16, 2012 1:11 pm
Location: Amstelveen, Netherlands

  • Quote

Post by nkichukov » Thu Sep 08, 2022 11:47 am

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
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3534
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Thu Sep 08, 2022 12:17 pm

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
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic