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

How to modify the ip address of linux

王林
Release: 2019-12-27 17:18:20
Original
5472 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template