简体   繁体   中英

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.

I created Centox 7.x VM with network setting to use NAT vs Bridged Connection.

After Centos is installed the VM and the ifconfig shows the IP address of inet 192.168.253 on ens33. It also shows inet6 xxxx::xxxx:xxx:xxxx:xxxx (x being hexa values).

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. Then I get no IP IV address and it only shows the inet6 xxxx::xxxx:xxx:xxxx:xxxx (x being hexa values).

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.

How can I get the Ip IV ip address from my local network's DHCP using VMWare workstation VM?

从根试试这个:

dhclient –v

try this:

  • Go to File -> Edit -> Virtual Network Editor
  • Use the Change Settings" button
  • Highlight the first selection VMnet0
  • Under VMnet Information choose the "Automatic Setting" button You will get a list of all of the adapters on your system.
  • Uncheck ones that might be causing the issue.
  • Click "Apply" then "OK"

Should help. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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