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

How to modify ip in linux

尚
Original
2019-12-27 11:24:086616browse

How to modify ip in linux

Configure the ip address of linux (must be in the same network segment as the window)

1. vi /etc/sysconfig/network-scripts /ifcfg-eth0

2. Modify the content of the text to:

How to modify ip in linux

where gateway is the gateway (sending information from one network to another network, It must also pass through a "gateway", which is the gateway, which is equivalent to the exit for communication with other network segments). Usually a LAN corresponds to a gateway (not absolutely), which means that the gateways of the devices in the LAN are the same and share the gateway to the outside. communication.

3. Use service network restart to restart the network card

Recommended related articles and tutorials: linux tutorial

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