Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

My guest VM cannot get an IP address from my host.

It keeps printing:

eth0: lease expired x seconds ago

I've tried to start dhclient -r and dhclient and restart eth0 to no avail, see here for more.

How can I get a new lease in my guest?

share|improve this question
    
This is probably very distro dependent. Have you set the host VMware to actually do networking with a DHCP server? –  jw013 Nov 1 '12 at 20:17
    
Yes. The problem is also I can have a new lease but only when I restart the host dhcp server from vmware? When I restart eth0 or dhclient in the guest nothing happens. Currently when I want to connect to the network I need to manually restart host dhcp everytime I start my day. It's annoying routine I want to avoid. –  Phpdna Nov 1 '12 at 20:46
    
Are you sure the DHCP server is running? The protocol says that before the lease runs out, the leasee asks for renewal. Or try setting the lease to permanent (fixed IP for the given MAC). –  vonbrand Jan 24 '13 at 18:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.