The earlier CentOS note began by inspecting the interface addresses:
ip a
It then looked for the interface configuration under:
/etc/sysconfig/network-scripts/
Read the interface file
[root@host5 network-scripts]# cat ifcfg-eno1
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eno1"
UUID="00000000-0000-0000-0000-000000000000"
DEVICE="eno1"
ONBOOT="yes"
IPADDR="192.0.2.10"
PREFIX="24"
GATEWAY="192.0.2.1"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
IPV6_PRIVACY="no"
The IP address, gateway, and UUID above are generic replacements. A real interface needs values assigned for its actual network; this sample is not a configuration to apply unchanged.
Separate inspection from restart
The source applied configuration with:
systemctl restart network
Restarting networking can interrupt a remote connection. This command belongs to the old network-scripts/service setup and does not establish how a later CentOS-derived installation manages its interfaces. No network settings were changed for this revision.