Skip to content

Instantly share code, notes, and snippets.

@alexgurrola
Created April 11, 2023 20:23
Show Gist options
  • Save alexgurrola/538bc9e74551df2bca7c373a3e245afe to your computer and use it in GitHub Desktop.
Save alexgurrola/538bc9e74551df2bca7c373a3e245afe to your computer and use it in GitHub Desktop.
FRR install script for Ubuntu/Debian
#!/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