Networking Forums

Networking Forums > Computer Networking > Linux Networking > Running a DHCP server on multihomed Linux

Reply
Thread Tools Display Modes

Running a DHCP server on multihomed Linux

 
 
Suk
Guest
Posts: n/a

 
      01-04-2008, 01:22 PM
Hi

Im using openSuSE 10.3 and I have a 2 network cards :

eth0 is 10.0.0.0/8 and eth1 is 192.168.0.0/24

There is no packet forwarding between the interfaces.

Im using the DHCP server shipped with openSUSE and want to be able to
configure it so that the DHCP server listens on both interfaces and is
able to issue appropriate IP's to each network. Is it possible to do
this? Can the DHCP server work with 2 interfaces? I thought perhaps I
could configure 2 copies of the dhcp server to listen to each
interface seperately, but that seems like a crappy way doing things...

Havn't found much on this topic trawling through Google ...anyone know
where to start?
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      01-04-2008, 01:28 PM
On 2008-01-04, Suk <(E-Mail Removed)> wrote:
> Im using the DHCP server shipped with openSUSE and want to be able to
> configure it so that the DHCP server listens on both interfaces and is
> able to issue appropriate IP's to each network. Is it possible to do
> this?


Sure it is, just read the man page of dhcpd and configure it
accordly.

> where to start?


the man page of dhcpd

Davide

--
I used to be interested in Windows NT, but the more I see of it the more
it looks like traditional Windows with a stabler kernel. I don't find
anything technically interesting there. In my opinion MS is a lot better
at making money than it is at making good operating systems.
-- Linus Torvalds
 
Reply With Quote
 
Suk
Guest
Posts: n/a

 
      01-04-2008, 01:47 PM
On 4 Jan, 14:28, Davide Bianchi <davideyeahs...@onlyforfun.net> wrote:
> On 2008-01-04, Suk <suk...@zoom.co.uk> wrote:
>
> > Im using the DHCP server shipped with openSUSE and want to be able to
> > configure it so that the DHCP server listens on both interfaces and is
> > able to issue appropriate IP's to each network. Is it possible to do
> > this?

>
> Sure it is, just read the man page of dhcpd and configure it
> accordly.
>
> > where to start?

>
> the man page of dhcpd
>
> Davide
>
> --
> I used to be interested in Windows NT, but the more I see of it the more
> it looks like traditional Windows with a stabler kernel. I don't find
> anything technically interesting there. In my opinion MS is a lot better
> at making money than it is at making good operating systems.
> -- Linus Torvalds


Thanks but if you don't know the answer then please dont post a reply

If you know the answer, then try typing in something helpful rather
than trying to act "smart"

I wouldn't be asking If I hadn't tried the obvious already. If you
know something I dont - why dont you try sharing your knowledge?





 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      01-04-2008, 04:12 PM
Suk <(E-Mail Removed)> wrote:
> Im using the DHCP server shipped with openSUSE and want to be able to
> configure it so that the DHCP server listens on both interfaces and is
> able to issue appropriate IP's to each network. Is it possible to do
> this?


On 4 Jan, 14:28, Davide Bianchi replied:
> Sure it is, just read the man page of dhcpd and configure it
> accordly.


Suk <(E-Mail Removed)> wrote:
> Thanks but if you don't know the answer then please dont post a reply


man dhcpd says, variously, the following:

(a) In the section "COMMAND LINE",

The names of the network interfaces on which dhcpd should listen
for broadcasts may be specified on the command line. [...] If
no interface names are specified on the command line dhcpd will
identify all network interfaces which are up [...] and listen for
DHCP broadcasts on each interface.


(b) In the section CONFIGURATION,

The syntax of the dhcpd.conf(5) file is discussed separately. This
section should be used as an overview of the configuration process,
and the dhcpd.conf(5) documentation should be consulted for detailed
reference information.


The referenced man page for dhcpd.conf says:

Declarations are used to describe the topology of the network, to
describe clients on the network, to provide addresses that can be
assigned to clients, or to apply a group of parameters to a group
of declarations.


On my Debian box (admittedly not openSUSE, about which I have no
information) there's even an example file under /usr/share/doc/ that
includes the sort of thing you need.


Seems pretty clear to me.
Chris
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      01-04-2008, 05:24 PM
On 2008-01-04, Suk <(E-Mail Removed)> wrote:
> I wouldn't be asking If I hadn't tried the obvious already.


So why don't you tell us what you tried, and what didn't worked?

Obviously, you did something wrong, byt you can't figure out what,
so tell us what you did instead of asking for a ready-to-eat-meal.

Davide

--
Eh? Linux is luserproof? What kind of "proper" set up is that,
ripping out all removable media devices and ethernet, freezing the
hard drive spindle, encasing it in concrete and dropping it off a pier?
-- Greg Andrews on alt.sysadmin.recovery
 
Reply With Quote
 
Driver
Guest
Posts: n/a

 
      01-22-2008, 09:33 AM
>
> Thanks but if you don't know the answer then please dont post a reply
>
> If you know the answer, then try typing in something helpful rather
> than trying to act "smart"
>
> I wouldn't be asking If I hadn't tried the obvious already. If you
> know something I dont - why dont you try sharing your knowledge?


I agree. Linux supporters are full of idiots pretending they know
something when all they can do is spout "read the man pages".
 
Reply With Quote
 
Ignoramus6442
Guest
Posts: n/a

 
      01-22-2008, 05:07 PM
On 2008-01-04, Suk <(E-Mail Removed)> wrote:
> On 4 Jan, 14:28, Davide Bianchi <davideyeahs...@onlyforfun.net> wrote:
>> On 2008-01-04, Suk <suk...@zoom.co.uk> wrote:
>>
>> > Im using the DHCP server shipped with openSUSE and want to be able to
>> > configure it so that the DHCP server listens on both interfaces and is
>> > able to issue appropriate IP's to each network. Is it possible to do
>> > this?

>>
>> Sure it is, just read the man page of dhcpd and configure it
>> accordly.
>>
>> > where to start?

>>
>> the man page of dhcpd
>>
>> Davide
>>

>
> Thanks but if you don't know the answer then please dont post a reply
>
> If you know the answer, then try typing in something helpful rather
> than trying to act "smart"
>
> I wouldn't be asking If I hadn't tried the obvious already. If you
> know something I dont - why dont you try sharing your knowledge?


But did you read the man page of dhcpd?

It says:

Subnets
dhcpd needs to know the subnet numbers and netmasks of all subnets for which it will be providing
service. In addition, in order to dynamically allocate addresses, it must be assigned one or more
ranges of addresses on each subnet which it can in turn assign to client hosts as they boot. Thus,
a very simple configuration providing DHCP support might look like this:

subnet 239.252.197.0 netmask 255.255.255.0 {
range 239.252.197.10 239.252.197.250;
}


So, my dear friend, you need to have two "subnet" clauses!!!

i
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating split-scope DHCP from a running DHCP server... Claude Lachapelle Windows Networking 3 09-11-2006 03:18 PM
Multihomed DHCP Server John Meier Windows Networking 0 11-23-2003 12:25 PM
server with 2 nics dhcp and dns running help =?Utf-8?B?d2Fja28x?= Windows Networking 0 11-19-2003 12:06 AM
Re: DHCP and Multihomed server John Meier Windows Networking 0 11-18-2003 01:02 AM
Re: DHCP and Multihomed server John Meier Windows Networking 0 11-18-2003 01:00 AM



1 2 3 4 5 6 7 8 9 10 11