The Apstra DC Director ZTP server attempts to assign an IP
address for its eth0 interface via DHCP, by default. If you're using the Apstra DC Director
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.
-
SSH into the Apstra DC Director ZTP server as admin (
ssh
admin@<apstra-ztp-server-ip> where
<apstra-ztp-server-ip> is the IP address of the Apstra DC
Director 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)
IPv4 Static Management IP Address
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
dhcp6: 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]
IPv6 Static Management IP Address
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
dhcp6: no
addresses: [2001:db8:1::1001/64]
routes:
- to: default
via: 2001:db8:1::1
nameservers:
search: [example.com, example.net]
addresses: [2001:db8:1fff::546, 2001:db8:1fff::547]
-
Apply the change with one of the following methods:
Next Step: Replace the SSL Certificate for the Apstra DC
Director ZTP Server GUI.