Created
April 11, 2023 20:23
-
-
Save alexgurrola/538bc9e74551df2bca7c373a3e245afe to your computer and use it in GitHub Desktop.
FRR install script for Ubuntu/Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# declare version | |
FRRVER="frr-stable" | |
# install prerequisites | |
sudo apt update && sudo apt install apt-transport-https gnupg | |
# add gpg key | |
curl -s https://deb.frrouting.org/frr/keys.asc | sudo apt-key add - | |
# add repository | |
echo deb https://deb.frrouting.org/frr $(lsb_release -s -c) $FRRVER | sudo tee -a /etc/apt/sources.list.d/frr.list | |
# update apt (gather repository locations) | |
sudo apt update | |
# install frr | |
sudo apt install frr frr-pythontools | |
# add user to frr group | |
sudo usermod -a -G frr $USER | |
# enter a new shell with the added group permissions | |
sudo su $USER | |
# enter frr config directory | |
cd /etc/frr/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment