Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-25-2016, 11:58 PM   #1
LQ Newbie
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
Run application before DHCP Client DISCOVER/REQUEST

Hi All,
I have a program that reads in the code plug external pins to determine the desired IP address of a particular device. This program will then update the /etc/dhcp/dhclient.conf file with the correct dhcp-client-identifier with respect to the code plug read. I need this program to run before the DHCP DISCOVER/REQUEST is sent out by the device so that it can use the correct /etc/dhcp/dhclient.conf.
Where is the best place to run this program?

What I'm experimenting now is just add the line to run my application in one of the scripts of the /etc/init/ just doing trial and error where it can read the code first before dhcp client starts sending requests to the dhcp server. Right now the more stable place to put it is in the /etc/init/network-interface.conf. However there are times where the dhclient still send the previous dhcp-client-identifier, or doesn't even have dhcp-client-identifier (which means my application was run later than desired).

Any suggestions?
Thanks and regards,
Old 01-26-2016, 07:17 AM   #2
LQ Newbie
Registered: Jun 2012
Distribution: Kubuntu 14.04
Posts: 7

Rep: Reputation: Disabled
How about using inside /etc/init/isc-dhcp-server.conf?
Old 02-04-2016, 07:35 PM   #3
LQ Newbie
Registered: Jan 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Originally Posted by sunweb View Post
How about using inside /etc/init/isc-dhcp-server.conf?
Hi, I'm using ubuntu 14.02. There is no such file in the /etc/init.



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
Need help getting dhcp client request to server. Budious Linux - Networking 0 03-26-2006 06:54 PM
Dhcp client request rstein6516 Debian 1 01-15-2006 02:40 PM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
Redhat DHCP client always request Chowroc Linux - Networking 12 12-30-2004 07:28 AM
*** REVERSE DHCP - Linux assumes ip according client gateway request *** domingo-br Linux - Networking 0 07-01-2003 07:53 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:14 AM.

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