当前位置:网站首页>Virtual machine network, networking settings, interconnection with host computer, network configuration

Virtual machine network, networking settings, interconnection with host computer, network configuration

2022-07-06 01:55:00 -Joucy-

One 、 Virtual machine network

  1. Check virtual machine network editor
    - Run as an administrator VMware
    - Open the virtual network editor
    - see NAT Under way , The network segment of the virtual subnet
     Insert picture description here

  2. Check the virtual network card
    Control layout ,“ Network and Sharing Center | Change adapter settings ”, By default , Yes VMnet1 and VMnet8 Two virtual network cards .
    If there is no , After uninstalling , reinstall .

  3. NAT The way
    Check the network configuration of the virtual machine :NAT Pattern
     Insert picture description here

Be careful : Subnets are randomly assigned

Two 、 Networking settings for virtual machines

Virtual machine networking settings :

  1. Check whether the virtual machine hardware is NAT The way
  2. Sign in Ubuntu System , Set in the upper right corner
    Set the left side of the panel ,“ The Internet ”
    Check IPv4 / DHCP Set up
    ( The default setting is fine , No change required )
  3. Check IP Address
    Demo environment IP : 192.168.43.129
  4. Access the extranet test
    ping www.baidu. com
    Press CTRL+C interrupt
    Be careful : The host itself must be connected to the Internet

3、 ... and 、 Interconnection with host computer

 Insert picture description here
ipconfig see
 Insert picture description here
Ubuntu Of ping Operation does not support , So virtual machines ping When the host computer ping no

NAT Internet access principle :
 Insert picture description here
 Insert picture description here

Four 、 Manually configure the network

1、ifconfig

ifconfig command , All in the current host will be Network card status All listed.
 Insert picture description here
sudo apt install net-tools
 Insert picture description here

2、netstat

Netstat The command is used to display various network related information , Such as network connection , Routing table , Interface status (Interface Statistics),masquerade Connect , Multicast members (Multicast Memberships) wait .

原网站

版权声明
本文为[-Joucy-]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140056541631.html