LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2010, 06:42 AM   #1
nobody-user
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
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?
 
Old 07-12-2010, 12:40 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
/etc/init.d/networking restart is deprecated, use ifup/ifdown
 
Old 07-13-2010, 05:35 AM   #3
nobody-user
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 07-13-2010, 10:51 PM   #4
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Rep: Reputation: 18
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.
 
Old 07-14-2010, 01:45 AM   #5
nobody-user
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP not working on campus network Ryzol Slackware 16 04-17-2008 04:56 PM
restarting network, renewing DHCP adress in slackware 9 Clarence27 Slackware 4 04-09-2008 04:02 PM
New DHCP router some debian software not working Tuetates Linux - Networking 1 05-11-2006 12:39 AM
Network/dhcp not working with suse10 Indkoeti Linux - Networking 3 10-24-2005 07:32 AM
Network Installing Debian: DHCP isn't working. SonicGT Linux - Networking 3 06-25-2005 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration