LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcp not working after restarting network in debian (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-not-working-after-restarting-network-in-debian-819379/)

nobody-user 07-12-2010 06:42 AM

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?

craigevil 07-12-2010 12:40 PM

/etc/init.d/networking restart is deprecated, use ifup/ifdown

nobody-user 07-13-2010 05:35 AM

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

landysaccount 07-13-2010 10:51 PM

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.

nobody-user 07-14-2010 01:45 AM

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.