Re: Static Routes via DHCP - How to do?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roger Grosswiler wrote:
Paul Howarth wrote:

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.

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)

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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux