NIC changes after reboot sometimes from ETH0 to ETH1

Issues related to configuring your network
Post Reply
ch53e24
Posts: 2
Joined: 2018/11/27 15:27:38

NIC changes after reboot sometimes from ETH0 to ETH1

Post by ch53e24 » 2018/11/27 15:45:58

Dual NICs on system
Using kickstart to build system.


I would like to hard code certain NIC to always be etho. I know I can do this after the kickstart installation is completed but trying to find away that I can accomplish this during the kickstart installation, so the lowest MAC address is always eth0, next MAC address is always eth1 (I am assuming sometimes that NIC comes up slower then the other NIC so the higher MAC address gets the eth0 designation). I am using kickstart installation to be used in the field to bring up a crashed system in emergency and don't want to worry about the NIC's after the fact. Its seems like most of the time the lowest MAC is eth0 but every now and then it gets assigned as eth1. Any help would be appreciated.

Thanks,
Dan

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: NIC changes after reboot sometimes from ETH0 to ETH1

Post by hunter86_bg » 2018/11/30 18:51:31

The new naming convention prevents that, but obviously you are not using it (maybe a VM ?).
In this case, you can use udev to take care of the NIC.

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: NIC changes after reboot sometimes from ETH0 to ETH1

Post by jlehtone » 2018/11/30 19:59:34

The kickstart has option 'network':
https://access.redhat.com/documentation ... art-syntax
You could perhaps achieve something with it. Perhaps '--device=link'

"lowest MAC"? Honestly, I've never even considered sorting MACs.
To me, the network that the interface links to matters.
What do you bind to the names anyway?

Post Reply