LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2016, 11:56 AM   #1
debasisbiswas
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
Retaining device name when NIC card is changed


I am using 03 LAN ports in our system using logical names as eth0, eth1 eth2. All are working fine. But when I change any of the LAN card, system detects it as the next logical name ie eth3 because the change of hardware address of LAN card and by default no IP address in assigned to it.But if I chgange the hardware address in corresponding file in /etc/sysconfig/network-scripts/ifcfg-ethx mannually then it takes its old logical name ie eth0/eth1/eth2 and work as normal.

The requirement is that whenever any LAN card is replaced with new one it should retain it logical name as eth0/eth1/eth2. These names also should be fixed with PCIe slot wise. We can say slot 1 card is eth0, slot 2 card is eth1 and slot 3 card is eth2.
 
Old 02-21-2016, 02:07 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I think the system detects the LAN card with its serial number or type of network chip.
Check the kernel source code for that or try to contact the developers of the code for further details.
 
Old 02-21-2016, 05:14 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,164

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
udev is the normal answer, but depends on your distro, and what version.
Have a read of this.
 
  


Reply


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
I want to tune NIC's rps, rfs and xps value. which NIC device should I modify. nnnnnng Linux - Hardware 0 12-05-2012 04:44 AM
[SOLVED] NIC Changed. Please help SeRi@lDiE Slackware 3 10-10-2011 01:11 PM
[SOLVED] With new kernel the device names are changed and lilo still looks for old device timetraveler Slackware 10 04-30-2010 02:15 PM
etc/fstab Device label changed cant restore the default device name shady_Dev Linux - Software 4 11-11-2007 11:00 AM
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:49 PM.

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
Open Source Consulting | Domain Registration