The method of modifying ip address by linux
Configure the ip address of linux (must be on the same network segment as window)
1 、 vi / etc/sysconfig/network-scripts/ifcfg-eth0
2. Modify the content of the text to:
Among them, gateway is the gateway (sending information from one network to another must also go through a "gateway", which is the gateway, which is equivalent to the exit of communication with other network segments). Usually a local area network corresponds to a gateway (not absolute), that is to say, the equipment gateway in the local area network is the same, and the gateway is shared to communicate to the outside.
3. Restart the network card using service network restart
These are the details of how linux modifies ip. Please pay more attention to other related articles!