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

How to modify ip address in linux

王林
王林 Original
2020-10-26 09:43:43 22046browse

How to modify the IP address under Linux: 1. Log in to Linux as the root user; 2. Open the terminal and execute the [vi /etc/sysconfig/network-scripts/ifcfg-eth0] command; 3. Modify the IP address, Subnet mask, gateway and other information are enough.

How to modify ip address in linux

Specific method:

(Video recommendation:linux video tutorial)

Use root user Log in to linux, open the terminal

How to modify ip address in linux

and enter in the terminal: vi /etc/sysconfig/network-scripts/ifcfg-eth0

Return After driving, start editing and fill in the IP address, subnet mask, gateway, DNS, etc. Among them, the "information in the red box" is a must.

How to modify ip address in linux

Related recommendations:linux tutorial

The above is the detailed content of How to modify ip address in 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