: Restore the Firewall Configuration after Replacement
Focus
Focus

Restore the Firewall Configuration after Replacement

Table of Contents
End-of-Life (EoL)

Restore the Firewall Configuration after Replacement

To restore the firewall configuration on the new firewall, you will first perform initial configuration on the new firewall, including setting the operational mode, upgrading the PAN-OS software and content release version to match what was installed on the old firewall. You will then export the device state of the old firewall from Panorama and import it onto the new firewall. Finally, you will go back to Panorama to validate that the new firewall has connected and then sync it with Panorama.
  1. Perform initial configuration on the new firewall and verify network connectivity.
    Use a serial port connection or a Secure Shell (SSH) connection to add an IP address, a DNS server IP address, and to verify that the new firewall can access the Palo Alto Networks updates server.
  2. (Optional) Set the Operational mode on the new firewall to match that on the old firewall.
    A serial port connection is required for this task.
    1. Enter the following CLI command to access maintenance mode on the firewall:
      > debug system maintenance-mode 
    2. For Operational mode, select Set FIPS Mode or Set CCEAL 4 Mode from the main menu.
  3. Retrieve the license(s) on the new firewall.
    Enter the following command to retrieve the licenses:
    > request license fetch 
  4. (Optional) Match the operational state of the new firewall with that of the old firewall. For example, enable multi-virtual system (multi-vsys) capability for a firewall that was enabled for multi-vsys capability.
    Enter the commands that pertain to your firewall settings:
    > set system setting multi-vsys on  
    > set system setting jumbo-frame on  
  5. Upgrade the PAN-OS version on the new firewall.
    You must upgrade to the same PAN-OS installed on the old firewall. You must upgrade the content release versions to the same or later version that is installed on the old firewall.
    Enter the following commands:
    1. To upgrade the content release version:
      > request content upgrade download latest  
      > request content upgrade install version latest
    2. To upgrade the anti-virus release version:
      > request anti-virus upgrade download latest  
      > request anti-virus upgrade install version latest
    3. To upgrade the PAN-OS software version:
      > request system software download version <version>  
      > request system software install version <version>  
  6. Go to the Panorama CLI and export the device state bundle from the old firewall to a computer using Secure Copy (SCP) or TFTP (you cannot do this from the web interface).
    If you manually exported the device state from the firewall, you can skip this step.
    The export command generates the device state bundle as a tar zipped file and exports it to the specified location. This device state will not include the LSVPN dynamic configuration (satellite information and certificate details).
    Enter one of the following commands:
    > scp export device-state device <old serial#> to <login> @ <serverIP>: <path> 
    or
    > tftp export device-state device <old serial#> to <serverIP>
  7. Replace the serial number of the old firewall with that of the new replacement firewall on Panorama.
    By replacing the serial number on Panorama you allow the new firewall to connect to Panorama after you restore the configuration on the firewall.
    1. Enter the following command in Operational mode:
      > replace device old <old SN#> new <new SN#>
    2. Enter Configuration mode and commit your changes.
      > configure 
      # commit 
    3. Exit Configuration mode.
      # exit
  8. On the new firewall, import the device state and commit the changes.
    1. Access the web interface of the new firewall.
    2. Select DeviceSetupOperations and click the Import Device State link in the Configuration Management section.
    3. Browse to locate the file and click OK.
    4. Commit your changes to the running configuration on the firewall.
  9. From Panorama, verify that you successfully restored the firewall configuration.
    1. Access the Panorama web interface and select PanoramaManaged Devices.
    2. Verify that the Connected column for the new firewall has a check mark.
  10. Synchronize the firewall with Panorama.
    1. Access the Panorama web interface, select CommitCommit and Push and Edit Selections in the Push Scope.
    2. Select Device Groups, select the device group that contains the firewall, and Include Device and Network Templates.
    3. Select Collector Groups and select the Collector Group that contains the firewall.
    4. Click OK to save your changes to the Push Scope.
    5. Commit and Push your changes.
      If you need to generate reports for a period when the old firewall was still functional after you installed the new firewall, you must generate a separate query for each firewall serial number because replacing the serial number on Panorama does not overwrite the information in logs.