Since I started learning Linux, it's confusing to surf the Internet using NAT mode. Specific principles, but also to verify.
Use Method (VMware):
Brief introduction:
WMware is easy to use for NAT
- Set the NAT mode virtual machine (one). Action: VM (Top menu)--> Setting-->network Adapter (Hardware). I chose the above Nat mode, I guess is automatically select the available VM NIC, because if it is automatically assigned, the virtual machine IP is found within 192.168.110.x, not verified.
- Open the network adapter. Action: Edit--Virtual Network Editor (NET adapter)
- Modify the Ifcfg-eth0 configuration file in the virtual machine, and the path is/etc/sysconfig/network-scripts/ifcfg-eth0. If there is a problem with the path, I may have knocked it wrong.
- Restart the Network service. Operation: Service network restart.
- Configuration ends.
- There are many configuration documents on the network. Most of them are correct. If there is still a problem, you have to look more, think.
If there is any problem, I hope you can raise it. I will revise it. Thanks a lot.
Internet access in VMware NAT static IP mode