Company's network, to install a Linux virtual machine locally, but only to the host one IP, then how to implement the network access of the Linux virtual machine?
Use NAT mode: This is the virtual switch that VMware uses for virtual NAT networks.
1. Set the network connection mode
2. Open the Virtual network editor
3. Define the network segment
4. Setting up the Gateway
5. Enter the host configuration network
[Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0 device=eth0type=ethernetonboot=yesnm_ Controlled=yesbootproto=staticipaddr=192.168.71.2netmask=255.255.255.0gateway=192.168.71.1ipv6init=nouserctl= No
6, host VMware network Adapter VMnet8 NIC configuration
7. Linux Virtual Machine Network check
Ping 192.168.71.1 General for next step
Ping host (host IP) General OK, you can access the network through the host.
If the host uses a proxy to surf the Internet, the Linux virtual machine should also configure the proxy.
Http_proxy= "http://192.168.220.2:88" https_proxy= "http://192.168.220.2:88"
8. Host access to Linux virtual machine
Ping the 192.168.71.2 on the host, the general rule is normal.
Then ssh the remote connection test.
9. Nat settings can also be port-mapped
VMware networks using NAT mode