Hello, I'm trying to use "udhcpc" from busybox (The client, not the server) to obtain classless static routes through a DHCP packet.
My DHCP server side (isc-dhcpd-4.1.1-P1) is configured with: option rfc3442-classless-static-routes code 121 = array of integer 8; option ms-classless-static-routes code 249 = array of integer 8; and option rfc3442-classless-static-routes 24, 192, 168, 123, 10, 10, 10, 1, 0, 192, 168, 1, 2; option ms-classless-static-routes 24, 192, 168, 123, 10, 10, 10, 1, 0, 192, 168, 1, 2; However on the client side I don't appear to source that data as part of the DHCP query. Here's the udhcpc client query strings I've tried: /sbin/udhcpc -C $(dmidecode -s system-serial-number) -n -q -s /etc/udhcpc/udhcpc.script -i eth0 -O 121 /sbin/udhcpc -C $(dmidecode -s system-serial-number) -n -q -s /etc/udhcpc/udhcpc.script -i eth0 -O staticroutes In /etc/udhcpc/udhcpc.script I'm printing the following to STDOUT to see if the routes are pupulated: echo "DHCP Boot Function = ${1} $2 $3 $4 $5 $6 $7" echo "Broadcast = ${broadcast}" echo "Netmask = ${subnet}" echo "Domain = ${domain}" echo "Leased IP = ${ip}" echo "Router = ${router}" echo "CIDR Route = $cidrroute" It looks like "$cidroute" should be populated by option 121/staticroutes but that doesn't work. Any suggestions would be greatly appreciated. Thank you, -Alex
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox