*** From dhcp-server -- To unsubscribe, see the end of this message. ***
Ted Lemon wrote:
>
> *** From dhcp-server -- To unsubscribe, see the end of this message. ***
>
> You need to define the option on the client side as well as the server
> side to get it to come out pretty-printed.
>
> _MelloN_
>
Ok, I can make the define-it-yourself options work, but I still can't
get things pretty-printed.
My dhcpd.conf:
node0:~# cat /chroot/dhcpd/etc/dhcpd.conf
option complex-static-routes code 200 = array of {
ip-address, ip-address, ip-address };
deny bootp;
deny unknown-clients;
subnet 10.0.0.0 netmask 255.255.255.0 {
filename "/boot/install.ks";
server-name "10.0.0.1";
#option bootfile-name "/boot/install.ks";
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
option subnet-mask 255.255.255.0;
}
subnet 10.0.1.0 netmask 255.255.255.0 {
filename "/boot/install.ks";
server-name "10.0.1.1";
#option bootfile-name "/boot/install.ks";
option broadcast-address 10.0.1.255;
#option routers 10.0.1.1;
option subnet-mask 255.255.255.0;
}
group {
use-host-decl-names on;
host node1 {
hardware ethernet ...;
fixed-address 10.0.0.2;
}
# more of the same...
}
group {
host node1g {
hardware ethernet ...;
fixed-address 10.0.1.2;
option complex-static-routes 10.0.1.0 10.0.1.2
255.255.255.0;
}
# more of the same ...
}
My /etc/dhclient.conf:
node1:~# cat /etc/dhclient.conf
option complex-static-routes code 200 = array of {
ip-address, ip-address, ip-address };
interface "eth1" {
request complex-static-routes;
}
I try to bring up eth1:
node1:~# ifdown eth1 ; sleep 1 ; ifup eth1
Using DHCP for eth1... dhclient.c: 141, ip->name = eth1, ip->flags = 1
Internet Software Consortium DHCP Client V3.0alpha 19990507
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html
/etc/dhclient.conf line 5: : expected option name.
request complex-static-routes;
^
new_complex_static_routes
old_complex_static_routes
new_option_200
old_option_200
Listening on LPF/eth1/...
Sending on LPF/eth1/...
Sending on Socket/fallback/fallback-net
DHCPREQUEST on eth1 to 255.255.255.255 port 67
ip length 328 disagrees with bytes received 332.
accepting packet with data after udp payload.
DHCPACK from 10.0.1.1
new_complex_static_routes
old_complex_static_routes
new_option_200
old_option_200
bound to 10.0.1.2 -- renewal in 21600 seconds.
(The new_complex_static_routes ... old_option_200 are echo statements I
added to /etc/dhclient-script... If they had any values, they'd be
printed after the labels above.)
Now, if I 'request option-200' in my /etc/dhclient.conf instead of
'request complex-static-routes' I will get a value, so I guess I'm still
just defining complex-static-routes wrong on the client side? (FWIW,
the option is getting rejected in SOURCE_DIR/client/clparse.c ~line
530.)
The other problem is that there is never any old_option_200. Is there
any plans to add this feature? (It's possible for me to declare
new_complex_static_routes that aren't bound to the interface that is
coming up at the time and therefore won't be automatically removed by
linux. If I had the old_complex_static_routes, I could make sure they
would be gone.)
Anyway, a quick demonstration of the correct way to define options on
the client side would be extremely appreciated.
Thanks,
--
Jason Holmes
------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED] Please try to use the web
page first - it will take a long time for your request to be processed by hand.
Archives for this mailing list are available at
http://www.webnology.com/list-archives/dhcp/dhcp-server
------------------------------------------------------------------------------