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.

Hardware List:

The following section presents the list of equipment used to create this HP Switch tutorial.

Every piece of hardware listed above can be found at Amazon website.

HP Switch Book

Our book can be found at Amazon website - English | Portuguese | Spanish

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.

HP Switch book

Follow Luke’s history and a step by step approach to a network project implementation created by a certified project management professional.

HP Switch Playlist:

On this page, we offer quick access to a list of videos related to HP Switch.

Don't forget to subscribe to our youtube channel named FKIT.

HP Switch Related Tutorial:

On this page, we offer quick access to a list of tutorials related to HP Switch.

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.

Putty windows

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.

HP-Switch-5500

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.

# system-view

Create a new vlan, select an identification number and add a brief description.

# vlan 100
# description DESKTOPS
# quit

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 8.8.8.8
# 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.

# save

Congratulations! You have successfully configured a DHCP server.