LAN Routing
1752794 Members
6448 Online
108789 Solutions
New Discussion

DHCP relay et many vlan (HP 5900AF-48G-4XG-2QSFP+ )

 
Yann75
Occasional Contributor

DHCP relay et many vlan (HP 5900AF-48G-4XG-2QSFP+ )

961/5000
Hello

We have an HP 5900.
For example, we want to create 3 vlans and distribute from our DHCP server a network spread per vlan. I saw that we could do it with DHCP Relay, but I do not see how to do it for multiple vlan.
I saw a video that explained how to do it with the web interface but we, this interface is reduced. I do not have the options of vlans, dhcp ... Can we change this interface in passing?

To return to my main question:
I have a DHCP server: 192.168.10.10

3 extents:
Vlan 10: 192.168.0.1 to 192.168.255.253
Vlan 20: 10.70.0.0 to 10.70.255.253
Vlan 30: 10.80.0.0 to 10.80.255.253
Do you have to put a particular gateway?

On my HP 5900:
How to configure the vlans on the HP 5900 in cli and how to configure the dhcp relay to redirect the DHCP request to the good vlans.

Thanks for your help.

Sorry for my English, I'm french.

Yann
1 REPLY 1
Ivan_B
HPE Pro

Re: DHCP relay et many vlan (HP 5900AF-48G-4XG-2QSFP+ )

Hello!

The configuration you are trying to perform is perfectly achievable on 5900. I can recommend you to check the guide - https://support.hpe.com/hpsc/doc/public/display?docId=c03187006 , Page 54. It is an example for one single VLAN, but logic for other VLANs is the same.

In short the configuration of your switch will be as follows:

1. Enable DHCP: 
system-view
dhcp enable

2. Create VLAN interfaces for each VLAN where your clients reside:
interface vlan10
ip address 192.168.0.1 255.255.0.0
dhcp select relay
dhcp relay server-address 192.168.10.10
#
interface vlan20
ip address 10.70.0.1 255.255.0.0
dhcp select relay
dhcp relay server-address 192.168.10.10
#
interface vlan30
ip address 10.80.0.1 255.255.0.0
dhcp select relay
dhcp relay server-address 192.168.10.10

3. And there is very important note - your switch should have a route to the DHCP server 192.168.10.10, the DHCP server should announce Vlan-interfaces IPs as default gateway for respective pool and the server should have a route for these IP ranges through our switch, otherwise it may fail to assign IP addresses.

 

Hope it helps!

 

I am an HPE employee

Accept or Kudo