prepare
use console cable to connect the switch
if we don’t have the ZTP environment. we need use console port to install the switch os. and we need a network cable to connect the mgmt interface.
switch the next boot to ONIE
check the grub menuentry and switch to onie
1 2 3 4 5 6 7
| grep -i "menuentry '" /boot/grub/grub.cfg|sed -r "s|--class .*$||g"|nl -v 0
0 menuentry 'Cumulus-Linux GNU/Linux' 1 menuentry 'Cumulus-Linux GNU/Linux, with Linux 4.19.0-cl-1-amd64' 2 menuentry 'Cumulus-Linux GNU/Linux, with Linux 4.19.0-cl-1-amd64 (recovery mode)' 3 menuentry ONIE {
|
1 2 3
| grub-reboot ONIE
reboot
|
setup the onie network
stop onie ztp
add ip address on eth0(mgmt interface)
1 2
| ip address add 100.64.31.101/24 dev eth0 ip route add default via 100.64.31.1
|
install the cumulus system
start a web serivce with python3
1 2
| python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
|
install cumulus os