Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of modifying ip address by linux

Shulou Source: shulou.com Published: 2022-06-03 03:56:08 09月22日 Update

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!

Tags: Gateways gateways content that is local area LAN network segment network address same one that is that is information articles more network cards devices communications exits Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info Shulou Information Docker OPPO Reno