Link to home
Start Free TrialLog in
Avatar of hulken
hulken

asked on

DHCP problem

Hello!

I have a machine running WindowsXP and Linux.

I get my ip-number by dhcp. If I shutdown XP
the dhcp will not give me a new ip-number in linux until after one hour (the lease time) I have no problems the other way... It seems lik the ip-address don't get released when I shutdown XP.
(if I fake a new hw address for my network-card in linux the network works after restarting from XP.)

Is there any way to solve my problem or whos as should I kick.
(My Internet Provider because their dhcp server sucks or Microsoft because XP don't relese the address when I shut down the machine?

)
Avatar of cincin77
cincin77

Only a comment:
Try to disable the network card before you shut down the XP.
well, I don't htink it should matter if XP releases the ip address or not. When Linux boots up, it should try to obtain an IP address. Is the DHCP server a windows server? is it ont eh same LAN?
create a batch file and in it have it say
ipconfig /release all
save it as release.bat on your desktop
then just double click on the release.bat before you shut down
then when you boot up linux it should have no problem
Is this a dilaup conenction or dsl/cable?
I agree with ymash, it shouldn't matter if it releases it or not.

Im not sure what type of Internet connection you have, but some providers require that your machine has a certain computer name to obtain an IP address. -- just a thought.  Not use if this is the same with Linux however.
Just a quick comment I work for an ISP doing cable modem installs and troubleshooting.  Although were are full DHCP at my company, we don't release ips everytime a person shutsdown a computer.  even if you go to Winipcfg in run and hit release and renew  a whole bunch of times, your still gonna get the same ip, sometimes you could have the same ip for about a day or two.

One thing i wasn't quite sure about from your question was that is the fact that you're not constantly getting a new ip bothering you or are you saying that your not pulling an ip at all when you restart???
Avatar of hulken

ASKER

What bathering me is if I go from linux back to xp and so on for a several times I can not acces the net because the dhcp server is locked on my network card's hardware address and wont give me a new address. (if I don't get a new address I can not acces the network outside my subnet  for some reaseon. Probably because the lock the ip-number to my mac address or something.

In linux I have no problem because I have modifyed my startup script to fake another mac address for my card.
First off, I have never heard of ANY DHCP client to ever perform a release at shutdown.  This just isn't how DHCP works.  Second, you mention you are modifying the MAC for Linux.  Most ISPs will only allow 1 MAC to have an IP at a time unless you are paying for more.  This is probably why you have to wait for the release time to get the new IP.  If you were to leave the MAC the same, your Linux box would probably grab the same IP the XP build is grabbing.  Otherwise, talk to your ISP and see if they will give an IP to a second MAC, which will probably cost you a little bit more.
Avatar of hulken

ASKER

The DHCP server will give me a new ip-address for up to 5 different MAC adresses. And if I leave the MAC at the same as in XP I will not get any ip-address at all from the dhcp server. (or if I get one I can't access the net outside my default gateway.
I'm confused - if you are able to modify 1 of the MAC's and get an IP for both of them, what is the problem?  Also, your original question was about releasing addresses automatically, which isn't normal behaviour for a DHCP client.  If you need assistance in troubleshooting other problems such as non-responding subnets, then please provide additional detail about your network, including how you connect to your ISP, subnets involved, addressing, masking, etc.
are you using software from your ISP to get you DNCP address? by default, you computer will ask the DHCP server for teh same address everytime it boots up, if the address is avialable them you get it, if not, it will assign a different one. Sounds to me that the problem is at the ISP. You should talk to them about it and see what they say!
> whos as should I kick.

generally stick tongue out at all, but kick ISP

DHCP address goes to MAC. Not to OS.
Whether asking for new address or renewal, DHCP server should give the one 'currently' assigned, which lasts for a period (hours) after it was released.

Try your winIPcfg. Renew. Renew. Release. Renew.
Should be consistent on gaining and regaining same IP.

Likely the ISP is using some 'enhancement' that some mfr (like MS) made up to be compatible with RFC while not compliant
ASKER CERTIFIED SOLUTION
Avatar of SunBow
SunBow
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> by default, you computer will ask the DHCP server for teh same address everytime it boots up

No, Not so. If addresss released, it asks for new one. But as above, server likely remembers and provides old one.

If not released, then computer asks for renewal of original address for roughly 3/4 - 7/8 of the designated lease period (differs by OS/mfr). Computer will actually start asking for a 'new' address prior to lease period expiring (not wanting to be caught without a legit one, it broadcasts everywhere to get anything, before time runs out).

scraig84> if you are able to modify 1 of the MAC's and get an IP for both of them, what is the problem?

ditto

thus if there is some remaining problem, my guess is ISP
Avatar of hulken

ASKER

I guess that the best way to solve my problem is to create
a service that runs ipconfig /release on shutdown.
This question is reasonably current, but others below are not.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if they are still open in 14 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
https://www.experts-exchange.com/questions/Q.20102072.html
https://www.experts-exchange.com/questions/Q.20103849.html
https://www.experts-exchange.com/questions/Q.20145561.html
https://www.experts-exchange.com/questions/Q.20169449.html
https://www.experts-exchange.com/questions/Q.20169478.html
https://www.experts-exchange.com/questions/Q.20172645.html
https://www.experts-exchange.com/questions/Q.20177672.html
https://www.experts-exchange.com/questions/Q.20180896.html
https://www.experts-exchange.com/questions/Q.20189306.html
https://www.experts-exchange.com/questions/Q.20192697.html
https://www.experts-exchange.com/questions/Q.20193626.html
https://www.experts-exchange.com/questions/Q.20195237.html
https://www.experts-exchange.com/questions/Q.20244812.html
https://www.experts-exchange.com/questions/Q.20246719.html
https://www.experts-exchange.com/questions/Q.20261121.html
https://www.experts-exchange.com/questions/Q.20261146.html
https://www.experts-exchange.com/questions/Q.20269349.html
https://www.experts-exchange.com/questions/Q.20274432.html
https://www.experts-exchange.com/questions/Q.20289956.html

To view your locked questions, please click the following link(s) and evaluate the proposed answer.
https://www.experts-exchange.com/questions/Q.20181754.html
https://www.experts-exchange.com/questions/Q.20245940.html
https://www.experts-exchange.com/questions/Q.20253492.html

*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
POINTS FOR EXPERTS awaiting comments are listed in the link below
https://www.experts-exchange.com/commspt/Q.20277028.html
 
Moderators will finalize this question if in @14 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
hulken:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.