Home > Article > Operation and Maintenance > 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:
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!