HPE Aruba Networking & ProVision-based
1829693 Members
7647 Online
109992 Solutions
New Discussion

Re: 2920 DHCP per Vlan

 
jleipert
Occasional Contributor

2920 DHCP per Vlan

Hi-

 

I created a vlan with no problem. I also created dhcp pool with no problem. But how do you assign a dhcp per vlan and only for that vlan. I do see  the dhcp server option under the vlan context. But you cant assign a pool?

 

Thanks!

Joe

2 REPLIES 2
Emil_G
HPE Pro

Re: 2920 DHCP per Vlan

Hello,

 

I suspect that the binding between a dhcp pool and a VLAN is done by the static IP address of the VLAN. There is a requirement that the switch should have a static IP address in every VLAN in which it will function as a DHCP server (even if the switch is not the default gateway). Then based on the static IP address of the VLAN the switch decides which DHCP pool to use.

 

Example

 

dhcp-server pool "VLAN-10"
   default-router "10.0.10.1"
   dns-server "8.8.8.8"
   network 10.0.10.0 255.255.255.0
   range 10.0.10.101 10.0.10.199
   exit

 

vlan 10
   name "VLAN10"
   untagged 1
   ip address 10.0.10.2 255.255.255.0
   dhcp-server
   exit

 

Since VLAN 10 has a static IP address belonging to the network defined in dhcp pool "VLAN-10" the switch will use this pool for DHCP clients in VLAN 10.

 

 

A complete example:

http://h20564.www2.hp.com/hpsc/doc/public/display?docId=mmr_kc-0128094&sp4ts.oid=5354494

 

The manual is not very clear about it, so I am not 100% sure, but this is one thing that could be tested.

 

HTH

 

 

I am an HPE employee

Accept or Kudo


jleipert
Occasional Contributor

Re: 2920 DHCP per Vlan

You are right.  Thanks!