ProCurve / ProVision-Based
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create DHCPserver Pool and Static Reservations on HP 2920?

SOLVED
Go to solution
boospy
Occasional Advisor

How to create DHCPserver Pool and Static Reservations on HP 2920?

Hello, 

i would like to use an hp2920 24g as DHCPserver, so have configured:

dhcp-server pool "teststatic" 
  authoritative 
  default-router "192.168.20.62" 
  dns-server "8.8.8.8" 
  range 192.168.20.20 192.168.20.30 
  exit

 

sw01(teststatic)# static-bind ip 192.168.20.25 255.255.255.192 mac 42:EC:ED:A3:B3:64 
Cannot configure static bind address when network address or range is configured.

 

Why i can't do this? What i'am doing wrong? In a my network i have the DHCPpool with ip reservations and as normal pool for guest devices and devices they never must get the same ip address. 

Thanks a lot. 

4 REPLIES
parnassus
Honored Contributor
Solution

Re: How to create DHCPserver Pool and Static Reservations on HP 2920?

Hi boospy,

Aren't (DHCP) dynamic range pool versus (DHCP) static-bind pool mutually exclusive when defined togheter inside the same DHCP Pool?

I mean that if you require static-bind mapping(s) then you should define another separate DHCP Server Pool without IP Address range as an option but with static-bind as option(s), so de-facto keeping separated the static-bind pool from the range pool by using two (or more) DHCP Server Pools.

At least that is what I understand reading the documentation (basically manual bindings should be just special address pools, as reported).

From the HPE Switch Software Management and Configuration Guide WB.16.01:

IP pools

A DHCP server is configured with IP pools. The server is then instructed to use IP addresses falling into the specified range of IP while offering leases. Multiple IP pools are configured to not have duplicate or overlapping IP subnets. You can also configure a DHCP server with multiple IP ranges within an IP subnet; this confines the allocatable IP addresses within the configured IP pool.

An IP pool will be claimed valid only if it is either:

Dynamic pool - Has a network address, subnet mask and IP range(s),

Static pool - Should have a static IP-to-MAC binding.

The DHCP server will discard the invalid and incomplete pools and will only operate on the valid IP pools.

The DHCP server will require at least one valid pool to start.

boospy
Occasional Advisor

Re: How to create DHCPserver Pool and Static Reservations on HP 2920?

Hello, 

thanks for your reply. Something like that, I had already thought. So I've configured this:

dhcp-server pool "corenetstatic"
   authoritative
   default-router "192.168.20.62"
   dns-server "8.8.8.8"
   lease infinite
   static-bind ip 192.168.20.31 255.255.255.192 mac 42eced-a3b364
   exit
dhcp-server pool "corenetdynamic"
   authoritative
   default-router "192.168.20.62"
   dns-server "8.8.8.8"
   network 192.168.20.0 255.255.255.192
   range 192.168.20.20 192.168.20.30
   exit

So how can i add this dhcpservers to one/other VLANs. Is this right?

vlan 30
   name "corenet"
   untagged 23
   tagged Trk1
   ip address 192.168.20.62 255.255.255.192
   ipv6 address 2001:470:716b:ac1::1/64
   dhcp-server
   exit

I'am right when i add on every vlan "dhcp-server" then the right dhcp-server depending on the IP subnet is used? 

Best Regards

 

16again
Respected Contributor

Re: How to create DHCPserver Pool and Static Reservations on HP 2920?

The switch uses IP address of VLAN interface where DHCP-request is received  to figure out which DHCP pool to use.

boospy
Occasional Advisor

Re: How to create DHCPserver Pool and Static Reservations on HP 2920?

Ok, thanks. I think i know how its working. Will test it!

 

Best Regards