• Password recovery / Return to factory default

 
 
Print Friendly, PDF & Email

This article describes how to restore administrative access to a switch if the user password, enable password or Aboot (Arista boot loader) password is lost and also how to restore the switch to a factory default state.

Password recovery using Aboot

If the switch’s username/password are lost, there are two methods by which the password can be reset:

  • Edit the startup-config:
    • from Aboot, go to /mnt/flash (using cd) and edit the startup-config (using VI)
    • delete the username line from the configuration
    • save the file and exit Aboot
    • login with the default username (admin), enter enable mode and set a new username/password
  • Move/delete the current startup-config:
    • from Aboot, go to /mnt/flash, then rename the startup-config file:
Aboot#mv running-config startup-config2

Note: Alternatively, the startup-config can be deleted using the rm command. The rename method allows the use of the old startup-config file to restore the configuration after the new password has been set.

  • exit Aboot – a new default startup-config will be created after restart
  • Login with the default username (admin), enter enable mode and set a new username/password

Restore to factory default using Aboot

There are two methods by which the switch can be restored to factory default using Aboot.

  • fullrecover – the switch can be restored to its original factory default state by typing fullrecover from the Aboot prompt:

Aboot#fullrecover

All data on /mnt/flash will be erased; type “yes” and press Enter to proceed, or just press Enter to cancel:

  • if the Aboot password is lost:
    • boot the switch with a USB* drive which contains:
      • a text file named fullrecover (could be empty)
      • a boot-config file with a different timestamp than the one on the switch
      • an EOS.swi image file

*How to prepare the USB drive

  1. Insert the drive into a computer and format it with either the MS-DOS or FAT filesystem (most USB drives are usually pre-formatted with a compatible filesystem)
  2. Create a text file named “fullrecover”(with no extension) on the USB drive – the file may be empty
  3. Create a text file named “boot-config” (with no extension) on the USB drive  – the last modified timestamp of the boot-config file on the USB flash must differ from the boot-config file on the switch. The file should contain a single line: SWI=flash:EOS.swi.
  4. Obtain an EOS image and copy it to the USB drive, renaming it to EOS.swi

Note that all files and directories present on the USB flash drive will be copied to the switch. It is recommended that the USB drive contains only the three files listed above.

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: