LinuxQuestions.org
Help answer threads with 0 replies.
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 02-07-2003, 02:51 AM   #1
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
DHCPd for multiple interfaces


Hi!
Was anyone able to set up isc dhcp server to function on multiple interfaces. What I'm trying to do is use dhcpd on cable eth and wireless eth, but can't make dhcp server to give ips from different class to coressponding interface ie
eth1 192.168.1.140-192.168.1.160
eth2 192.168.3.140-192.168.3.160
unless I deny unknown clients in one subnet, and make reservation for each client, my dhcpd server would always use up first poll and then move to the next one regardless of interfaces..


here is my dhcpd.conf

ddns-update-style none;
shared-network MYNET{
option domain-name "ns.mynet.net";
option domain-name-servers dns1, dns2;
authoritative;
subnet 192.168.3.0 netmask 255.255.255.0 {
option routers 192.168.3.1;
range 192.168.3.140 192.168.3.160;
default-lease-time 28800;
one-lease-per-client on;
deny unknown-clients;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.140 192.168.1.180;
default-lease-time 28800;
# one-lease-per-client on;
# always-broadcast on;
}
}

Any feedback is very welcome

Last edited by Noerr; 08-09-2004 at 07:55 AM.
 
Old 02-07-2003, 04:09 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
dhcpd takes a device as an argument, and a different conf file as another argument, although its best just to built it so that its one file, 2 entries, and dhcpd is smart enough to realize that if eth0 is on 192.168.2.x and eth1 is on 192.168.0.x it'll match the right subnet declaration with the right card.

I've only had to do 2 once... and I helped a guy with a 5 entry one once... there's something blindingly obvious to me that isn't occuring to me right now... By default it only directs at eth0, so I think the trick was simply:

dhcpd eth0 eth1

Probably,

Cheers,

Finegan
 
Old 02-07-2003, 06:40 PM   #3
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
I have eth0 192.168.0.1 and eth2 192.168.98.1 and here is my simplified dhcpd.conf:

# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
default-lease-time 2400;
max-lease-time 7200;
option domain-name "mydomain.com";
ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
range 192.168.0.51 192.168.0.249;
}

subnet 192.168.98.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.98.255;
option routers 192.168.98.1;
range 192.168.98.51 192.168.98.249;
}

and DHCP starts in my startup script (rc.inet2 in slackware):
Code:
/usr/sbin/dhcpd eth0 eth2
 
  


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
RedHat: dhcpd.conf - error: Not configured to listen on any interfaces! alinuxLQ Linux - Networking 8 11-05-2015 06:00 PM
dhcpd on multiple ethernet interfaces Jestrik Linux - Networking 10 10-03-2011 09:40 AM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM
dhcpd - Not configured to listen on any interfaces. ritter Linux - Networking 1 07-05-2004 03:48 PM
multiple loopback interfaces arkin Linux - Networking 1 11-18-2003 04:22 PM

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

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