LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-19-2013, 08:35 PM   #1
5883
Member
 
Registered: Aug 2004
Posts: 170

Rep: Reputation: 0
what happens after dhcp ip lease expires ?


in my board i have udhcpc,
during start up, /etc/init.d has this line:
udhcpc -n -q -i eth0

normally it gets the dhcp ip and everything is ok.

Say after 2 weeks, this ip lease expires,
how can i still keep the connection for this board ?
 
Old 01-20-2013, 01:06 PM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,650

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
I would say the client (udhcpc) should request ip again, most likely the same one. you need to be sure dhcp client is running.
 
Old 01-22-2013, 11:03 AM   #3
5883
Member
 
Registered: Aug 2004
Posts: 170

Original Poster
Rep: Reputation: 0
Hi, for some reason i cannot renew the lease.

root# udhcpc -i eth0 -s ./udhcpc.script -p eth0.pid -b

in udhcpc.script i put echos in the beginning so i know it get called

now either udhcpc is up running for eth0, i do this,
root# cat eth0.pid, i get 869
root# /bin/kill -SIGUSR1 869

nothing happened, no print from udhcpc.script

what did i do wrong pls ?






Quote:
Originally Posted by pan64 View Post
I would say the client (udhcpc) should request ip again, most likely the same one. you need to be sure dhcp client is running.

Last edited by 5883; 01-22-2013 at 12:04 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tell DHCP to not rebind its old lease. 1veedo Linux - Networking 3 06-20-2010 06:30 PM
DHCP lease same IP prashanlk Linux - Networking 2 01-31-2008 03:22 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
DHCP Lease Delete! kofi Linux - Networking 2 07-29-2004 07:00 PM
dhcp - get new IP when lease renewed chrisnewey Linux - Networking 0 03-30-2004 05:41 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration