1 ifconfig command temporary configuration
This method is temporary and not used much
2 Setup tool permanent configuration
Redhat proprietary tool. Command setup, then select the network configuration
After setting, add a sentence service network restart
3 Modify the permanent configuration of the network configuration file (I use centOS, the location of other version files is not the same)
Modify in this file, the first file changes the IP address, etc., the second file changes the DNS