Aruba & ProVision-based
cancel
Showing results for 
Search instead for 
Did you mean: 

Enable DHCP in switch HP 8212zl

 
Highlighted
jhonfersg
Occasional Advisor

Enable DHCP in switch HP 8212zl

Hi.

now I configured a VLAN 109 with addressing 192.168.109.1/26 and I want configure DHCP in this switch for this VLAN.

What is the process of configure?

 

thanks.

2 REPLIES 2
Highlighted
EricAtHP
Esteemed Contributor

Re: Enable DHCP in switch HP 8212zl

There are two options that I can think of regarding DHCP and I am not sure which is of interest to you. So here is info on both:

 

DHCP Relay:

 

Add the command "ip helper-address <IP-ADDR> to VLAN 109.

vlan 109
   name "VLAN109"
   ip address 192.168.109.1 255.255.255.192
   ip helper-address <DHCP-Server>
   exit

 

 

DHCP Server:

 

Configure the DHCP Scope with commands similar to this:

dhcp-server pool "<Scope-Name>"
   authoritative
   default-router "192.168.109.1"
   dns-server "4.4.4.4,8.8.8.8"
   domain-name "domain.com"
   network 192.168.109.1 255.255.255.192
   range 192.168.109.2 192.168.109.62
   exit
dhcp-server enable

 

Then enable the dhcp server on VLAN 109 with the command "dhcp-server".

 

Here is the interesting config:

vlan 109
   name "VLAN109"
   ip address 192.168.109.1 255.255.255.192
   dhcp-server
   exit
dhcp-server pool "VLAN109"
   authoritative
   default-router "192.168.109.1"
   dns-server "4.4.4.4,8.8.8.8"
   domain-name "domain.com"
   network 192.168.109.1 255.255.255.192
   range 192.168.109.2 192.168.109.62
   exit
dhcp-server enable

 

AGATE
Occasional Visitor

Re: Enable DHCP in switch HP 8212zl

Hi,

 

This is a fascinating bit of news to me.   I'm setting up an HP8212 from scratch.  Just flashed the firmware to K.15.18.0006 and have followed your guide to add a working DHCP server and scope on one of the VLANs I've configured on the switch.

 

My question is:

 

---How many different DHCP server scopes can I run on the HP8212?  

 

I tried adding the DHCP-SERVER command on another VLAN.  It accepts the command and the scope config in the global context but when I check the config after exit command none of those show up, as in it just drops the additional DHCP server scope commands and only retains the original one I configured for the single VLAN.  I tried disable and enable of dhcp-server etc...

 

So to recap I need to have different DHCP server scopes for atleast 2 possibly 3 VLANs and would like to run the in built DHCP service on the HP8212, ie.

VLAN33

name "Guest Wifi"

range 192.168.33.30 to 192.168.33.200

 

VLAN 34 

name "VOIP"

range 192.168.34.100 to 192.168.34.200

 

VLAN 35

name "Spare DHCP"

range 192.168.35.100 to 192.168.35.200

 

plus run a number of DHCP options if at all possible.

 

Appreciate your help with this.

 

Kiarash

AGATE IT