Dhcp client issue
Rick Stevens
ricks at nerd.com
Thu Jan 28 21:50:39 UTC 2010
On 01/28/2010 01:27 PM, Ed Greshko wrote:
> Ed Greshko wrote:
>> Philip A. Prindeville wrote:
>>
>>
>>> 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.
>>>
>>>
>>>
>> If I have time later in the day I'll see if I can be helpful.
>>
>>
> I could not get back to sleep....
>
> Even though I didn't try the following as of yet, maybe you could?
>
> To make it easy to parse...maybe they are expecting a string to be
> enclosed in quotes. Have you tried....
>
> send dhcp-client-identifier "hardware" ;
I don't think that's it. I don't think dhclient permits indention
using horizontal tabs. The error messages start with "#011",
and 011 octal is the horizontal tab character.
To the OP: try indenting your script using spaces, not tabs and see if
that works.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer ricks at nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- Any sufficiently advanced technology is indistinguishable from a -
- rigged demo. -
----------------------------------------------------------------------
More information about the users
mailing list