-
View network interfaces by
nmcli -p dev
// to check network port -
Edit
/etc/sysconfig/network-scripts/ifcfg-networkdevicename
-
press
i
for editing and change the following
DEVICE=device_name
BOOTPROTO=none
ONBOOT=yes
PREFIX=8 # network prefix
IPADDR=xxx.xx.xx.xx
After editing press esc
and type :wq
to save and exit.
- Bring the Interface Up using ncmli
You can view device uuid using
nmcli connection show
nmcli con up uuid "Device UUID"
https://serverspace.io/support/help/configuring-network-on-centos/