0

How to set the interface name in kickstart.cfg file?

We know if we install CentOS system in a Server, there maybe eth0, ens0, ensxxx, eno1 and so on.

I have questions,

  1. Why there will generate different interface names? why not all eth0?
  2. Is it possible configure the interface name in the kickstart.cfg?
0

Assuming you are using CentOS 7. There are five naming conventions for network interfaces in RHEL/CentOS7. There is a precedence which the kernel will try to use for naming with the ethX naming being used as the last resort. Read more here. Yes, it is possible to use the name in your kickstart for configuring the interface; but you either need to configure what the naming convention will be and/or know what name the kernel will select.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.