The virtual machine centos7 is configured with static ip, and the webpage cannot be accessed by stepping on the hole

1. Configure the virtual network editor on Vm

2. Configure VMnet8 on windows

3. Configure ens33 network card on centos7

Note that some linux is ifcfg-eth0 network card

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

Modify the following parameters:

4. Restart the network service and test

By command:

systemctl restart network

or:

Check the network card ip:

No interface can be tested by ping command

 

 

 

Guess you like

Origin blog.csdn.net/qq_43290318/article/details/111391880