LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-05-2008, 07:08 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Rep: Reputation: 15
Is it possible to configure for binding dhcp to ip/interface?


Hi all,
Can i have suggestion , i'm trying to have two dhcp server on same machine with two interface[gateway]
eth0-192.168.1.104
eth1-192.168.10.104
am unable to figure how to bind dhcp to ip, say 192.168.1.104
and another on eth1-192.168.10.104
basic is to have control[modify/start/stop] over dhcp servers of two subnet.
instead of specifying in same /etc/dhcpd.conf

thanks in advance
santosh
 
Old 02-05-2008, 07:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
It's worth backing up and seeing why you want to do this in the first place. It's common to use one single instance of dhcpd to serve hundreds of networks full of clients, not just two interfaces... there is no problem to define two subnets in a single dhcpd.conf file.
 
Old 02-05-2008, 08:23 AM   #3
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Well, he could be DHCP'ing a couple of different networks that have no routing between them. *shrug*

Either way, no, you can't.

Quote:
Originally Posted by LinuxHomeNetworking
You can't run your DHCP sever on multiple interfaces because you can only have one route to network 255.255.255.255. If you try to do it, you'll discover that DHCP serving working on only one interface.
Taken from here: http://www.linuxhomenetworking.com/w..._Multiple_NICs

Last edited by ARC1450; 02-05-2008 at 08:25 AM.
 
Old 02-05-2008, 08:38 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
heh, OP mistook "report" for "reply"...
Quote:
yeap i agree to what you saying, if we want to disable /modify dhcp on specific subnet{} we need to restart the service dhcpd, which is going to affect already allocated ips of other subnet, the ips would be again availabe, as memory is refreshed, on restart.
we prefer to bifurcate control of two subnets, has there are two entirely different servers catering service to 2 subnets.
not true. you can hup the daemon to reread a config file and maybe have 1 second of outage. dhcp leases are written to disk, they are not lost. as above, how could you service over 10,000 systems on dhcp if they all get lost on a reboot?
 
Old 02-05-2008, 08:48 AM   #5
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie View Post
heh, OP mistook "report" for "reply"...not true. you can hup the daemon to reread a config file and maybe have 1 second of outage. dhcp leases are written to disk, they are not lost. as above, how could you service over 10,000 systems on dhcp if they all get lost on a reboot?
Did you perhaps just post to the wrong thread? O.o
 
Old 02-05-2008, 08:49 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no. i don't do things like that...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bonding / Binding multiple interface into 1 netguy2000 Linux - Networking 15 09-03-2007 04:06 AM
binding ssh and nessusd to ethernet interface sscultima Linux - Server 1 07-11-2007 08:32 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
Telnetd binding interface ultrix Linux - Security 2 02-11-2005 04:23 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM

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

All times are GMT -5. The time now is 11:03 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