Linux VMware (virtual machine) can not automatically obtain the IP address (solution)

  
installed a Redhat Linux9 under VMWARE, set the DHCP according to the general method, but it can not automatically obtain the IP address, can not activate the network device, can not go online! The system always prompts “Determining IP information for eth0...failed; no link present. Check cable?”! The solution is as follows:

1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 with root privileges (assuming the NIC number is eth0) and add the following at the end of the file:

check_link_down () { Return 1; }

2, activate the network card. If you use DHCP, you can directly activate the network card and obtain the IP automatically. Use the command: ifconfig eth0 up.

Copyright © Windows knowledge All Rights Reserved