Log in to the Linux system through user name and password. To modify the IP, you must be under the root user.
Modify the IP configuration file and run The following command: (Related learning video tutorial sharing: linux video tutorial)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Press i on the keyboard to enter the input mode, modify the corresponding IP according to needs, and modify After completion, press the ESC key on the keyboard, enter wq to exit and save, as shown in the figure below:
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to modify the ip address of linux. For more information, please follow other related articles on the PHP Chinese website!