On Fri, Jun 14, 2013 at 9:16 PM, Stuart Henderson <s...@spacehopper.org> wrote: > On 2013-06-14, John Tate <j...@johntate.org> wrote: >> It doesn't complain about it but I've never done much with routing >> before. If I wanted to do it on the machine I'd do >> # route add -net 192.168.0.0/24 192.168.1.1 > > Why would you need to do this at all, it seems you are already using > 192.168.1.1 as your default route? I thought I needed it so 192.168.0/24 can access 192.168.1/24 > >> I can't seem to find how to do this in dhcp-options(5) >> >> Named won't even start with this... >> option static-routes 192.168.1/24 192.168.0.1; >> Or this... >> option static-routes 192.168.1.0/24 192.168.0.1; > > "option static-routes" is for classful (class A/B/C) addresses, you may > not specify a subnet mask there. > >>>> I have the following dhcpd.conf... >>>> shared-network kab { > > Why do you have shared-network? > Can't remember why I did that so I just got rid of it. I added "option routers 192.168.0.1, 192.168.1.1;" before the subnets at the top of the file and now I am getting the right default gateway.
I got rid of the static routes, they were not working anyway. I must need to add something to pf to route between subnets 192.168.0/24 and 192.168.1.1/24 and visa-versa. -- www.johntate.org