- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- HPE Aruba Networking & ProVision-based
- >
- Re: How to create DHCP server in 2920 Procurve swi...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015 02:49 PM
06-02-2015 02:49 PM
Hi Can somebody confirm if it is possible to setup a DHCP server on a HP 2920 Procurve switch.
This is a L3 switch and I am used to configuring cisco switches. On a 2960 which is a L2 swtich you can do this is very easily.
But on the HP switch I cannot seem to do this. First of all there is no option in the GUI, so I have created a DHCP pool via the CLI but I cannot get the pool to be activated on VLAN 10 "Management" All I want to acheive is a DHCP pool per VLAN on the switch. I do not know what the DHCP IP address is of the switch? Which VLAN will it listen on.
I saw this post but was not sure if it applies to 2920's and if this is the case I cannot beleive you cannot setup DHCP server on the switch. Really simple configuration.
Here is a copy of my config.
console idle-timeout 900
console idle-timeout serial-usb 900
timesync sntp
sntp unicast
sntp server priority 1 151.236.222.81
no telnet-server
time timezone 60
ip default-gateway 172.18.36.65
snmp-server community "public" unrestricted
snmp-server contact " NTT CSC Support Desk"
oobm
ip address dhcp-bootp
member 1
ip address dhcp-bootp
exit
member 2
ip address dhcp-bootp
exit
exit
vlan 1
name "DEFAULT_VLAN"
no untagged 1/1-1/6,2/1-2/6
untagged 1/7-1/48,1/A1-1/A2,1/B1-1/B2,2/7-2/48,2/A1-2/A2,2/B1-2/B2
no ip address
exit
vlan 10
name "Firewall"
ip address 172.18.36.2 255.255.255.192
exit
vlan 20
name "Management"
untagged 1/1,1/3-1/6,2/1,2/3-2/6
tagged 1/2,2/2
ip address 172.18.36.66 255.255.255.192
exit
vlan 30
[45;1H[2K[45;1H[1;45r[45;1H name "Servers"
ip address 172.18.36.130 255.255.255.192
exit
vlan 40
name "Video Conference"
ip address 172.18.36.194 255.255.255.192
exit
vlan 50
name "Office"
ip address 172.18.37.2 255.255.255.128
exit
vlan 60
name "Voice"
ip address 172.18.37.130 255.255.255.128
exit
vlan 70
name "WLAN Private"
tagged 1/2,2/2
ip address 172.18.38.2 255.255.255.128
exit
vlan 80
name "WLAN Guest"
tagged 1/2,2/2
ip address 192.168.1.2 255.255.255.128
exit
primary-vlan 20
spanning-tree
no tftp server
no autorun
no dhcp config-file-update
no dhcp image-file-update
dhcp-server pool "Managment"
authoritative
default-router "172.18.36.65"
lease 07:00:00
network 172.18.36.64 255.255.255.192
option 43 ip "172.18.36.68,172.18.36.69"
range 172.18.36.100 172.18.36.120
exit
dhcp-server conflict-logging
dhcp-server enable
Many thanks
Solved! Go to Solution.
- Tags:
- DHCP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 07:26 AM
06-03-2015 07:26 AM
SolutionYes, it is possible. Here is the interesting part of a functioning config. Notice that there is a "dhcp-server" command at the VLAN context and a "dhcp-server enable" command at the global context.
vlan 1
name "DEFAULT_VLAN"
ip address 10.1.1.3 255.255.255.0
dhcp-server
exit
dhcp-server pool "Lab"
authoritative
default-router "10.1.1.1"
dns-server "10.1.1.97,10.1.1.1"
domain-name "domain.com"
network 10.1.1.0 255.255.255.0
range 10.1.1.200 10.1.1.254
exit
dhcp-server enable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2015 03:49 PM
06-04-2015 03:49 PM
Re: How to create DHCP server in 2920 Procurve switch
Thanks super star that helped me fix it.
Which there was an easier way to do it via the GUI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2015 04:41 PM
08-18-2015 04:41 PM
Re: How to create DHCP server in 2920 Procurve switch
Hello, somebody know how can I an IP reservation to a specific mac address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2015 04:51 PM
08-18-2015 04:51 PM
Re: How to create DHCP server in 2920 Procurve switch
Disable the dhcp server, enter the pool context, and then create a static-binding:
dhcp-server disable
dhcp-server pool "Name"
static-bind ip 10.1.1.254 255.255.255.255 mac aa:bb:cc:dd:ee:ff
exit
dhcp-server enable
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2015 11:48 PM
11-05-2015 11:48 PM
Re: How to create DHCP server in 2920 Procurve switch
Just what I need :-)
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2015 07:09 AM
12-09-2015 07:09 AM
Re: How to create DHCP server in 2920 Procurve switch
Hi
What about if I have 3 VLANs
1. default VLAN 10.22.*.* here I don`t need DHCP-serves
2. vlan 2 10.23.*.* should I run here in this vlan
3 vlan 3 10.24.*.* (with openflow instance) and here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2016 11:18 AM
04-30-2016 11:18 AM
Re: How to create DHCP server in hp 5120 ei switch
How to create DHCP server in hp 5120 ei switch
i need help .... i am new user for hp switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2016 12:16 PM - edited 07-21-2016 12:19 PM
07-21-2016 12:16 PM - edited 07-21-2016 12:19 PM
Re: How to create DHCP server in 2920 Procurve switch
ESTEEMED CONTRIBUTOR
08-18-2015 04:51 PM
08-18-2015 04:51 PM
Re: How to create DHCP server in 2920 Procurve switch
Disable the dhcp server, enter the pool context, and then create a static-binding:
dhcp-server disable
dhcp-server pool "Name"
static-bind ip 10.1.1.254 255.255.255.255 mac aa:bb:cc:dd:ee:ff
exit
dhcp-server enable
Hope that helps.
Would it be possible to disable a single dhcp ip-pool? If not, does disabling the dhcp server make it so that all of the IPs that were dynamically assigned drop from a network range?
I did not know that you had to disable the server to statically bind MAC addresses, thanks! Kinda scratched my head for a bit wondering why the "static-bind" command was unregognized on my a7510 core switch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2017 01:47 AM
02-07-2017 01:47 AM
Re: How to create DHCP server in 2920 Procurve switch
Hello,
how can i exclude 4 ip address ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2017 07:56 AM
11-22-2017 07:56 AM
Re: How to create DHCP server in 2920 Procurve switch
Use multiple Range commands to exclude-addresses. Here's an example of a range from 192.168.10.100 to .200 excluding .151 to .155. Also, I added a lease time since it wasn't shown above. Lease time is 30 days, 20 hours, 10 minutes.
Note: disabling the DHCP server only stops the switch from handing out IP addresses during that time. It does not break addresses already given. If you put all your commands in a text editor like notepad then copy and paste to the switch it will be down for less than a couple seconds and in most environments, it won't be noticed.
dhcp-server disable
dhcp-server pool Data
authoritative
default-router 192.168.10.1
dns-server 192.168.1.20,192.168.3.20
domain-name domain.int
network 192.168.10.0 255.255.255.0
range 192.168.10.100 192.168.10.150
range 192.168.10.156 192.168.10.200
lease 30:20:10
exit
dhcp-server enable