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
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; So I'm kind of lost with the static routes, but why should this effect the default route? On Fri, Jun 14, 2013 at 5:16 PM, Михаил Швецов <mishve...@rambler.ru> wrote: > > > > may be > option static-routes 192.168.0.0 192.168.1.1; > 192.168.0.0 - wrong? > Михаил Швецов. > >> 14.6.2013 10:10:30 пользователь John Tate (j...@johntate.org) написал: >> >> >> I am trying to serve addresses to two subnets, for two ethernet >> devices for my wired and wireless lan. Devices on the wireless lan are >> getting the default route 192.168.0.1 instead of 192.168.1.1 so >> wireless devices at the moment cannot access the Internet unless I >> manually configure them. >> >> Interface configurations.. >> # cat /etc/hostname.fxp0 >> inet 192.168.0.1 255.255.255.0 192.168.0.255 >> up >> # cat /etc/hostname.athn0 >> inet 192.168.1.1 255.255.255.0 192.168.1.255 >> up media autoselect mode 11g mediaopt hostap nwid KintaroABODE chan 11 >> wpa wpakey XXXXXXXX wpaprotos wpa2 >> >> I have the following dhcpd.conf... >> shared-network kab { >> subnet 192.168.0.0 netmask 255.255.255.0 { >> range 192.168.0.65 192.168.0.254; >> option routers 192.168.0.1; >> option domain-name "kab.loc"; >> option static-routes 192.168.1.0 192.168.0.1; >> option domain-name-servers 192.168.0.1; >> } >> >> subnet 192.168.1.0 netmask 255.255.255.0 { >> range 192.168.1.65 192.168.1.254; >> option routers 192.168.1.1; >> option domain-name "wifi.kab.loc"; >> option static-routes 192.168.0.0 192.168.1.1; >> option domain-name-servers 192.168.1.1; >> } >> } >> >> There are a bunch of hosts but nothing before the subnets, and no >> special options for hosts just static addresses. >> >> Here is a host in dhpd.conf receiving the wrong default route... >> host weiner.wifi.kab.loc { >> hardware ethernet ac:81:12:98:de:f3; >> fixed-address 192.168.1.2; >> } >> >> Devices are getting the right IP, domain name, and static routes, just >> not the default route. >> >> -- >> www.johntate.org >> > -- www.johntate.org