Check whether the vmware virtual machine can access the Internet and the network card configuration of the virtual machine

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:
insert image description here
2.2 ping command

ping news.qq.com

The corresponding display is as follows, which means that you can access the Internet:
insert image description here
3. Check the configuration of the virtual machine network card.
insert image description here
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.

Guess you like

Origin blog.csdn.net/xuxu_123_/article/details/130631015