[pkg-dhcp-devel] Bug#629632: multiple routers metric
Németh Csaba
csaba at sopron.hu
Wed Jun 8 09:44:16 UTC 2011
Package: isc-dhcp-client
Version: 4.1.1-P1-15+squeeze2
If I define multiple routers on dhcpd-server (line 'option routers'),
the client doesn't add metric for gateways.
Original lines:
for router in $new_routers; do
route add default dev $interface gw $router $metric_arg
done
Maybe the solution:
metric_arg=1
for router in $new_routers; do
route add default dev $interface gw $router $metric_arg
metric_arg=$(( $metric_arg+1 ))
done
Sorry for my poor English
Best regards:
Csaba Németh
More information about the pkg-dhcp-devel
mailing list