LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-26-2006, 03:19 AM   #1
nunuschi
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Rep: Reputation: 0
retrieve dhcp options


I try to create my own dhcp options ( dhcp-options) in my server and send it to my client
It seems to work fine because I find my option in the dhcpd.leases file on my client.
I don't want to play with the dhcpd.leases file.

When I try to recover the dhcp options with dhclient.scripts, it gives me only default options

In fact, all I want is retrieve and use the information sent by my dhcp server and use some of this information for a custom script (or program). Is there a command that can interrogate the information send by my dhcp server?
 
Old 08-26-2006, 10:15 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The documentation in 'man dhclient-script' indicates that hooks can be added for non-standard options, both when an interface is brought up and brough down. Are you saying that that is not working for you? If so, could you be more specific about the problem?
 
Old 08-26-2006, 10:35 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by nunuschi
all I want is retrieve and use the information sent by my dhcp server and use some of this information for a custom script (or program). Is there a command that can interrogate the information send by my dhcp server?
sounds like you might have use for a packet sniffer: http://www.wireshark.org/
 
Old 08-27-2006, 03:26 AM   #4
nunuschi
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
It's good now, I use the dhclient-exit-hooks.d and no more dhclient-enter-hooks.d

Thx a lot
 
  


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
URGENT: dhcp-options nunuschi Linux - Networking 9 08-24-2006 01:55 PM
dhcp options nunuschi Linux - Networking 1 08-23-2006 07:33 AM
Retrieving DHCP options tommyr1216 Linux - Networking 0 02-08-2006 12:50 PM
question about dhcp options Notwerk Linux - Networking 5 12-24-2005 03:24 PM
Custom DHCP Options Llawnroc Linux - Networking 1 09-08-2003 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:39 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