Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Setting a DHCP option?: (6 Items)
   
Setting a DHCP option?  
I've done some digging over the past few days and found aa good amount of info about the dhcp.client process, but I 
haven't found anything that'll let me set a specific DHCP option. 

For example, what if I wanted to set the value of the DHCP option 12 (hostname) in my DHCP Discover packet in order to 
specify my hostname? Or use a different value for my Client Identifier (Option 61) than the one the dhcp.client process 
uses by default?

I know I can use the /etc/dhcp/dhcp-options file to request additional options from the server, but how do I *set* 
additional options?

Thanks,

Mike
RE: Setting a DHCP option?  
One advantage to having source posted:
http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/services/dhcp
.client/dhcp.client.use?root=core_networking&rev=1&system=exsy1001&view=mark
up

	I think that covers it...

		Robert.

-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Thursday, May 08, 2008 4:41 PM
To: technology-networking
Subject: Setting a DHCP option?

I've done some digging over the past few days and found aa good amount of
info about the dhcp.client process, but I haven't found anything that'll let
me set a specific DHCP option. 

For example, what if I wanted to set the value of the DHCP option 12
(hostname) in my DHCP Discover packet in order to specify my hostname? Or
use a different value for my Client Identifier (Option 61) than the one the
dhcp.client process uses by default?


I know I can use the /etc/dhcp/dhcp-options file to request additional
options from the server, but how do I *set* additional options?

Thanks,

Mike

_______________________________________________
Technology
http://community.qnx.com/sf/go/post7897
Re: RE: Setting a DHCP option?  
How do I get permission to view it? 
RE: RE: Setting a DHCP option?  
If you've created a MyQNX account, you should be able to log in and "just
see it".  If you haven't logged in, the collabnet interface is a bit bizarre
in that what you have to do is go to the repository

http://community.qnx.com/sf/scm/do/listRepositories/projects.networking/scm

Clock on the "Core Networking" button and then click on "view Commits" (left
side).  You can then click on the "Browse repository" button.

I would have thought that the link that I gave you would have taken you
straight to the use message, but, then again, I'm logged in...

	Robert.

-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Thursday, May 08, 2008 5:16 PM
To: technology-networking
Subject: Re: RE: Setting a DHCP option?

How do I get permission to view it? 

_______________________________________________
Technology
http://community.qnx.com/sf/go/post7900
Re: RE: RE: Setting a DHCP option?  
OK, got it, thanks... 

I see that you guys have added the -D option for the client ID... but what if I wanted to set the Class-ID (option 60) 
as well? User Class Information (Option 77)??

You guys might want to consider adding a way to hook ANY custom DHCP option into the client application... 

Thanks for the info though. Very helpful!

Mike




RE: RE: RE: Setting a DHCP option?  
That feature already exits since the source is available.  You can add
whatever you want to it.

-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Thursday, May 08, 2008 6:18 PM
To: technology-networking
Subject: Re: RE: RE: Setting a DHCP option?

OK, got it, thanks... 

I see that you guys have added the -D option for the client ID... but what
if I wanted to set the Class-ID (option 60) as well? User Class Information
(Option 77)??

You guys might want to consider adding a way to hook ANY custom DHCP option
into the client application... 

Thanks for the info though. Very helpful!

Mike






_______________________________________________
Technology
http://community.qnx.com/sf/go/post7904