How to modify ip in linux

Release: 2019-12-27 11:24:08
Original
6645 people have browsed it

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!

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