Network Management

 View Only
  • 1.  Configuring DHCP on HP 2920 j9727a

    Posted Oct 28, 2022 10:22 AM

    I'm having issues getting dhcp to work on my HP switch. I'm unable to receive a DHCP ip address from my DHCP server on vlan 10. I have a scope setup on the DHCP server for 192.168.10.0/24. If I set the IP address to static on Vlan 10 I'm able to ping the switch and the gateway 192.168.10.1. I think something in my routing is incorrect or there is something I don't have configured right on my router. The ip address of the switch is 192.168.1.4. The DHCP server is attached to interface 5. Any help will be appreciated. I will post my current config below:

    hostname "HP-2920-24G-PoEP"
    module 1 type j9727a
    dhcp-relay option 82 keep
    ip default-gateway 192.168.1.1
    no ip icmp unreachable
    ip routing
    snmp-server community "public" unrestricted
    oobm
    ip address dhcp-bootp
    exit
     
    vlan 1
    name "DEFAULT_VLAN"
    no untagged 21
    untagged 1-20,22-24
    ip address 192.168.1.4 255.255.255.0
    ip igmp
    exit
     
    vlan 8
    name "VLAN8"
    tagged 5,24
    ip address 192.168.8.1 255.255.255.0
    ip igmp
    dhcp-server
    exit
     
    vlan 10
     
    name "VLAN10"
    untagged 21
    tagged 5,24
    ip address 192.168.10.1 255.255.255.0
    ip directed-broadcast
    ip helper-address 192.168.1.7
    ip igmp
    ipv6 address autoconfig
    exit
    spanning-tree
    spanning-tree force-version rstp-operation
    device-profile name "default-ap-profile
     
    cos 0
    exit
    activate software-update disable
    activate provision disable


  • 2.  RE: Configuring DHCP on HP 2920 j9727a
    Best Answer

    Posted Oct 30, 2022 09:30 AM
    Hello, given posted configuration it's possible to recognize that:

    VLAN 1 is untagged on interfaces 1-20 and interfaces 22-24
    (Interface 21 is no untagged on VLAN 1 = Orphaned of Default Native VLAN 1 -> Interface 21 is Untagged member of VLAN 10, see below)
    VLAN 8 is tagged on interfaces 5,24
    VLAN 10 is untagged on interfaces 21
    VLAN 10 is tagged on interfaces 5,24

    DHCP Server is connected to interface 5 which is:

    Untagged member of VLAN 1
    Tagged member of VLAN 8
    Tagged member of VLAN 10

    A test client is connected to interface 21 which is:

    Untagged member of VLAN 10

    At this point, If I were you, I will remove tagging on VLAN 8 and 10 on interface 5 (where the DHCP Server is connected): this beacause VLAN 10, where your client will receive IP addressing via DHCP, has already the ip helper-address set to 192.168.1.7 (the DHCP Server IP Address on VLAN 1). IP Routing is enabled so the ip default-gateway has no effect (provided that you have a Default Route to your Next Hop Gateway for any other non-locally connected network = RoW).


  • 3.  RE: Configuring DHCP on HP 2920 j9727a

    Posted Nov 01, 2022 03:36 AM
    Hi,
    you can use this:

    Resource>History Access Log
    Switch, Port, VLAN-ID, on/off Time, MAC....
    (Export to Excel)

    Thomas