Re: single Dhcp server on multiple networks



On Sat January 17 2009 02:44:09 Ken Teague wrote:
On Wed, Jan 14, 2009 at 09:35:37PM -0800, Mike Bird wrote:
On Thu January 15 2009 13:28:19 Rod James Bio wrote:
I was wondering if anyone had tried to configure a single linux dhcp
server to give IP to different network. We have multiple networks here
in our area and I am thinking of using a single dhcp server to serve
all other networks.

It works fine, e.g.:

Did you have to setup VLANs on your switch to separate the networks, or use
separate switches?

VLANs work. Separate switches work. We normally use VLANs on switches
but separate NICs for each VLAN on servers.

How exactly does the server know to give our IPs for
subnet-X to subnet-X instead of subnet-Y? Does the server have multiple
NICs with different IPs on each?... or does it have a single NIC with
multiple IPs assigned to it?

A DHCP server with multiple NICs hands out DHCP leases in the subnets
associated with each NIC. The subnet is specified in dhcpd.conf, not
the NIC.

If you wanted to support multiple DHCP subnets on a single NIC you'd
probably have to use a static mapping for each MAC address to IP
address:

host foo {
hardware ethernet 01:23:45:67:89:ab;
fixed-address 192.168.99.99;
}

YMMV - I've never tried multiple DHCP subnets on a single NIC.

--Mike Bird


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: NLB IIS
    ... important to have them in separate subnets. ... I setup NLB with 2 servers and 2 NICS on each server. ... Default Gateway 10.217.216.1 ...
    (microsoft.public.windows.server.clustering)
  • Re: Intermittent outages on two subnets on 2003 server
    ... We have websites running on each of the subnets and obviously the ... I'm not sure if it is because of the way you've configured the server (multiple NICs with multiple gateways), ... If I may suggest, you said you may have to wait for the new firewall to come in, in order to be able to route between the subnets that you currently can't. ...
    (microsoft.public.windows.server.general)
  • Re: Win 2K3 Standard Server with multiple IPs
    ... website. ... The use of multiple IPīs ... >It is a Dell poweredge 2650, and the nics are Broadcom ... >> I am running a Windows 2003 Server, ...
    (microsoft.public.windows.server.networking)
  • Re: W2K3 Server with 2 NICs
    ... and so it is in th same subnet as Intranet nic. ... connecting it from other subnets. ... gateway address in Intranet nic but it didn't work and server warned about ...
    (microsoft.public.windows.server.networking)
  • Re: [SLE] RESOLVED Re: [SLE] dhcpd Doesnt Run
    ... >>> now is listening on all three NICs. ... >>internet side? ... is to have just the one NIC (and server) facing the ... Why do you think you need two separate subnets for you and your wife? ...
    (SuSE)