Ubuntu changes the virtual machine network segment (changes to bridge mode and cannot connect to the network)

Due to work needs, the Nat network was used when installing vmware and virtual machines at the beginning.
Now we need to modify the virtual machine network segment and set the IP to the same network segment as the Windows side. We are going to use bridge mode.
environment:

Windows10、Ubuntu20.04

Insert image description here

Open the virtual network editor in the virtual machine editor, change the settings, and select your own network card configuration in bridge mode

Insert image description hereInsert image description hereInsert image description here
`

 进入设置选择 ipv4,点 击 Manual,填 写 设 置 的 ip 和 Netmask ip 和 板 端 网段192.168.0.* 一致,Netmask:255.255.255.0)最后点击Apply

`Insert image description here

都设置好后,就可以用ifconfig来查看你的ip了
也可以去ping  Windows的ip或者是ping  biadu.com看网络是否连通

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/lijunlin0329/article/details/131975459
Recommended