<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/04/2014 12:47 AM, alessandro
macuz wrote:<br>
</div>
<blockquote
cite="mid:CAFrGbuWBuXe++2oznKv_RvVDsmevJsg5HxG9BKMG0Fj=xD92kQ@mail.gmail.com"
type="cite">
<div dir="ltr">2014-04-08 16:39 GMT+02:00 Sten Carlsen <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:stenc@s-carlsen.dk" target="_blank">stenc@s-carlsen.dk</a>></span>:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFCC" text="#000000"> Just a thought:<br>
<br>
Did you consider to let the DHCP server send the correct
gateway? Would that solve the issue?<br>
</div>
</blockquote>
<div><br>
</div>
<div>This is a dual-homed machine. The default route must be
through via gw 1 through the interface 1 but some routes
must be reached via the gateway 2 thorugh the interface 2.
Configuration on the host via DHCP on any interfaces is
preferable<br>
<br>
</div>
<div>I realize now that is a much more precise description
of the situation and the goals that I must achieve and I
should have written at the beginning :-)<br>
</div>
</div>
</div>
</div>
</blockquote>
You can only provide multiple defaults routes if they are all
equivalent. I have seen this screwed up multiple times.<br>
If some devices can only be reached via gateway 2 then they need
static routes. You might have to append option 33 to the
dhcp-parameter-request-list and add code to the client to process
it. From the man page:<br>
<br>
option static-routes ip-address ip-address<br>
[, ip-address ip-address...];<br>
<br>
This option specifies a list of static routes that the
client should install in its routing cache. If multiple routes to
the<br>
same destination are specified, they are listed in
descending order of priority.<br>
<br>
The routes consist of a list of IP address pairs. The
first address is the destination address, and the second address is
the<br>
router for the destination.<br>
<br>
The default route (0.0.0.0) is an illegal
destination for a static route. To specify the default route, use
the routers<br>
option. Also, please note that this option is not intended
for classless IP routing - it does not include a subnet mask.<br>
Since classless IP routing is now the most widely
deployed routing standard, this option is virtually useless, and is
not<br>
implemented by any of the popular DHCP clients, for example
the Microsoft DHCP client.<br>
<br>
<pre class="moz-signature" cols="72">--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who
</pre>
</body>
</html>