Linux Centos sets the IP address to static (Linux configures a fixed IP address)

The content is very dry, I suggest you like it and save it~

The first step is to configure the IP address gateway and network segment (IP address range) in VMware Workstation

Note: 1. Be sure to select VMnet8.

        2. Box 2 format: 192.168.x.0, x can fill in a number by yourself, and subsequent IP addresses will start with x

        3. Box 3 fixed format: 255.255.255.0

 Note: Format: 192.168.x.2, where x is the value set in the previous step

Step 2: Manually modify the configuration file in the Centos system and fix the IP

Use vi to edit /etc/sysconfig/network-scripts/ifcfg-ens33

vi /etc/sysconfig/network-scripts/ifcfg-ens33

After modification is completed, save and exit~ 

Lots of useful information~ Like and follow to avoid getting lost~ 

Guess you like

Origin blog.csdn.net/qq_58424960/article/details/132018487
Recommended