How To Convert Static IP bootstrap File To DHCP Enabled bootstrap File

How To Convert Static IP bootstrap File To DHCP Enabled bootstrap File

2453
Created On 07/13/20 19:24 PM - Last Modified 09/24/21 21:54 PM


Symptom


  • Symptom: Attached bootstrap XML fails to set MGT interface to use DHCP with op-command-modes=mgmt-interface-swap enabled. Unsure how to set the XML bootstrap section:
<deviceconfig>
<system>
<ip-address/>
<netmask/>

 


Environment


  • Platform: PA-VM
  • PAN-OS/Plugin Version: Any
  • Deployment: Existing


Cause


  • Having a mix of Dynamic and Static IP types for interface configuration was the cause.


Resolution


               Before
type=static
                 After
type=dhcp-client
ip-address=
default-gateway=
netmask=
  • To remove 3 files for IP Address, default gateway and netmask use the --delete command
    ip-address=--delete code


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000008UpECAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail