find your interface name: nmcli device
create network config file:
vi /etc/sysconfig/network-scripts/ifcfg-nameofyourinterface
ONBOOT=yes
BOOTPROTO=static "if you use (dhcp) here, it will take time"
IPADDR=ip of your machine
NETMASK=255.X.X.X
GATEWAY=your gatewy
DEVICE=name of interface ex: enp0s8
nmcli connection reload
systemctl restart NetworkManager
reboot
you can use nmtui to configure your interface.