Virtual machine network configuration - nanny-level teaching (under the skills of using virtual machine VMware)

1. Network configuration

1. Add VMnet8:
Edit -> Virtual Network Editor -> Add Network -> VMnet8 -> Change VMnet8 to NAT mode

 2. The virtual machine selects VMnet8
to open the virtual machine settings->network adapter->custom->VMnet (NAT mode)

 3. Set the ip address and other information of VMnet8
1) Edit -> Virtual Network Editor
2) Select VMnet8, tick off the DHCP service
3) Change the subnet IP, subnet mask
4) NAT settings -> change the gateway

 

 5. Set the network card of the virtual machine
1) Change the network card information of the virtual machine ( vi /etc/sysconfig/network-scripts/ifcfg-ens33 )
Specific parameter explanation:
BOOTPROTO=static //Indicates a static URL, dhcp indicates a dynamically allocated URL
ONBOOT= yes //yes means that the network card will be started automatically at startup, no means that the network card will not be started at startup
IPADDR //ip address, must be in the same network segment as VMnet8
NETMASK //Subnet mask, same as VMnet8 GATEWAY //Gateway, same DNS
as VMnet8 /
/DNS server address: 114.114.114.114,8.8.8.8

 Exit save: wq

2) Restart the network: systemctl restart network / service network restart

Ping Baidu If you can ping the network, the configuration is complete

Guess you like

Origin blog.csdn.net/zjymybaby/article/details/130099377