One DHCP server serving 2 subnets
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:
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? |
did you make sure you aren't blocking the incoming and/or outgoing "DHCP packets" on the wireless interface with iptables??
Code:
iptables -I INPUT -p UDP -i wlan0 --dport 67 --sport 68 -j ACCEPT |
thanks, but it still dun work
i updated the iptables, which is now: Code:
Chain INPUT (policy ACCEPT) |
Quote:
|
All times are GMT -5. The time now is 05:53 PM. |