How the network name and network configuration file are generated?

Issues related to configuring your network
Post Reply
kry1702
Posts: 1
Joined: 2020/07/31 03:50:36

How the network name and network configuration file are generated?

Post by kry1702 » 2020/07/31 04:03:03

When using "ifconfig" or "ip addr", you can see the name of the network card device, and it is found that the names of different hosts are different. What generation rule is the name based on?

How does the directory "/etc/sysconfig/network-scripts/" generate files like "ifcfg-enp6s0-1" and why there are configuration files with "-1"?

Thanks Reply !

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How the network name and network configuration file are generated?

Post by TrevorH » 2020/07/31 04:32:08

It's called "predictable interface naming" and is explained on https://access.redhat.com/documentation ... vice_names
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply