How To Convert Static IP bootstrap File To DHCP Enabled bootstrap File
2645
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
- Following the document: Management Interface Mapping for Use with Amazon ELB
- The init-cfg.txt file to include the below line
op-command-modes=mgmt-interface-swap
- Set the interface type from type=static to type=dhcp-client (see below)
type=staticAfter
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