DHCP client 3.1 routes Ubuntu server 8.10

Статус
Закрита.

celerons

Лёша
Доброго времени суток. Кто то смог заставить DHCP 3.1 ( ubuntu 8.10 server ) получать автоматом таблицу маршрутов.

Пробовал так:
Код:
$ cat rfc3442-classless-routes 
RUN="yes"


if [ "$RUN" = "yes" ]; then

        if [ x"$new_rfc3442_classless_static_routes" != x"" ]; then

                if [ x"$reason" == x"BOUND" ]; then
                        rfc_routes=($new_rfc3442_classless_static_routes)

                        for(( i=0; i < ${#rfc_routes[@]}; )); do
                                net_length=${rfc_routes[$i]}

                                ((i++))

                                net_address=(0 0 0 0)
                                for(( j=0; j < $[$net_length / 8 + \
                                    ($net_length % 8 ? 1 : 0)]; j++, i++)); do

                                        net_address[$j]=${rfc_routes[$i]}
                                done

                                gateway=(0 0 0 0)
                                for (( j=0; j < 4; j++, i++ )); do
                                        gateway[$j]=${rfc_routes[$i]}
                                done

                                old_IFS="$IFS"
                                IFS='.'

                                if [ x"$net_length" == x"32" ]; then
                                        /sbin/route add -host "${net_address[*]}" gw "${gateway[*]}"
                                else
                                        /sbin/route add -net "${net_address[*]}/$net_length" gw "${gateway[*]}"
                                fi
                                IFS="$old_IFS"

                        done

                fi
        fi
fi
Код:
$ cat /etc/dhcp3/dhclient.conf
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
#
request subnet-mask, broadcast-address, time-offset, routers,
       domain-name, domain-name-servers, host-name,
       netbios-name-servers, netbios-scope, interface-mtu,
       rfc3442-classless-static-routes;

но при service networking restart
смотрю ip route или netstat -r -n без результатно, пока, как выход, создал таблицу вручную, но если вдруг добавят новый маршрут в пстс ( к примеру сеть прилинкуют изменят чего-то прийдётся и мне изменять а это не выход ) или в телесвите.
 
Статус
Закрита.
Зверху