Home > Article > Operation and Maintenance > How to configure ip address for linux
1. Open the Linux terminal system, and then enter the following code in the system
2. Then start filling in the ip address, subnet Netmask, gateway and other command codes, as shown in the figure:
Free learning video tutorial sharing: linux video tutorial
3. After filling in the terminal, save and exit
#4. Then restart the network service. The code in the red box is the restart code
5. Then ping the gateway and perform an external network test. If it passes normally, it will be OK
Recommended related article tutorials: linux Tutorial
The above is the detailed content of How to configure ip address for linux. For more information, please follow other related articles on the PHP Chinese website!