Aruba & ProVision-based
1752587 Members
3720 Online
108788 Solutions
New Discussion ī„‚

Re: 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. 

5 REPLIES 5
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.


I'm not an HPE Employee
Kudos and Accepted Solution banner
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

Noor0007
Visitor

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

dhcp server ip-pool vlan_data gateway-list 192.168.11.18 dns-list 192.168.11.7 8.8.8.8 static-bind ip-address 192.168.11.126 mask 255.255.255.0 hardware-address dc1b-a143-dfff static-bind ip-address 192.168.11.127 mask 255.255.255.0 hardware-address 548d-5a79-31ff this will provide above two ip to respecitve mac address.all other device will not get any IP Full vlan 18 ip address 192.168.11.1 dhcp server apply ip-pool vlan_data worked on HP 55XX comware SW