LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-09-2019, 09:14 PM   #1
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,740

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
Why does the driver rename my NIC?


I have a bunch of identical Proliant blades (I think they are identical) networked via virtual connect. They run OpenSuse 15.

Each blade has four NICs, which show up as eth0..eth3. Except that one blade lists them as eth0, eth2, eth3, eth4.

During system startup (way before udev kicks in) I can see this in the message buffer:
Code:
$ sudo dmesg |grep renam
[   17.515161] be2net 0000:06:00.1 rename3: renamed from eth1
[   17.544737] be2net 0000:06:00.2 eth4: renamed from eth2
[   17.594555] be2net 0000:06:00.1 eth2: renamed from rename3
eth3 is not renamed.

Adding net.ifnames=0 biosdevname=0 to the kernel parameters doesn't change anything. The interfaces are still renamed in this erratic way.

I know about predictable network interface names, but here they are unpredictable. Any suggestions how I can get the original names?

Last edited by berndbausch; 02-09-2019 at 09:29 PM.
 
Old 02-09-2019, 09:47 PM   #2
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 962

Rep: Reputation: 241Reputation: 241Reputation: 241
Not sure which file OpenSuse uses, but may be one of the examples here. On my current OS Fedora, it's a matter of changing the name of the file /etc/sysconfig/network-scritps/ifcfg-eth5 and change the name in the file also for DEVICE=

Last edited by Brains; 02-09-2019 at 09:48 PM.
 
Old 02-09-2019, 10:20 PM   #3
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,740

Original Poster
Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
Yes, I know I can use udev, or work around the problem by adapting my configuration to the new names, which is simpler than fiddling with udev rules. I used the second option.

But either approach requires me to change the set up of my system software. This strikes me as a band-aid solution.

Ideally, I want to find out what motivates the kernel or NIC driver to change the interface name. This should help me understand how the servers are different.

Or at least, is there a way to prevent this change from happening in the first place?
 
Old 02-09-2019, 11:12 PM   #4
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 962

Rep: Reputation: 241Reputation: 241Reputation: 241
You could try to recreate the /etc/udev/rules.d/70-persistent-net.rules if it exists, example: mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bac to back it up. A reboot should reproduce it or can be done from command line with: /sbin/udevadm trigger --type=devices --action=add
I found this article marked solved.
 
Old 02-09-2019, 11:26 PM   #5
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 962

Rep: Reputation: 241Reputation: 241Reputation: 241
I'm guessing information in that file is based on the information in the /etc/sysconfig/network-scritps/ files, as per the suggestion in that last link, there may be an error in one or more, since you should have four in there, maybe UUID or as mentioned, unprintable error.
EDIT: You can also compare those scripts with the ones in the other blades, might spot the issue

Last edited by Brains; 02-09-2019 at 11:39 PM.
 
Old 02-10-2019, 10:36 PM   #6
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 1,205

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Only very recently I discovered that openSUSE's historic use of /etc/udev/rules.d/70-persistent-net.rules isn't any more needed, and could very well be the reason for eth1 being skipped. All that's needed is net.ifnames=0; no need for biosdevname=0 (which isn't included in any of my openSUSE installations).

A MAC address in /etc/sysconfig/network/ifcfg-eth1 also might be the cause. IME, normally there will not be one in an openSUSE installation.
 
Old 02-11-2019, 04:44 AM   #7
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,740

Original Poster
Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
I don't think the interface is renamed by udev, but rather the driver or kernel without request to rename it. it's currently hard to double check that right now, as I can't afford to reboot the server.

My ifcfg files don't contain UUIDs or MAC addresses. They are identical across the blades, except for IP addresses (in fact, all eth[0-4] are members of bridges).

When I have a chance to explore that further and if I find anything, I will report the result. For now I just adapted my configuration to the new interface numbering and focus on other problems.
 
Old 02-11-2019, 08:54 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,857

Rep: Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825Reputation: 2825
I think this is a good starting place. https://doc.opensuse.org/documentati...a.network.html
 
  


Reply

Tags
predictable nic naming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: How to rename user in Linux (also rename group & home directory) LXer Syndicated Linux News 0 06-26-2018 12:54 PM
LXer: How to rename user in Linux (also rename group & home directory) LXer Syndicated Linux News 0 11-28-2017 07:53 PM
Rename network interface (Rename ppp0 ...) Nicolas1390 Linux - Newbie 2 08-08-2011 02:14 AM
BCM5700 NIC driver does not work! Why?? math_physics Linux - Hardware 2 10-31-2005 03:00 AM
Why one nic accept packets destined for second nic gibcomp Linux - Networking 2 09-09-2004 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration