Hi, Setting up a new network. dhcp Code: subnet 10.0.0.0 netmask 255.255.240.0 { interface eth1; option broadcast-address 10.0.15.255; option subnet-mask 255.255.240.0; option routers 10.0.0.1; option domain-name-servers 10.0.0.1; default-lease-time 900; max-lease-time 7200; range 10.0.0.51 10.0.0.59; range 10.0.0.61 10.0.0.189; range 10.0.0.191 10.0.0.199; range 10.0.0.201 10.0.1.59; range 10.0.15.191 10.0.15.254; } clients getting an ip. It works ok when they receive an 10.0.0.x address. When they receive for example an 10.0.1.x address the pc can't go to internet. Can you tell me how to solve this problem? ....
When the device has a 10.0.1.x address, can you ICMP ping 10.0.0.1 with it? (check with tcpdump if ICMP ping reaches the router) Does your router have the correct netmask settings? The settings of the dhcp server seem correct, maybe you mistyped something on the router? If you can ICMP ping the router, maybe you've firewalled some stuff?
problem found: no route on router for the network. solved it for now wit: Code: route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.0.1 how to add this automatically?
That should actually be: Code: route add -net 10.0.0.0 netmask 255.255.240.0 gw 10.0.0.1 that should tell the router "ok, everything in the range 10.0.0.0/20 (10.0.0.1 up to 10.0.15.254) should be send to 10.0.0.1" If you have your network settings correctly setup on your router, this route should already be there. see: route -n