LinuxQuestions.org
Weather apps tell you it'll rain. Wyndo tells you when to go.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-01-2024, 09:56 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Why does kernel 6.11.6 name my network interface eth126 instead of usb0?


My network adaptor connects via usb. Beginning 2022 August 13 the kernel registered the interface as usb0
Quote:
rndis_host 2-1.3:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.0-1.3, RNDIS device, b6:12:4c:86:3c:36
. I had built kernel 5.19.1 2022 August 11 and booted into it that day. Beginning this morning with the first boot into 6.11.6 the kernel registers the interface as eth126.
Quote:
rndis_host 1-1:1.0 eth0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, 86:12:5e:7d:f5:eb
rndis_host 1-1:1.0 eth126: renamed from eth0
Why? It works, I just had to figure it out. The network hardware is the same.
 
Old 11-01-2024, 10:20 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,978
Blog Entries: 1

Rep: Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420
https://www.freedesktop.org/wiki/Sof...nterfaceNames/ and https://www.freedesktop.org/software...ng-scheme.html provide the why.

As there noted, if you add [b]net.ifnames=0[/] as a startup parameter on kernel cmdline it may go back. I use it to keep eth0 on the motherboard's ethernet port.
 
Old 11-01-2024, 11:03 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,412

Original Poster
Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Quote:
Originally Posted by mrmazda View Post
... provide the why.
Those are both systemd, which I don't have - does it still apply? The first says it's obsoleted.

kernel-parameters.txt doesn't have net.ifnames . I see netdev, which would seem to address the matter.

Last edited by RandomTroll; 11-01-2024 at 11:24 PM.
 
Old 11-01-2024, 11:51 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,978
Blog Entries: 1

Rep: Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420Reputation: 2420
I don't spend much time booted to sysvinit installations any more, don't remember the various net setup configuration options, so can't answer if it still applies.
Code:
> inxi -Sz
System:
  Kernel: 5.14.21-150500.55.80-default arch: x86_64 bits: 64
  Desktop: KDE v: 3.5.10 Distro: openSUSE Leap 15.5
> cat /proc/cmdline
root=LABEL=<redacted> ipv6.disable=1 net.ifnames=0 noresume consoleblank=0 preempt=full mitigations=auto vga=791 video=1440x900@60
> ip a | grep 2:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CH341 - Device recognized as /dev/USB0, but won't communicate mezzmer Linux - Hardware 15 02-08-2018 12:09 AM
'eth1' instead of 'usb0' Ganesh Hegde Linux - Networking 8 06-07-2011 01:01 PM
Telnet to usb device on interface usb0 (and find IP of device) chickenlinux Linux - Networking 4 10-18-2009 11:18 AM
redhat 9 -> usb0 not found karfei00 Linux - Newbie 2 06-09-2004 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:31 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions