HPE Aruba Networking & ProVision-based
1830246 Members
1876 Online
110000 Solutions
New Discussion

2920 vlan, dhcp server scope per vlan

 
newbenstein
Frequent Visitor

2920 vlan, dhcp server scope per vlan

Hi people,

 

Thanks up front for any help.  My boss is letting me teach myself how to setup and configure 2920 switches. I have updated to last available firmware. 

 

The idea is set up 4 vlans with applied dhcp scopes.  When I went to check to see if I could connect a pc and get ip per scope and port I get apippa address...  and of course cannot get online.  When I try to change server scope I get an error of ip address already asinged in range.  Also just a thought is there and order of operations to follow? like vlan then dhcp pool?  

 

Running configuration:

; J9727A Configuration Editor; Created on release #WB.15.16.0006
; Ver #06:0c.fc.f3.ff.35.0d:c2

hostname "HP-2920-24G-PoEP"
module 1 type j9727a
gvrp
ip routing
snmp-server community "public" unrestricted
oobm
ip address dhcp-bootp
exit
vlan 1
name "defualt"
untagged 2,A1-A2,B1-B2
tagged 1,3-24
ip igmp
voice
dhcp-server
exit
vlan 2
name "Wireless"
untagged 3
tagged 1-2,4-24
ip address 10.0.2.1 255.255.255.128
dhcp-server
exit
vlan 3
name "voip"
untagged 4
tagged 1-3,5-24
ip address 10.0.3.1 255.255.255.128
dhcp-server
exit
vlan 4
name "Servers"
untagged 5
tagged 1-4,6-24
ip address 10.0.4.1 255.255.255.128
dhcp-server
exit
dhcp-server pool "1"
range 10.0.1.1 10.0.1.254
exit
dhcp-server pool "2"
range 10.0.2.1 10.0.2.254
exit
dhcp-server pool "3"
range 10.0.3.1 10.0.3.254
exit
dhcp-server pool "4"
range 10.0.4.1 10.0.4.254
exit

6 REPLIES 6
Pete W
Valued Contributor

Re: 2920 vlan, dhcp server scope per vlan

newbenstein,

 

I would take a look at the DHCP scopes that you have created.

  • The scope configs are missing the network and default-router statements.
  • The ranges specified are /24, whereas the VLAN subnets are /25

 

I'm pretty sure that they should be configured something like this :

 

dhcp-server pool "1"

default-router "10.0.1.1"

network 10.0.1.0 255.255.255.128
range 10.0.1.2 10.0.1.126
exit

 

On a more "design" note - you have no IP address on VLAN 1, but you have defined a scope there, and you have created a scope for VLAN 4, which is your server VLAN and probably the last place that you actually want DHCP :).

 

Regards,
 
Pete
EricAtHP
Esteemed Contributor

Re: 2920 vlan, dhcp server scope per vlan

Here is a config that is working on my 2920:

 

Running configuration:

; J9729A Configuration Editor; Created on release #WB.15.17
; Ver #08:04.eb.8f.fc.f3.ff.37.2d:82

hostname "2920"
module 1 type j9729a
ip route 0.0.0.0 0.0.0.0 10.1.1.1
ip routing
oobm
   no ip address
   exit
vlan 1
   name "DEFAULT_VLAN"
   no untagged 44-48
   untagged 1-43,A1-A2,B1-B2
   ip address 10.1.1.3 255.255.255.0
   dhcp-server
   exit
dhcp-server pool "Home"
   authoritative
   default-router "10.1.1.1"
   dns-server "10.1.1.1,10.1.1.2"
   domain-name "test.local"
   network 10.1.1.0 255.255.255.0
   range 10.1.1.200 10.1.1.254
   exit
dhcp-server enable


Pete W
Valued Contributor

Re: 2920 vlan, dhcp server scope per vlan

Is your issue resolved now?

 

Pete

newbenstein
Frequent Visitor

Re: 2920 vlan, dhcp server scope per vlan

Thanks but not yet I got sent back on site today to fix teir 1 pc stuff.

newbenstein
Frequent Visitor

Re: 2920 vlan, dhcp server scope per vlan

Is there an order in which to set this up? Also the commands to add the info to the vlans can you help me out with that too? It seems not to take the changes which is why I ask about the order of operations.

EricAtHP
Esteemed Contributor

Re: 2920 vlan, dhcp server scope per vlan

The order didn't matter much to me except that the global "dhcp-server enable" was last.

 

1. Configure your DHCP Server Pools: dhcp-server pool, etc.

2. Turn on dhcp-server on the appropriate VLANs: vlan 20, dhcp-server

3. Enable the DHCP Server globally: dhcp-server enable