Configure IP address
First check what network card we have
command to modify the IP address
nmcli connection modify ens33 ipv4.method manual ipv4.addresses 192.168.10.1/24 autoconnect yes #Use the nmcli command to configure the IP address
nmcli connection reload #Restart the network card
nmcli connection up ens33 #Open the ens33 network card
Configuration file to modify IP address
vim /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet #Network card type is Ethernet type
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none #Network card setting is none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT
=yes IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens33
UUID=1651f482-5841 -4579-b91c-75eac2756096
DEVICE=ens33
ONBOOT=yes #Added to the boot self-starting
IPADDR=192.168.10.1 #Configure IP address
PREFIX=24 #The subnet mask is 24 bits
systemctl restart network-online.target #restart network
ip add #View IP address