single Dhcp server on multiple networks
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.: authoritative; option nis-domain "snipped"; option domain-name "snipped"; option domain-name-servers 192.168.64.3; option netbios-node-type 8; option pop-server 192.168.64.19; option smtp-server 192.168.64.19; option www-server 192.168.64.20; default-lease-time 600; max-lease-time 7200; subnet 192.168.65.0 netmask 255.255.255.0 { option routers 192.168.65.1; option subnet-mask 255.255.255.0; option ntp-servers 192.168.65.3; option netbios-dd-server 192.168.65.3; option netbios-name-servers 192.168.65.3; range dynamic-bootp 192.168.65.33 192.168.65.254; } subnet 192.168.72.0 netmask 255.255.252.0 { option routers 192.168.72.1; option subnet-mask 255.255.252.0; option ntp-servers 192.168.72.3; option netbios-dd-server 192.168.72.3; option netbios-name-servers 192.168.72.3; range dynamic-bootp 192.168.72.33 192.168.72.254; range dynamic-bootp 192.168.73.33 192.168.73.254; } -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
single Dhcp server on multiple networks
On Fri January 16 2009 00:17:02 Rod James Bio wrote:
> 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.: > > > > authoritative; > > > > option nis-domain "snipped"; > > option domain-name "snipped"; > > option domain-name-servers 192.168.64.3; > > option netbios-node-type 8; > > option pop-server 192.168.64.19; > > option smtp-server 192.168.64.19; > > option www-server 192.168.64.20; > > default-lease-time 600; > > max-lease-time 7200; > > > > subnet 192.168.65.0 netmask 255.255.255.0 { > > option routers 192.168.65.1; > > option subnet-mask 255.255.255.0; > > option ntp-servers 192.168.65.3; > > option netbios-dd-server 192.168.65.3; > > option netbios-name-servers 192.168.65.3; > > range dynamic-bootp 192.168.65.33 192.168.65.254; > > } > > > > subnet 192.168.72.0 netmask 255.255.252.0 { > > option routers 192.168.72.1; > > option subnet-mask 255.255.252.0; > > option ntp-servers 192.168.72.3; > > option netbios-dd-server 192.168.72.3; > > option netbios-name-servers 192.168.72.3; > > range dynamic-bootp 192.168.72.33 192.168.72.254; > > range dynamic-bootp 192.168.73.33 192.168.73.254; > > } > > In this example what is the IP of your DHCP server? The IP of a DHCP server is not particularly important. In this case the DHCP server's primary IP in the 192.168.65.0/24 network is 192.168.65.3 and it's primary IP in the .72.0/24 network is 192.168.72.3 but this particular server also has other IP addresses and connects to other non-DHCP networks. --Mike Bird P.S. Your emails are coming to the list with incorrect timestamps and/or timezones which cause them to appear out of order. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
single Dhcp server on multiple networks
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.: authoritative; option nis-domain "snipped"; option domain-name "snipped"; option domain-name-servers 192.168.64.3; option netbios-node-type 8; option pop-server 192.168.64.19; option smtp-server 192.168.64.19; option www-server 192.168.64.20; default-lease-time 600; max-lease-time 7200; subnet 192.168.65.0 netmask 255.255.255.0 { option routers 192.168.65.1; option subnet-mask 255.255.255.0; option ntp-servers 192.168.65.3; option netbios-dd-server 192.168.65.3; option netbios-name-servers 192.168.65.3; range dynamic-bootp 192.168.65.33 192.168.65.254; } subnet 192.168.72.0 netmask 255.255.252.0 { option routers 192.168.72.1; option subnet-mask 255.255.252.0; option ntp-servers 192.168.72.3; option netbios-dd-server 192.168.72.3; option netbios-name-servers 192.168.72.3; range dynamic-bootp 192.168.72.33 192.168.72.254; range dynamic-bootp 192.168.73.33 192.168.73.254; } In this example what is the IP of your DHCP server? -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
single Dhcp server on multiple networks
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? 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? - Ken -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
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@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
| All times are GMT. The time now is 10:36 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.