Configure Static Management IP Address (Apstra Server)
If you're not using DHCP, you can use the configuration tool to enter a static management IP address, or you can configure it as follows:
-
SSH into the Apstra server as user admin. (
ssh admin@<apstra-server-ip>
where<apstra-server-ip>
is the IP address of the Astra server.) -
Edit the
/etc/netplan/01-netcfg.yaml
file (per standard Ubuntu 18.04 practice) to configure the static management IP address. See example below. (For more information about using netplan, see https://netplan.io/examples.)admin@aos-server:~$ 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.250/24] gateway4: 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:
- Method
1 - Reboot the Apstra server with the command
sudo reboot
. - Method
2 - Run the command
sudo netplan apply
, then SSH to the new IP address and run the commandsudo service aos restart
.
- Method
1 - Reboot the Apstra server with the command
-
If you already have on-box agents, you must reconfigure each device agent
(
/mnt/flash/aos-config
,/etc/aos/aos.conf
) to point to the new Apstra server IP address.