Junos Basics – Automatic Configuration Archiving

By | October 28, 2013

In my previous Junos Basics post I covered configuring a Juniper EX2200C switch as a DHCP server. In this post we’ll step through a really nice feature of Junos that is an absolute no-brainer – configuring your Juniper device to automatically back up a copy of it’s configuration file to an FTP server every time a new candidate configuration is committed. Why would you not enable this!?!?

We have an FTP server with an IP address of 192.168.1.101. The server has an FTP user account called juniper with a password of Jun0S.

Here’s our config:

system {
      archival {
        configuration {
            transfer-on-commit;
            archive-sites {
                "ftp://juniper:Jun0s@192.168.1.101";
                }
            }
      }
}

Now, each time a candidate configuration file is committed, a copy is sent the ftp server automatically.

As you can see this is a really useful feature that is really simple to set up.

I hope this has been a useful explanation.  

Thanks for reading.

Rich

Follow Rich on Twitter

Category: How to guides Juniper Tags: ,

About Rich Bibby

Rich Bibby is a UK based Network Engineer, working mainly with Cisco, Juniper and Arista gear in the enterprise LAN, WAN and Data Centre space. Aside from route/switch/firewalling, he is interested in open source network monitoring and management tools, and exploring the possibilities that automation and programmability bring to networking. Follow Rich on Twitter

Leave a Reply

Your email address will not be published. Required fields are marked *