Operating System - HP-UX
1832964 Members
2391 Online
110048 Solutions
New Discussion

Re: Configuring DHCP Server for multiple subnets

 
SOLVED
Go to solution
Rainer von Bongartz
Honored Contributor

Configuring DHCP Server for multiple subnets



I want to configure my DHCP Server (11.i based) to support serving DHCP requests coming from two different subnets

so it should contain something like

addr-pool-start-address=10.1.1.1:addr-pool-last-address=10.1.1.200:subnet-mask=255.255.255.0 :gw=10.1.1.254 :\

AND

addr-pool-start-address=10.1.2.1:addr-pool-last-address=10.1.2.200:subnet-mask=255.255.255.0 :gw=10.1.2.254 :\

Any hints how to configure since since I'm only able to configure it in a way that the servers supports only one of these subnets.

Regards
rainer

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
2 REPLIES 2
Wim Rombauts
Honored Contributor
Solution

Re: Configuring DHCP Server for multiple subnets

A first thing to do is to configure your routers to forward DHCP request from different subnets to your server.


Configuring DHCP for multiple subnets should not be that difficult. I configured DHCP with SAM. I compared your entries with mine, and those are the only differences that I can detect between different subnets. Of course, you need to supply a different pool-name.

Thiese are the contents of my /etc/dhcptab :

dhcp_pool_group: pool-name=Zandvliet: addr-pool-start-address=10.134.192.1: addr-pool-last-address=10.134.192.254: lease-time=2419200: lease-policy=accept-new-clients: allow-bootp-clients=FALSE: subnet-mask=255.255.240.0: gw=10.134.207.253: ds=172.24.4.1 172.24.4.2: dn=haven.antwerpen.be: na=172.24.4.1 172.24.4.2: nc=0x8

dhcp_pool_group: pool-name=Haven_63: addr-pool-start-address=10.128.228.1: addr-pool-last-address=10.128.228.254: lease-time=2419200: lease-policy=accept-new-clients: allow-bootp-clients=FALSE: subnet-mask=255.255.240.0: gw=10.128.239.254: ds=172.24.4.1 172.24.4.2: dn=haven.antwerpen.be: na=172.24.4.1 172.24.4.2: nc=0x8

dhcp_pool_group: pool-name=Amaris_K170: addr-pool-start-address=10.134.48.51: addr-pool-last-address=10.134.48.100: lease-time=2419200: lease-policy=accept-new-clients: allow-bootp-clients=FALSE: subnet-mask=255.255.240.0: gw=10.134.63.254: ds=172.24.4.1 172.24.4.2: dn=haven.antwerpen.be: na=172.24.4.1 172.24.4.2: nc=0x8

dhcp_pool_group: pool-name=Amaris_Ethernet: addr-pool-start-address=10.134.128.51: addr-pool-last-address=10.134.128.150: lease-time=2419200: lease-policy=accept-new-clients: allow-bootp-clients=FALSE: subnet-mask=255.255.240.0: gw=10.134.128.254: ds=172.24.4.1 172.24.4.2: dn=haven.antwerpen.be: na=172.24.4.1 172.24.4.2: nc=0x8
Rainer von Bongartz
Honored Contributor

Re: Configuring DHCP Server for multiple subnets

Wim

Thanks so much for your dhcptab file

I made a cut and paste into mine;
edited it to my needs and now DHCP for multiple subnets is working.

Regards
Rainer

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...