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.
-
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.)
-
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)
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]
-
Apply the change with one of the following methods:
Next Step: Replace the SSL Certificate for the Apstra ZTP
Server GUI.