NX-OS POAP Explained & Setup process
PowerOn Auto Provisioning (POAP) automates the process of upgrading software images and installing configuration files on devices that are being deployed in the network for the first time.
When a device with the POAP feature boots and does not find the startup configuration, the device enters POAP mode, sends a DHCP request, and bootstraps itself with its interface IP address, gateway, and DNS server IP addresses. The device also obtains the IP address of a TFTP/SCP server or the URL of an HTTP server and downloads a configuration script that enables the switch to download and install the appropriate software image and configuration file.
The POAP process starts by assigning a temporary IP address to the switch via the DHCP protocol. Additional DHCP scope options are also provided to facilitate the configuration script download.
- Option 66 or Option 150: References the Script Server. IEEE Option 66 allows a single IP address or Server name. Cisco’s Option 150 allows provision of a list of IP addresses for accessing the TFTP-Server
- Option 67: References the Configuration Script or Bootfile Name.
The Open NX-OS switch, acting as a DHCP client, will use this information to contact the TFTP server to obtain the configuration script file.
The configuration script (for example, poap.py) will be executed. The logic of the configuration script will download the software image, switch configuration, agent information, and any other additional requirements from the network. POAP provides multiple mechanisms to flexibly identify switches, based on their serial number or system MAC address or their location in the network, as determined by its directly connected neighbors. The downloaded image and configuration are ‘scheduled’ to be applied after a reboot.
Below is a flowchart representing the POAP process:
- To maintain system security and make POAP more secure, configure the following:
- Enable DHCP snooping.
- Set firewall rules to block unintended or malicious DHCP servers.
- POAP is supported on both MGMT ports and in-band ports.
Setting Up the Network Environment to Use POAP
|Modify the configuration script provided as necessary.
|Deploy a DHCP server and configure it with the interface, gateway, and TFTP server IP addresses and a bootfile with the path and name of the configuration script file. (This information is provided to the switch when it first boots.)
|Deploy a TFTP server to host the configuration script.
|Deploy one or more servers to host the software images and configuration files.
Configuring a Switch Using POAP
Before you begin
Make sure that the network environment is set up to use POAP.
|Install the switch in the network.
|Power on the switch.If no configuration file is found, the switch boots in POAP mode and displays a prompt that asks if you want to abort POAP and continue with a normal setup.No entry is required to continue to boot in POAP mode.
|(Optional) If you want to exit POAP mode and enter the normal interactive setup script, enter y (yes).The switch boots, and the POAP process begins.
Zed networks: https://zed-network.fr/?p=527
Fatal errors: https://www.fatalerrors.org/a/0NV91jE.html
Youtube (implementing POAP) : www.youtube.com/watch?v=3FCWJbGv7w0