1. Introduction
This article mainly describes how to use commands to check whether the virtual machine can be connected to the Internet, and the network card configuration of the virtual machine.
2. Confirm whether the virtual machine can access the Internet
2.1 ifconfig command
ifconfig
The corresponding display is as follows, which means you can access the Internet:
2.2 ping command
ping news.qq.com
The corresponding display is as follows, which means that you can access the Internet:
3. Check the configuration of the virtual machine network card.
You can see that there are two network adapters:
one is NAT and the other is bridged.
4. Summary
This article mainly introduces how to view the network card of the virtual machine and test the Internet access function.