Monday, March 1, 2021

Setting Up DHCP on a HPE 5130 Switch

This covers setting up a HPE 5130 switch as your DHCP server.

ENABLING DHCP GLOBALLY

First you need to enable DHCP globally on the switch. You do so with the command below.


CREATE A VLAN AND VLAN INTERFACE

Now we need to create a VLAN and a VLAN interface which will be the gateway for the VLAN. Below are the commands used to create the VLAN and it's interface along with an IP address.


CREATING THE POOL

With the VLAN created, the pool needs to be created. You need to define the network address and mask as well as the range of addresses you can get via DHCP. The commands are shown below.


ASSIGN A DHCP POOL TO A VLAN INTERFACE

The newly created DHCP pool now needs to be assigned to the VLAN interface. This is done with the command shown below.


TESTING THE DHCP SERVER

That should be all, just to confirm I have plugged in an access point to see if it gets an IP address.


The command 'display dhcp server ip-in-use' will show the leases, as we can see there's a lease which shows DHCP is working.



No comments:

Post a Comment