LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-11-2012, 08:02 AM   #1
mahi.karnam
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
dhcp server is not staring on eth1 interface


i am trying to start dhcp server on my linux system which contains two nic cards. when i started it using the command "/sbin/etc/service dhcpd start" it started properly but in /var/log/messages file i can see error the message

"No subnet declaration for eth1 (192.168.200.2).** Ignoring requests on eth1. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segmentto which interface eth1 is attached. **"


and my etc/dhcpd.conf file contents are

ddns-update-style none;
subnet 135.254.179.0 netmask 255.255.255.0 {
}
subnet 192.168.200.0 netmask 255.255.255.0 {
option routers 192.168.200.2;
option subnet-mask 255.255.255.0;
option bootfile-name "include ftp://ng3600reg9:tigris@192.168.200.2/tmp/adpi.adp";
range 192.168.200.1 192.168.200.1;
default-lease-time 0;
max-lease-time 0;

}

pleas help me on this issue
 
Old 12-11-2012, 04:01 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I don't see anything about your config file that looks wrong (although I suggest posting stuff like that and source code in [CODE] [/CODE] tags to preserve readability). What happens if you swap the postions of the two subnet stanzas within the file? Does the server actually work correctly? Are you sure the error message is current, and not from some prior configuration? It might be helpful to post the details of your software & version.

--- rod.
 
Old 12-11-2012, 04:28 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Welcome to LinuxQuestions.

What linux distribution/version are you running?

You need to specify the interface in the dhcpd.conf file by adding dhcdpargs=eth1 or eth0 i.e. whatever adapter is attached to your local LAN. If your network is more complicated please post the details.
 
  


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
How to set a route for Eth1 (DHCP clients) to reach Tun0 (openvpn server)? CentOS torontob Linux - Networking 2 09-22-2010 12:14 AM
eth1 interface doesnt start automatically ubuntu server 9.04 Person_1873 Linux - Networking 10 12-20-2009 07:19 AM
[SOLVED] Linux Router: Iptables rules and dhcp server on eth1 Sum1 Linux - Networking 5 09-25-2009 03:05 AM
dhcp server - can't figure out dhclient.conf for eth1 JoeBleaux Debian 1 04-06-2009 05:13 PM
DHCP Server, interface issue graciejj_82 Linux - Networking 1 09-07-2006 04:48 AM

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

All times are GMT -5. The time now is 02:52 PM.

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