git clone https://github.com/netboxlabs/netbox-learning.git
cd netbox-learning/automation-zero-to-hero
This script sets all the necessary environment variables so that the correct ports are used for the services and defaults to using the public IPv4 of the host for service URLs.
source ./0_set_envvars.sh
Keep the output from this handy somewhere as we’ll reference it a lot.
./1_install_host_tooling.sh
Check it was successful:
docker version
clab version
./2_start_slurpit.sh
Now you can access Slurpit.
echo "http://${MY_EXTERNAL_IP}:${SLURPIT_PORT}"
(Example output, yours will differ)
http://139.178.74.171:8000
./3_start_network.sh network/1_the_hard_way
docker compose logs -f
in a separate tab to follow along. If you see Error
next to the netbox-docker-netbox-1
container this is often because the healthcheck timeout is shorter than the start up time and it will recover itself automatically../4_start_netbox.sh
Now you can access NetBox.
echo "http://${MY_EXTERNAL_IP}:${NETBOX_PORT}"
(Example output, yours will differ)
http://139.178.74.171:8001
username admin
password admin
./5_start_icinga.sh
Now you can access Icinga.
echo "http://${MY_EXTERNAL_IP}:${ICINGA_PORT}"
(Example output, yours will differ)
http://139.178.74.171:8002
./6_start_netpicker.sh
Now you can access Netpicker.
echo "http://${MY_EXTERNAL_IP}:${NETPICKER_PORT}"
(Example output, yours will differ)
http://139.178.74.171:8003
username admin@admin.com
password 12345678
You can find the Network Automation Zero to Hero GitHub Repo here.
If you have any questions as you go through the course then pop on over to the NetBox Learning channel on the NetDev Community Slack! If you aren’t already a member then you can sign up for free here.