Would you like to learn how to configure a DHCP server on HP switch using the command-line instead of using the web interface? In this tutorial, we are going to show you all the steps required to configure a DHCP server using an HP Switch 5500 using the command-line.
HP Switch Book
Despite having a good knowledge related to computer networks and even have some certifications on the subject, Luke, a 26-year-old IT analyst has just received a mission to deploy a new network using only HP switches.
Follow Luke’s history and a step by step approach to a network project implementation created by a certified project management professional.
Tutorial - HP Switch DHCP Server
First, you need to access the console of your HP Switch.
In our example, we are going to use a Opensource software named Putty and a computer running Windows.
The Putty software is available on the putty.org website.
After finishing the download, run the software and wait for the following screen.
To access the console of an HP Switch model 5500, you will need to select the Serial Connection category and use the following options:
• Connection type: Serial
• Serial line: COM1
• Speed: 9600
If COM1 does not work you will need to try to use COM2, COM3, COM4 or the next.
On the prompt screen, enter the administrative login information.
Factory default access information:
• Username: admin
• Password: (No password)
After a successful login, the console command-line will be displayed.
Use the system-view command to enter the configuration mode.
Create a new vlan, select an identification number and add a brief description.
# vlan 100
# description DESKTOPS
Create a virtual interface using the following commands.
# interface Vlan-interface100
# ip address 192.168.100.1 255.255.255.0
# undo shutdown
Enable DHCP globally.
# dhcp enable
Configure a DHCP scope to the network.
# dhcp server ip-pool vlan100
# network 192.168.100.0 mask 255.255.255.0
# gateway-list 192.168.100.1
# dns-list 18.104.22.168
# domain-name techexpert.tips
# expired day 7
In our example, we are offering a dynamic IP address for computers connected to the VLAN 100.
If a computer is connected to the VLAN 100 it will receive an IP address from the 192.168.100./24 network.
Use the following commands to verify your configuration.
# display dhcp server tree pool vlan100
# display dhcp server ip-in-use all
Don't forget to save your switch configuration.
Congratulations! You have successfully configured a DHCP server.