Wired Intelligent Edge

last person joined: yesterday 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution
Expand all | Collapse all

TFTP automatic image upgrade for 2540 Switch

This thread has been viewed 10 times
  • 1.  TFTP automatic image upgrade for 2540 Switch

    Posted Jan 23, 2020 08:10 AM

    Hello!

     

    I have a question regarding the automatic upgrade of the firmware image via the "dhcp image-file-update" feature.

     

    In the ZTP document it's mentioned that the following options need to be set in the DHCP server:

    66 (TFTP Server IP)

    144 (config file)

    145 (firmware file)

     

    So I set up a OpenDHCP and added the following lines into the configuration:

     

    FilterVendorClass="Aruba JL354A 2540-24G-4SFP+ Switch dslforum.org"

    66="192.168.1.100"

    145="YC_16_07_0003.swi"

     

    I can see that the vendor filter is matching, because I assigned another IP range to it, and in wireshark that the options are transmitted, but the switch never downloads the firmware file (factory default).

     

    If I set the configuration file via option 144 or with the BootFileName option, the switch downloads the configuration file after around 2 minutes, but the firmware image is just not working.

     

    Has anybody ever done this and may help me out here?

     

    Thank you!

    Oliver

     


    #2540


  • 2.  RE: TFTP automatic image upgrade for 2540 Switch

    MVP GURU
    Posted Jan 23, 2020 10:23 AM

    Hi,

     

    What do you have on the log switch ?



  • 3.  RE: TFTP automatic image upgrade for 2540 Switch

    Posted Jan 24, 2020 04:35 AM

    Hello,

     

    this is the logging output, not much:

    I 01/01/90 00:00:35 05224 activate: Zero-touch provisioning enabled; connecting
                to Aruba Activate server to provision system.
    I 01/01/90 00:00:35 03783 dhcp: DHCP server did not offer all the DNS parameters
                on Primary VLAN
    I 01/01/90 00:00:35 00025 ip: DEFAULT_VLAN: ip address 192.168.1.101/24
                configured on vlan 1
    I 01/01/90 00:00:35 00083 dhcp: updating IP address and subnet mask

    Otherwise it's filled with NTP sync errors, because the switch is only connected to my laptop.

    dhcp_offer.png

    Here are the two DHCP options, is this correct in your point of view?

     

    Thanks!



  • 4.  RE: TFTP automatic image upgrade for 2540 Switch

    MVP GURU
    Posted Jan 24, 2020 05:07 AM

    @mAvbig wrote:

    Hello,

     

    this is the logging output, not much:

    I 01/01/90 00:00:35 05224 activate: Zero-touch provisioning enabled; connecting
                to Aruba Activate server to provision system.
    I 01/01/90 00:00:35 03783 dhcp: DHCP server did not offer all the DNS parameters
                on Primary VLAN
    I 01/01/90 00:00:35 00025 ip: DEFAULT_VLAN: ip address 192.168.1.101/24
                configured on vlan 1
    I 01/01/90 00:00:35 00083 dhcp: updating IP address and subnet mask

    Otherwise it's filled with NTP sync errors, because the switch is only connected to my laptop.

    dhcp_offer.png

    Here are the two DHCP options, is this correct in your point of view?

     

    Thanks!


    Look good but do you have try to fix DNS issue ? (for log)



  • 5.  RE: TFTP automatic image upgrade for 2540 Switch
    Best Answer

    Posted Jan 26, 2020 10:38 AM

    I don't know how to fix the DNS error message, it's displayed on every switch I have seen so far.

     

    I have figured out the solution, you need to send the parameters via DHCP option 43, and in that define suboptions with a appropiate length field and 00 as delimiter.

     

    For example this is valid:

    43=90:0b:63:6f:6e:66:69:67:2e:74:78:74:00:91:12:59:43:5f:31:36:5f:30:38:5f:30:30:30:31:2e:73:77:69:00

     

    It specifies "config.txt" for the configuration file and "YC_16_08_0001.swi" for the switch firmware.

     

    The 00 is important, and the length field includes this byte too.