My linux box has 3 NICs:
eth0 -> connected to the Internet
eth1 -> ip:192.168.1.1
wlan0 -> ip:192.168.0.1
eth0 obtains ip thru' dhclient w/o problem.
i want to setup a DHCP server that provides IPs to clients connected via eth1 and wlan0 and they are supposed to be on 2 different subnets.
my dhcpd.conf is as follows:
Code:
subnet 192.168.1.0 netmask 255.255.255.0
{
range 192.168.1.100 192.168.1.200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers 123.123.123.10, 123.123.123.20;
option routers 192.168.1.1;
}
subnet 192.168.0.0 netmask 255.255.255.0
{
range 192.168.0.100 192.168.0.200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers 123.123.123.10, 123.123.123.20;
option routers 192.168.0.1;
}
the client connected via eth1 works well and can obtain an ip 192.168.1.100 successfully.
however, another client (myLaptop) connected wirelessly, via wlan0 can obtain 169.254.x.x automactically. of course, it cannot ping the gw 192.168.0.1. when i tried to manually type the ip 192.168.0.100 netmask 255.255.255.0 gw 192.168.0.1 in myLaptop, it worked then. it indicates that there is no problem for my wireless lan settings. so i guess there is some problem for the dhcp settings. how to bring it work?