2. Configure Virtual Machine

1. Configure ip address

 Open the Edit VMware Virtual Network Editor to view ip type

Enter centos interface, input

# vim/etc/sysconfig/network-scripts/ifcfg-eth0

As follows

Save enter ifconfig to view ip successful configuration

Then back windows interface, open cmd ping ip address it just set, there will be following a similar request response packet

Finally, ping the network is normal to see Baidu

Guess you like

Origin www.cnblogs.com/yaoyu19960106/p/11104432.html