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

Reply via email to