Roger Grosswiler wrote:
Paul Howarth wrote:
the adress of the (wished static) router is 10.0.0.3, the default route is 10.0.0.2 and no, they cannot be reached by the default gateway, as i separated them completely (2 different firewalls, no connection in between)Roger Grosswiler wrote:
I use 4 networks in total:
10.0.0.0/8 192.168.0.0/24-->default route 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24
All clients are in network 10.0.0.0/8, where i give them ip-adresses and default-gateway via dhcp.
I look now for something, where i can add static routes to the dhcp-configuration, so all clients in 10.0.0.0/8 get route-entries for the default-route (specified, works) AND the routes for the other networks. I googled around and found an entry option static-route [ip-adress ip-adress, ip-adress ip-adress] but i still did not get this running.
Can you help me please, getting all the routes via dhcp?
What is the address of the router to use to reach each of the additional networks? Can these networks not be reached via the default route from 10.0.0.0/8 anyway?
Paul.
You'd probably want this then:
option static-route 192.168.1.0 10.0.0.3, 192.168.2.0 10.0.0.3, 192.168.3.0 10.0.0.3;
However, it probably won't work; if you look at http://www.gsp.com/cgi-bin/man.cgi?section=5&topic=dhcp-options it says:
Also, please note that this option is not intended for classless IP routing - it does not include a subnet mask. Since classless IP routing is now the most widely deployed routing standard, this option is virtually useless, and is not implemented by any of the popular DHCP clients, for example the Microsoft DHCP client.
Paul.
Thanks Paul,
thats exactly what i tried before, but it even did not work on fedora core. This will mean, i have to make some kind of hack the get the routing fixed in the routing table. I'm gonna write a very little shell-script and let it execute on boot-up. I think, on windoze i can indicate them also as fixed route per client. :-( It would have been luxury...
Roger