Aruba & ProVision-based
1753795 Members
6998 Online
108799 Solutions
New Discussion

Re: HP 2530 Switch DHCP Issues

 
Allan3
Occasional Visitor

HP 2530 Switch DHCP Issues

I've got some new HP Aruba 2530-24G switches that I have updated to the latest software: YA.16.05.0004 and I'm having an issue getting the DHCP to work correctly. I have an additional VLAN on the switch that I would like to be configured via DHCP. This would normally be the management port/vlan.  I currently have both VLANs configured for DHCP. If I plug the ethernet into a port defind as DEAFAULT_VLAN, everything works fine. I get my DNS server, Gateway address, etc. If I plug the same ethernet into a port/vlan defined on another VLAN I only get the address.

This is the same DHCP server and in fact the same ethernet cable. I just move it to different VLANS.

Here is the configuration and log of the results:

What have I got configured wrong or does this not work?

show config
Startup configuration: 3

; J9776A Configuration Editor; Created on release #YA.16.05.0004
; Ver #12:00.04.19.02.13.98.82.34.61.18.28.f3.84.9c.63.ff.37.27:06
hostname "HP-2530-24G"
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   no untagged 21
   untagged 1-20,22-28
   ip address dhcp-bootp
   exit
vlan 16
   name "Maintenance"
   untagged 21
   ip address dhcp-bootp
   exit

HP-2530-24G# show  ip
 Internet (IP) Service


  Default Gateway :
  Default TTL     : 64
  Arp Age         : 20
  Domain Suffix   :
  DNS server      :

  VLAN                 | IP Config  IP Address      Subnet Mask
  -------------------- + ---------- --------------- ---------------
  DEFAULT_VLAN         | DHCP/Bootp
  Maintenance          | DHCP/Bootp 172.17.199.32   255.255.255.192


HP-2530-24G# show ip route
                                IP Route Entries

  Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
  ------------------ --------------- ---- --------- ---------- ---------- -----
  127.0.0.0/8        reject               static               0          0
  127.0.0.1/32                            connected            1          0
  172.17.199.0/26    Maintenance     16   connected            1          0

HP-2530-24G# ping google.com
HP-2530-24G# Invalid input: google.com or DNS server not configured.
HP-2530-24G# show ip
 Internet (IP) Service


  Default Gateway : 172.17.199.1
  Default TTL     : 64
  Arp Age         : 20
  Domain Suffix   :
  DNS server      : 10.10.100.8

  VLAN                 | IP Config  IP Address      Subnet Mask
  -------------------- + ---------- --------------- ---------------
  DEFAULT_VLAN         | DHCP/Bootp 172.17.199.32   255.255.255.192
  Maintenance          | DHCP/Bootp


HP-2530-24G# show ip route
                                IP Route Entries

  Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
  ------------------ --------------- ---- --------- ---------- ---------- -----
  0.0.0.0/0          172.17.199.1    1    static               250        1
  127.0.0.0/8        reject               static               0          0
  127.0.0.1/32                            connected            1          0
  172.17.199.0/26    DEFAULT_VLAN    1    connected            1          0


HP-2530-24G# show ip dns
  DNS Mode              :   DHCP

  DNS Domain Names Configured:
  ---------------------------

  No.      DNS Domain Name
  ---      ---------------


  DNS Servers Configured:
  ----------------------

  Priority      DNS Server Addresses
  --------      --------------------
    1.          10.10.100.8
    2.          10.10.101.11


HP-2530-24G# ping google.com
HP-2530-24G# google.com is alive, time = 14 ms
HP-2530-24G#

 

2 REPLIES 2
BjKo
Frequent Advisor

Re: HP 2530 Switch DHCP Issues

You don't have a default gateway in the first example.

Allan3
Occasional Visitor

Re: HP 2530 Switch DHCP Issues

Yes I know. It is supposed to get it from the DHCP actions. As you can see in the 2nd try it was received. 

It seems that the VLAN that is marked as Primary is the only one that will propogate all of the DHCP settings.