Option 125 DHCP server requirements for obtaining an configuration file through auto install

You can use auto install to let the switch download a configuration file (image file) from a TFTP server using DHCP option 125. The image update can either upgrade or downgrade the firmware on the switch.

For the switch to be able to download an image from a TFTP server, the DHCP server must include an image description file that lists the image that the switch must download from the TFTP server. For example, the autoinstall_dhcp image description file on the DHCP server lists the M4XXX-v1.2.3.4.stk image that the switch must download from the TFTP server.

Option 125 in the DHCP server must contain the following information (the example uses the autoinstall_dhcp image description file and the M4XXX-v1.2.3.4.stk image):

  • Enterprise number (4 octets). 0x0000 0x11ae

    In decimals, the enterprise number for NETGEAR is 4526.

  • Data length (1 octet): 0x12

    The data length includes the SubOption code plus the SubOption length plus the image description file (not the image itself): 1+1+16.

    • SubOption code (2 octets): 0x05

    • SubOption length (1 octet): 0x10

      The length of the name of the image description file.

    • Image description file name (N octets): 61.7574.6f69.6e73.7461.6c6c.5f64.6863.70

      In plain text, the name of the image description file is autoinstall_dhcp.

The content of the autoinstall_dhcp image description file is M4XXX-v1.2.3.4.stk, which is the image that the switch must download from the TFTP server.

You can change the name for the image description file, but then you must also change the option 125 data length, which is based on the SubOption code, SubOption length, and image description file name.