Hyper-V 桥接网络
目录
Hyper-V 桥接模式
Hyper-V 没有 VM 的桥接模式可以选择,为了让虚拟机可以和宿主机同网段,需要搭建网桥。
创建网桥的步骤如下:
|
|
首先点击虚拟机右边的 Hyper-V 操作选项虚拟交换机管理器
:
![https://fastly.jsdelivr.net/gh/techkoala/techkoala.github.io@master/images/VM/Hyper-v_Bridging/hyperv-1.webp](https://fastly.jsdelivr.net/gh/techkoala/techkoala.github.io@master/images/VM/Hyper-v_Bridging/hyperv-1.webp)
新建虚拟交换机:
![https://fastly.jsdelivr.net/gh/techkoala/techkoala.github.io@master/images/VM/Hyper-v_Bridging/hyperv-2.webp](https://fastly.jsdelivr.net/gh/techkoala/techkoala.github.io@master/images/VM/Hyper-v_Bridging/hyperv-2.webp)
将主机的网络和虚拟网络进行桥接:
![https://fastly.jsdelivr.net/gh/techkoala/techkoala.github.io@master/images/VM/Hyper-v_Bridging/hyperv-3.webp](https://fastly.jsdelivr.net/gh/techkoala/techkoala.github.io@master/images/VM/Hyper-v_Bridging/hyperv-3.webp)
设置虚拟机的 IP 与宿主机的 IP 为同一网段,方便进行连接。