RHEL7 IP address configuration, DNS configuration
Configure IP
Vim/etc/sysconfig/network-scripts/ifcfg-ens33
Configure DNS
Vim/etc/resolv.conf
Write nameserver DNS Address
You can also use Nmtui to modify the IP configuration
Restart the NIC
Systemctl Restart Network
Ifconfig View IP
IP addr Show (can be abbreviated to IP a)
Temporarily modify the IP address, add multiple temporary IP, on the network card name plus: numbers, such as ens33:0
Ifconfig ens33 172.25.20.20 netmask 255.255.255.0
Delete temporary IP
Ifconfig ens33:0 del 172.25.20.20
NetworkManager Service is a daemon that manages and monitors network settings, RHEL7 more attention to the use of NetworkManager services for network configuration and management
See if the NetworkManager service is started
Systemctl Status NetworkManager
RHEL7 IP address configuration, DNS configuration, NetworkManager view