LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-05-2008, 06:15 AM   #16
Pavan Goyal
LQ Newbie
 
Registered: Jun 2008
Posts: 14

Original Poster
Rep: Reputation: 0

Thanks for your response. I also found one more option.
using dhclient eth0 -s 10.10.10.10 will send DHCPDISCOVER request to 10.10.10.10 only.
 
Old 07-05-2008, 06:18 AM   #17
Pavan Goyal
LQ Newbie
 
Registered: Jun 2008
Posts: 14

Original Poster
Rep: Reputation: 0
I've one more use case....

Between my dhcp client and dhcp server, one cisco relay agent is siting. This relay agent is inserting option 82 in the request coming from dhcp client and sending to server. I need to extract the value from option 82 at dhcp server ....how?
I've ubuntu linux 7.1 on both client and server machine.
 
Old 07-05-2008, 12:34 PM   #18
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Ah, nice. My NetBSD system's man page does not show that option, and I've not noticed it before on Linux or other systems. Good find! See... the man pages are our friends! :-)
 
Old 07-05-2008, 12:59 PM   #19
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Quote:
Originally Posted by Pavan Goyal View Post
I've one more use case....

Between my dhcp client and dhcp server, one cisco relay agent is siting. This relay agent is inserting option 82 in the request coming from dhcp client and sending to server. I need to extract the value from option 82 at dhcp server ....how?
I've ubuntu linux 7.1 on both client and server machine.
I don't know. Perhaps this:

http://www.thtech.net/article/10

or

man dhcp-options

option extensions-path text;

This option specifies the name of a file containing additional
options to be interpreted according to the DHCP option format as
specified in RFC2132.

http://www.faqs.org/rfcs/rfc2132.html

Last edited by Mr. C.; 07-05-2008 at 01:01 PM.
 
Old 10-01-2008, 02:18 PM   #20
vesperatus
Member
 
Registered: Feb 2004
Posts: 44

Rep: Reputation: 15
This is an old thread but read it following my research on how to use omshell. So i'll post what I found, it might anwser some questions in here.

Quote:
Originally Posted by Pavan Goyal View Post
If there are multiple DHCP servers running, is there is a way to configure client to give preference to a particular server ?
From the dhclient.conf man page you can read that :
Quote:
The select-timeout statement

select-timeout time;

It is possible (some might say desirable) for there to be more than one DHCP server serving any given network. In this case, it is
possible that a client may be sent more than one offer in response to its initial lease discovery message. It may be that one of
these offers is preferable to the other (e.g., one offer may have the address the client previously used, and the other may not).

The select-timeout is the time after the client sends its first lease discovery request at which it stops waiting for offers from
servers, assuming that it has received at least one such offer. If no offers have been received by the time the select-timeout has
expired, the client will accept the first offer that arrives.

By default, the select-timeout is zero seconds - that is, the client will take the first offer it sees.
You can also define new options in the dhcp server, look under DEFINING NEW OPTIONS in the dhcp-options man page. Then, in the dhclient.conf file, you should be able to use the "require" option and query for those new options. I have not tried it yet but it's in the man page.

On my mandriva 2008 system, my dhclient is started with the following command line :
Quote:
dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0
.
Funny thing is that the /etc/dhclient-eth0.conf file does not exists and the /etc/dhclient.conf file is also non-existent.... Anyway, still trying to connect with OMSHELL and force a DHCPRELEASE but I need to be able to configure the dhclient first.

Last edited by vesperatus; 10-01-2008 at 02:20 PM.
 
  


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
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
DHCP server and DHCP client in same box Eicos Linux - Networking 3 03-03-2007 01:28 PM
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 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

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

All times are GMT -5. The time now is 07:36 AM.

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