VMW Virtual Machine DHCP fault solution

Source: Internet
Author: User
Use VMW Virtual Machine DHCP fault solution-Linux Enterprise Application-Linux server application information, the following is a detailed description. Like me, many of my friends may use VMW for linux network configuration experiments. When I was conducting a DHCP experiment, a problem occurred:

Client RH9, server RH AS4, server DHCP server, client cannot obtain DHCP information. SNIFFER cannot capture packets to obtain dhcp request and ACK information.

There are two solutions:

1. The client first runs ifconfig down eth0 and then ifconfig up eth0. At this time, eth0 is started, but there is no IP address. Run ifup eth0 again. Obtain the IP address. Sniffer listens to two DHCP packets, REQUEST and ACK.

2. edit/etc/sysconfig/network-scripte/ifcfg-eth0
Last join

Check_line_down (){
Return 1;
}

Save. At this point, the/etc/sysconfig/networking/ifcfg-eth0 will automatically add this sentence. If not, manually add it.
Ifup eth0, you will find everything is fine.
Ifconfig eth0 up
Service network start
This should be done.
The reason is very simple. It is a BUG in the ifup script. You have written the second one above.

In fact, there can also be a way to achieve it. Modify the/etc/rc. sysinit file and set up the NIC before loading the network (no IP address is available). dhcp can also be automatically obtained.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.