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
Forum Moderator
Posts: 29985
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
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Networking Support”