简体   繁体   English

VMWare工作站Centos VM无法使用桥接网络获取LAN IPIV IP地址

[英]VMWare workstation Centos VM unable to obtain LAN IPIV IP address using bridged network

I'm using VMWare Workstation Pro 12.5.7 build-5813279.我使用的是 VMWare Workstation Pro 12.5.7 build-5813279。

I created Centox 7.x VM with network setting to use NAT vs Bridged Connection.我使用网络设置创建了 Centox 7.x VM 以使用 NAT 与桥接连接。

After Centos is installed the VM and the ifconfig shows the IP address of inet 192.168.253 on ens33.安装 Centos 后,虚拟机和 ifconfig 显示 ens33 上 inet 192.168.253 的 IP 地址。 It also shows inet6 xxxx::xxxx:xxx:xxxx:xxxx (x being hexa values).它还显示 inet6 xxxx::xxxx:xxx:xxxx:xxxx(x 是十六进制值)。

However, I want to use a local network IP(DHCP) address on this VM so I change the network setting to Bridged Connection and I give it a reboot.但是,我想在此 VM 上使用本地网络 IP(DHCP)地址,因此我将网络设置更改为桥接连接并重新启动它。 Then I get no IP IV address and it only shows the inet6 xxxx::xxxx:xxx:xxxx:xxxx (x being hexa values).然后我没有得到 IP IV 地址,它只显示 inet6 xxxx::xxxx:xxx:xxxx:xxxx(x 是十六进制值)。

When I use the Bridged connection for Oracle Virual Box VM I do not have this issue and I'm able to get the local Ip address.当我为 Oracle Virual Box VM 使用桥接连接时,我没有这个问题,我能够获得本地 Ip 地址。

How can I get the Ip IV ip address from my local network's DHCP using VMWare workstation VM?如何使用 VMWare 工作站 VM 从本地网络的 DHCP 获取 Ip IV ip 地址?

从根试试这个:

dhclient –v

try this:尝试这个:

  • Go to File -> Edit -> Virtual Network Editor转到文件 -> 编辑 -> 虚拟网络编辑器
  • Use the Change Settings" button使用“更改设置”按钮
  • Highlight the first selection VMnet0突出显示第一个选择 VMnet0
  • Under VMnet Information choose the "Automatic Setting" button You will get a list of all of the adapters on your system.在 VMnet 信息下,选择“自动设置”按钮。您将获得系统上所有适配器的列表。
  • Uncheck ones that might be causing the issue.取消选中可能导致问题的那些。
  • Click "Apply" then "OK"单击“应用”,然后单击“确定”

Should help.应该有帮助。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM