Home  >  Article  >  Operation and Maintenance  >  How to modify the ip address of linux

How to modify the ip address of linux

王林
王林Original
2019-12-27 17:18:205387browse

How to modify the ip address of linux

Log in to the Linux system through user name and password. To modify the IP, you must be under the root user.

How to modify the ip address of linux

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

How to modify the ip address of linux

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:

How to modify the ip address of linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn