DHCP assistance required.

Nifty Fedora Mitch niftyfedora at niftyegg.com
Thu Feb 19 19:22:54 UTC 2009


On Tue, Feb 17, 2009 at 09:50:30PM +1100, Simon Slater wrote:
> On Tue, 2009-02-17 at 10:32 +0000, Steve Searle wrote:
> > Around 05:56am on Tuesday, February 17, 2009 (UK time), Simon Slater scrawled:
> > 
> > You owe me one :-)
> > 
> > > default-lease-time 600;
> > > max−lease−time 7200; 
> >         should be:
> >   max-lease-time
> > 
> > 
> > The max-lease-time does not contain dashes but some sort of double
> > length dash.
> > 
> > Steve
> > 
> You got it!  Finally dhcp is up and running. Many thanks!  I just wonder
> why the parser was pointing to the line before this one?
> 
> Now I can start setting up the clients ... in the morning.

It does pay to use "od" or the like with the ascii man page.

$ echo 'max−lease−time 7200' | xod
Offset:    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
00000000: 6d 61 78 e2 88 92 6c 65 61 73 65 e2 88 92 74 69 | max...lease...ti |
00000010: 6d 65 20 37 32 30 30 0a 00 00 00 00 00 00 00 00 | me 7200......... |
$ echo 'max-lease-time 7200' | xod
Offset:    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
00000000: 6d 61 78 2d 6c 65 61 73 65 2d 74 69 6d 65 20 37 | max-lease-time 7 |
00000010: 32 30 30 0a 00 00 00 00 00 00 00 00 00 00 00 00 | 200............. |
$ echo '- - - ' | xod
Offset:    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
00000000: 2d 20 2d 20 2d 20 0a 00 00 00 00 00 00 00 00 00 | - - - .......... |
$ echo ' − −' | xod
Offset:    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
00000000: 20 e2 88 92 20 e2 88 92 0a 00 00 00 00 00 00 00 |  ... ........... |



-- 
	T o m  M i t c h e l l 
	Found me a new hat, now what?





More information about the fedora-list mailing list