Hi,
maybe it would work if I fix this part of the dhclient script for my needs
add_new_routes() {
$LOGGER "Adding new routes"
$ROUTE add $new_ip_address $LOCALHOST >/dev/null 2>&1
# Only allow the default route to be overridden if it's on our own interface
# DEFAULTROUTE_IFACE=`route get default | grep interface | awk '{print $2};'`
#if [ -z "${DEFAULTROUTE_IFACE}" -o "{$interface}" = "${DEFAULTROUTE_IFACE}" ]; then
#for router in $new_routers; do
#if [ "$new_ip_address" = "$router" ]; then
#$ROUTE add default -iface $router
#>/dev/null 2>&1
# echo $ROUTE add default -iface $router | $LOGGER
# echo $new_routers > /tmp/${interface}_router
# else
# $ROUTE add default $router
# echo $ROUTE add default $router | $LOGGER
# #>/dev/null 2>&1
# echo $new_routers > /tmp/${interface}_router
#fi
# 2nd and subsequent default routers error out, so explicitly
# stop processing the list after the first one.
#break
#done
#fi
But I am not so sure how I can recognise and separate the second default gatway… which is - as I was told today - isn't a second default gateway at all, it's
a win2k proxy server whose pdc thinks its a failover dhcp server...
I don't know why they don't do anything about it... buts it's absolutely worthless to get mad about it...