Re: Dhcp client issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/28/2010 12:40 AM, Ed Greshko wrote:
> Philip A. Prindeville wrote:
>   
>> Hi.
>>
>> I'm running FC12, updated on x86_64 hardware.
>>
>> My dhcp server is expecting my client (the FC12 box) to send a request with:
>>
>> option dhcp-client-identifier 01:XX:XX:XX:XX:XX
>>
>> where XX:XX:XX:XX:XX:XX is the MAC address, and 01 is the type-code for
>> Ethernet.
>>
>> Unfortunately, by default Fedora omits this option in the request.
>>
>> Is there an easy way to do this?  Like:
>>
>> interface "eth0" {
>>     send dhcp-client-identifier hardware;
>> }
>>
>>
>> for instance?
>>
>>   
>>     
> man dhclient.conf
>
> Shows as a sample....
>
>       interface "ep0" {
>            send host-name "andare.fugue.com";
>            send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
>            send dhcp-lease-time 3600;
>            supersede domain-search "fugue.com rc.vix.com home.vix.com"
>
>
>   

Yes, I too can RTFM.

I didn't want to have a literal client-identifier, because I have too
many hosts to manage.

man dhcp-eval says:

       The Internet Systems Consortium DHCP client and server both provide the
       ability to perform conditional behavior depending on  the  contents  of
       packets  they  receive.

and:

       hardware

          The hardware operator returns a data string whose first  element  is
          the  type of network interface indicated in packet being considered,
          and whose subsequent elements are client’s link-layer address. [...]

but when I try this, I get:


Jan 28 09:03:35 builder dhclient[25694]: /etc/dhcp/dhclient.conf line 4: expecting string or hexadecimal data.
Jan 28 09:03:35 builder dhclient[25694]: #011send dhcp-client-identifier hardware;
Jan 28 09:03:35 builder dhclient[25694]:                                      ^
Jan 28 09:03:35 builder dhclient[25694]: /etc/dhcp/dhclient.conf line 4: expecting a statement.
Jan 28 09:03:35 builder dhclient[25694]: #011send dhcp-client-identifier hardware;
Jan 28 09:03:35 builder dhclient[25694]:                                              ^
Jan 28 09:03:35 builder dhclient[25694]: /etc/dhcp/dhclient.conf line 5: semicolon expected.
Jan 28 09:03:35 builder dhclient[25694]: 
Jan 28 09:03:35 builder dhclient[25694]: ^
Jan 28 09:03:35 builder dhclient[25694]: /etc/dhcp/dhclient.conf line 5: unterminated interface declaration.
Jan 28 09:03:35 builder dhclient[25694]: 
Jan 28 09:03:35 builder dhclient[25694]: ^



So it's not clear to me from the manual where you can have a dynamic
expression, and where you're required to have a literal.

-Philip



-- 
users mailing list
[email protected]
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux