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

How to modify ip address in linux

王林
Release: 2020-10-26 15:32:21
Original
22188 people have browsed it

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!

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