LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2004, 09:13 AM   #1
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Rep: Reputation: 15
Release IP form DHCP server


Hi All,
I would liket to ask how can i release the ip got form a DHCP server? i have tried command like "pump -r", "dhcpd -k", "ifup", "if down,", delete all the dhcp client and lease under /etc/dhcp* ..but with no hope, what can i do to releaes that IP and get a new one ?
Thansk
 
Old 12-15-2004, 09:50 AM   #2
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
The command you want is dhclient.

dhclient /release
dhclient /renew

Note that you'll probably get the same IP straight back again, because DHCP is designed to minimise disruptions and changes. DHCP typically allots your IP from your MAC address, if that doesn't change, the IP most likely won't either.

Damien
 
Old 12-15-2004, 10:39 PM   #3
peterpatola
LQ Newbie
 
Registered: Dec 2004
Location: thailand
Posts: 2

Rep: Reputation: 0
dhcp ip release after client usage

hi damien, im having a problem regarding my rh9 dhcp not releasing the ip addresses issued to different clients when they shutdown their pcs, how can i solve this problem? hope you can reply thanks man!
 
Old 12-16-2004, 09:35 AM   #4
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
I don't know how to manually force a DHCP server to drop expired leases immediately from shutdown machines. Are the client machines releasing on shutdown? Try forcing a release on a client and check out the leases on the server in the dhcpd.leases file. Check your lease times on the server in etc/dhcpd.conf. You can reduce them to say 3600 seconds, which means every 30 minutes the active clients will attempt to renew their lease, and the server <should> expire leases that much more quickly. I'm by no means a DHCP expert, hopefully someone more informed than me will see this thread and be able to help you.

Damien
 
Old 12-16-2004, 02:07 PM   #5
logan2004
LQ Newbie
 
Registered: Oct 2004
Distribution: ubuntu hoary
Posts: 10

Rep: Reputation: 0
try clearing out your dhcpd.leases file
 
Old 01-03-2005, 03:46 AM   #6
peterpatola
LQ Newbie
 
Registered: Dec 2004
Location: thailand
Posts: 2

Rep: Reputation: 0
thank you very much logan, but is there any way wherein i can automatically flush the content of dhcpd.leases say for a certain period of time? thanks again man!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server under some form of attack English_Man Linux - Security 1 10-30-2005 01:03 PM
shell script works form command line but not form crontab saifee General 1 10-14-2004 10:27 AM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 05:09 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
dhcp release and renew Ratclaws Linux - Networking 1 10-12-2001 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration