On 2024-01-07, All <olp_76@yahoo.ca> wrote:
> This is very much doable with DHCP one liner:
> add the following to your dhcpd.conf ((!) inside the block of your 192.168.2.0/24 network)
> option classless-static-routes 192.168.3.0/24 192.168.2.1;
>
> This will install static route into all machines in 192.168.2.0/24 network.
On clients that follow the spec properly, that will *override* the
default routes so they will have a route to 192.168.3.0/24 but no
default route.
You need to include the default route too, for example (assuming that should go via 192.168.2.254),
option classless-static-routes 192.168.3.0/24 192.168.2.1, 0.0.0.0/0 192.168.2.254;
No comments:
Post a Comment