当前位置:网站首页>Under the same WiFi, the notebook is connected to the virtual machine on the desktop
Under the same WiFi, the notebook is connected to the virtual machine on the desktop
2022-06-25 17:28:00 【jaffe—fly】
The virtual machine must be in Bridge Street mode

Vmware You must select the host network card in the virtual network editor of



Don't select auto here
Don't select auto here
Don't select auto here
Choose the one on your host that accesses the Internet wifi network card
The network segment and gateway of the virtual machine must be the same as that of the host
The problem is , Why change to bridge mode , The host machine ping No virtual machine , Virtual machine also ping No host , Virtual machine also ping no www.baidu.com,
That's the problem
Network segment
The same network segment means multiple IP If they have the same network address, they are considered to be in the same network segment . Illustration :192.168.1.60 and 192.168.1.70 Two IP If the mask is used, it is 255.255.255.0 Words , The same network address is 192.168.1.0 Well, the two one. IP On the same network segment . But if two IP The mask used is 255.255.255.192 Then their network addresses are 192.168.1.0 and 192.168.1.64 了 , These are two Ip It is not in a network segment .
So... With the same network address IP In the same segment , Computers in the same network segment can communicate directly , The gateway is required for host communication between different network segments .
Because virtual machines used to be NAT Pattern , Later, in order to connect desktop computers with notebooks , The mode of the virtual machine must be set to bridge , Although the settings have been changed , however ip The address is still reserved before NAT Of ip, So you need to check the host computer ip And gateway , The virtual machine is changed to be the same as the host
The host machine ipconfig see 
IPv4 Address , Subnet mask , The default gateway All three are important
gateway (Gateway)
For host computer route print, For virtual machines route -n, View gateway routes
Set up
The virtual machine ip Change the address to 192.168.3.xxx
The virtual machine mask remains the same as the host
The gateway is set to the same
Use command vim /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.3.100
NETMASK=255.255.255.0
GATEWAY=192.168.3.1
Remember... After the change service network restart
Get it done , Toss about 2 Hours , You can happily use your laptop to toss around your desktop , Mainly to build k8s
边栏推荐
- Mathematical modeling - linear programming
- Super Full Metal PBR Multi - channel Mapping Materials website collation
- 揭秘GES超大规模图计算引擎HyG:图切分
- How smart PLC constructs ALT instruction
- Why are there few embedded system designers in the soft test?
- Remote terminal control artifact - mobaxterm
- Pytorch official document learning record
- 芝士糖豆打造AR潮玩新体验
- 汇编语言(5)寄存器(内存访问)
- 杰理之SPI 从机使用注意事项【篇】
猜你喜欢

PLSQL storage function SQL programming

A development of student management system based on PHP

上线移动ERP系统有哪些步骤?环环紧扣很重要

Redis系列——概述day1-1

Redis series - overview day1-1

【编译原理】概述

足下教育日精进自动提交

大学生暑假换机热,ROG 明星产品幻 16 翻转版 / 幻 13 / 幻 X 预约

学习太极创客 — MQTT(三)连接MQTT服务端

College Students' hot summer exchange, Rog star product phantom 16 flipped version / phantom 13 / phantom x appointment
随机推荐
SMART PLC如何构造ALT指令
软考中级和高级选哪个比较好?
Learning Tai Chi makers - mqtt (I) what is mqtt
旧手机变废为宝,充当服务器使用
Sword finger offer II 025 Adding two numbers in a linked list
WPF development essays Collection - ECG curve drawing
杰理之adc_get_voltage 函数获取电压值不准【篇】
杰理之如何给外界输出一个时钟源使用【篇】
Kotlin
[UVM practice== > episode_2] ~ VIP, VIP development, VIP release
DDD concept is complex and difficult to understand. How to design code implementation model in practice?
2021年5月云南省网络空间安全比赛赛题复盘
Are these old system codes written by pigs?
Langage d'assemblage (5) Registre (accès à la mémoire)
JS disable browser default events
XShell连接VMWare虚拟机
js禁止浏览器默认事件
Tasklet API usage
ES6 knowledge points
Uncover ges super large scale graph computing engine hyg: Graph Segmentation