dhcp not working after restarting network in debian
I installed dhcp on my Debian server and it was working fine
untile I restart network with this : /etc/init.d/networking restart and then dhcp was not working. Could you help me? |
/etc/init.d/networking restart is deprecated, use ifup/ifdown
|
I used ifup -a but it didn't work.
I also test ifdown -a , ifup -a on a test server and it didn't work. If I reboot the server dhcp will work again, But I can't do it an the remote server. thank's in advance |
Make sure your internal iface or the iface that will be assigning ip addresses is in the same netmask as the ip address your dhcp server is listening to.
For example, if your server is going to assign ip addresses to your lan in 172.16.0.0/16 make sure the conf in dhcpd.conf you have: subnet 172.16.0.0 netmask 255.255.0.0 { range 172.16.254.100 172.16.254.150; } And also make sure your internal iface is also under the same mask. Check /var/log/syslog for any error messege when restarting or starting your dhcp server. |
thanks,But as I said in the first post,dhcp was working fine until I restart network using :
/etc/init.d/network restart It would work if I restart the server But I can't afford that. |
All times are GMT -5. The time now is 01:30 PM. |