This repo can be used to create a mgmt station configured with:
- DHCP
- ZTP - basic shell script
- ansible hosts
- /etc/hosts
Just edit the files with your environment. plug in the laptop to the eth0 OOB network, and do the following from the RocketJump directory:
vagrant up
- choose which device is connected to the eth0 OOB network
vagrant ssh mgmt
- From laptop terminal:
- ls rocketjump
- vagrant status
- Copy the Cumulus Linux Image to the mgmt VM
- login and download the x86 version of the CL 3.1.2 image from https://cumulusnetworks.com/downloads/
- copy that image binary to the ./RocketJump/ directory
- Use nano or vim to edit the files
- ansible_hostfile
- hostnames
- group names
- hosts
- ips
- hostnames
- ztp.sh
- passwordless sudo
- pre-automation /etc/network/interfaces
- dhcpd.conf
- ips
- hostnames
- ztp file Locations
- Use nano or vim to edit the only line in the cumulus.lic file
- use vim or nano to open ./RocketJump/cumulus.lic
- retrieve the license from your email
- copy and paste the license over the line:
- save the file and exit vim/nano
- From the Host running VirtualBox (laptop) - login/password: vagrant/vagrant (not needed)
- vagrant up
- vagrant ssh
- Now you will be inside the VM (Cumulus VX). Let's switch to user (su) "root".
- sudo su
- Now use NCLU to check the version
- net show version
- Check apache hosted files
root@mgmt:/home/vagrant# ls -alth /var/www/html/
total 20K
drwxr-xr-x 1 root root 92 Dec 29 03:25 .
-rw-r--r-- 1 root root 0 Dec 29 03:25 cumulus.lic
-rw-r--r-- 1 root root 997 Dec 29 03:25 ztp.sh
-rw-r--r-- 1 root root 391 Dec 29 03:25 authorized_keys
-rw-r--r-- 1 root root 11K Dec 29 03:25 index.html
drwxr-xr-x 1 root root 8 Dec 29 03:25 ..
- Check DHCP config
root@mgmt:/home/vagrant# ls -alth /etc/dhcp/
total 8.0K
-rwxr-xr-x 1 root root 4.0K Dec 29 03:25 dhcpd.conf
drwxr-xr-x 1 root root 3.5K Dec 29 03:25 ..
drwxr-xr-x 1 root root 134 Dec 14 03:12 dhclient-exit-hooks.d
drwxr-xr-x 1 root root 132 Dec 14 03:12 .
drwxr-xr-x 1 root root 10 Dec 14 03:10 dhclient-enter-hooks.d
-rwxr-xr-x 1 root root 1.9K Dec 2 17:33 dhclient.conf
- Locations
- /var/log/syslog
- /var/log/apache2/access.log
- Tail both files at once.
- tail -f /var/log/syslog /var/log/apache2/access.log