RANCID (Really Awesome New Cisco confIg Differ) is a powerful tool that is used to manage multiple network devices from multiple vendors. It automates the process of storing and maintaining device configurations with the help of Git and version control.
Manjaro is an Arch-based Linux distribution. In this tutorial, we will see how we can install RANCID on Manjaro.
Before installing RANCID, it is important to ensure that the following prerequisites are met:
In order to install RANCID, we will first need to install some packages. Open your terminal and run the following command:
sudo pacman -S rancid git pcre
This will install RANCID, Git, and PCRE (Perl Compatible Regular Expressions).
In order to use Git with RANCID, we need to configure it first. Run the following commands to set your name and email:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Now that we have installed the necessary packages and configured Git, we can proceed with configuring RANCID.
sudo cp /usr/share/rancid/rancid.conf.sample /etc/rancid/rancid.conf
sudo nano /etc/rancid/rancid.conf
LIST_OF_GROUPS="group1 group2"
LIST_OF_GROUPS="cisco"
LIST_OF_DEVICES
section, add the IP addresses or hostnames of the devices you want RANCID to manage, separated by a space. For example:LIST_OF_DEVICES="192.168.1.1 cisco1.example.com"
USERNAME
and PASSWORD
parameters for each device:192.168.1.1:cisco:my_password
cisco1.example.com:cisco:my_password
Ctrl + X
, then Y
, then Enter
.Now that we have configured RANCID, we can initialize it by running the following command:
sudo /usr/lib/rancid/bin/rancid-cvs
This will create the RANCID directories and initialize the devices that we have configured.
To verify that RANCID is working properly, we can run the following command:
sudo /usr/lib/rancid/bin/rancid-run
This will collect the configuration of the devices that we have configured and store them in the RANCID directories.
In this tutorial, we have seen how to install and configure RANCID on Manjaro. With RANCID, we can easily manage the configurations of multiple network devices from multiple vendors, automate backups, and track changes over time. RANCID is an essential tool for any network administrator.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!