Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Juniper Apstra 5.1.0 User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure Static Management IP Address for Apstra ZTP Server

Release: Juniper Apstra 5.1
{}
Change Release
date_range 21-Mar-25
The Apstra ZTP server attempts to assign an IP address for its eth0 interface via DHCP, by default. If you're using the Apstra ZTP server as a DHCP server, you must set a management IP address. If you didn't set the IP address on first boot using the interactive bash script that automatically runs, then you can follow the steps below to do it now.
  1. SSH into the Apstra ZTP server as admin (ssh admin@<apstra-ztp-server-ip> where <apstra-ztp-server-ip> is the IP address of the Apstra ZTP server.)
  2. Edit the /etc/netplan/01-netcfg.yaml file to configure the static management IP address. See example below. (For more information about using netplan, see https://netplan.io/examples)
    content_copy zoom_out_map
    admin@apstra-ztp:~$ sudo vi /etc/netplan/01-netcfg.yaml
    [sudo] password for admin:
    
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
      version: 2
      renderer: networkd
      ethernets:
        eth0:
          dhcp4: no
          addresses: [192.168.59.4/24]
          routes:
          - to: default
            via: 192.168.59.1
          nameservers:
              search: [example.com, example.net]
              addresses: [69.16.169.11, 69.16.170.11]
    
  3. Apply the change with one of the following methods:
    • Reboot the Apstra ZTP server with the command sudo reboot.

    • Run the command sudo netplan apply.

Next Step: Replace the SSL Certificate for the Apstra ZTP Server GUI.
footer-navigation