Sponsored Content
Full Discussion: dhcp
Special Forums IP Networking dhcp Post 302332539 by Gopi Krishna P on Thursday 9th of July 2009 11:06:38 AM
Old 07-09-2009
i want to invoke dhcpcd application when interface comes up(not system boot,when we plug ethernet cable). how to do that using c language(linux)

Last edited by Gopi Krishna P; 07-23-2009 at 09:10 AM..
 

10 More Discussions You Might Find Interesting

1. IP Networking

Dhcp

Hello all, I have this Intel Pentium 233/128 running Solaris 8. I also have a dhcp/router/dns running SuSElinux 7.2.(Sorry if it is out of topic here) My problem is that the Solaris box when it tries to configure the interface (elxl0) via dhcp it fails. It appears, according to the... (1 Reply)
Discussion started by: jdevarie
1 Replies

2. UNIX for Dummies Questions & Answers

Dhcp

When using DHCP how can I can my hostname. I vi all the hosts file and if still didn't work. So now my hostname is unknown and I want to change it. So if anyone out there can help me. Thank You (6 Replies)
Discussion started by: aojmoj
6 Replies

3. UNIX for Advanced & Expert Users

Dhcp

Hi you all. I'm trying to enable DHCP in a Sun Utra 5 runing Solaris 8 but during the boot process it sends me the message : "Device not in appropiate status" Do anyone have enabled DHCP on solaris 8? Any Procedure? The DHCP server is an NT I guess. (2 Replies)
Discussion started by: alex blanco
2 Replies

4. UNIX for Dummies Questions & Answers

Dhcp

HI, New to Unix and I inherited a network that runs DHCP in manual configuration mode. Basically, in order for a machine to get an IP it has to have an entry in dhcpd.conf with its MAC address mapped to a hostname (the hostname then maps to an IP address listed in the DNS db file). If there is... (2 Replies)
Discussion started by: NJay
2 Replies

5. UNIX for Advanced & Expert Users

Dhcp

Last question for today!! :rolleyes: In what file does the DHCP server keep its list of leases? THANKS!!! :) Maria from Maria (2 Replies)
Discussion started by: marjeg
2 Replies

6. Solaris

DHCP help

Can someone help me with this please. I am new to this: I am trying to install Solaris 8 over the network using my DHCP. After I type the comman: ./add_install_client -d -e 8:0:20:7e:97:51 I would get something like this: cleaning up preexisting install client "8:0:20:7e:97:51"... (0 Replies)
Discussion started by: aliban83
0 Replies

7. UNIX for Dummies Questions & Answers

Help on DHCP

Hi All, I am trying to configure dhcp server on a linux host with eth0:1 which is using 192.168.1.10 I also want to restrict my DHCP client to just one Host adcnew222. DHCP Server Host name - adcnew111 DHCP client name - adcnew222 My conf file is as follows on dhcp server : ... (2 Replies)
Discussion started by: sriram003
2 Replies

8. IP Networking

Can't get DHCP IP

Dear Experts, I have a TI DM8148 EVM board REV C, the EZSDK5.05 SW package, and DVRRDK1.09 SW package. EZSDK5.05, DVRRDK1.09 both use Linux2.6.37, however, there are some modifications between these two kernels. When I use uImage of DVRRDK1.09 to boot up EVM board, this board can be given a... (0 Replies)
Discussion started by: oobin168
0 Replies

9. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

10. IP Networking

Dhcp

I have a DHCP thing on my HP printer. How can I find information on numbers for that? (2 Replies)
Discussion started by: teak
2 Replies
DHCPCD-RUN-HOOKS(8)					    BSD System Manager's Manual 				       DHCPCD-RUN-HOOKS(8)

NAME
dhcpcd-run-hooks -- DHCP client configuration script DESCRIPTION
dhcpcd-run-hooks is used by dhcpcd(8) to run any system and user defined hook scripts. System hook scripts are found in /lib/dhcpcd/dhcpcd-hooks and the user defined hooks are /etc/dhcpcd.enter-hook. and /etc/dhcpcd.exit-hook. The default install supplies hook scripts for configuring /etc/resolv.conf and the hostname. Your distribution may have included other hook scripts to say configure ntp or ypbind. A test hook is also supplied that simply echos the dhcp variables to the console from DISCOVER message. Each time dhcpcd-run-hooks is invoked, $interface is set to the interface that dhcpcd is run on and $reason is to the reason why dhcpcd-run-hooks was invoked. DHCP information to be configured is held in variables starting with the word new_ and old DHCP information to be removed is held in variables starting with the word old_. dhcpcd can display the full list of variables it knows how about by using the -V, --variables argument. Here's a list of reasons why dhcpcd-run-hooks could be invoked: PREINIT dhcpcd is starting up and any pre-initialisation should be done. CARRIER dhcpcd has detected the carrier is up. This is generally just a notification and no action need be taken. INFORM dhcpcd informed a DHCP server about it's address and obtained other configuration details. BOUND dhcpcd obtained a new lease from a DHCP server. RENEW dhcpcd renewed it's lease. REBIND dhcpcd has rebound to a new DHCP server. REBOOT dhcpcd successfully requested a lease from a DHCP server. IPV4LL dhcpcd failed to contact any DHCP servers but did obtain an IPV4LL address. STATIC dhcpcd has been configured with a static configuration which has not been obtained from a DHCP server. 3RDPARTY dhcpcd is monitoring the interface for a 3rd party to give it an IP address. TIMEOUT dhcpcd failed to contact any DHCP servers but was able to use an old lease. EXPIRE dhcpcd's lease or state expired and it failed to obtain a new one. RELEASE dhcpcd's lease was released back to the DHCP server for re-use. NAK dhcpcd received a NAK from the DHCP server. This should be treated as EXPIRE. NOCARRIER dhcpcd lost the carrier. The cable may have been unplugged or association to the wireless point lost. FAIL dhcpcd failed to operate on the interface. This normally happens when dhcpcd does not support the raw interface, which means it cannot work as a DHCP or ZeroConf client. Static configuration and DHCP INFORM is still allowed. STOP dhcpcd stopped running on the interface. DUMP dhcpcd has been asked to dump the last lease for the interface. TEST dhcpcd received an OFFER from a DHCP server but will not configure the interface. This is primarily used to test the variables are filled correctly for the script to process them. ROUTERADVERT dhcpcd has received an IPv6 Router Advertisment, or one has expired. FILES
When dhcpcd-run-hooks runs, it loads /etc/dhcpcd.enter-hook and any scripts found in /lib/dhcpcd/dhcpcd-hooks in a lexical order and then finally /etc/dhcpcd.exit-hook SEE ALSO
dhcpcd(8) AUTHORS
Roy Marples <roy@marples.name> BUGS
Please report them to http://roy.marples.name/projects/dhcpcd SECURITY CONSIDERATIONS
Little validation of DHCP options is done in dhcpcd itself. Instead, it is up to the hooks to handle any validation needed. To this end, some helper functions are provided, such as valid_domainname as used by the 20-resolv.conf hook to ensure that the hostname is not set to an invalid value. valid_path is also provided, but is currently unused by a stock hook script. BSD
March 19, 2012 BSD
All times are GMT -4. The time now is 12:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy