0

Model: j6350

JUNOS Software Release [12.1X46-D65.4]

Is there an easy way to copy the config file to TFTP?

1
  • 1
    Is there any compelling reason to not use SCP instead?
    – JFL
    Commented Jun 22, 2020 at 11:41

1 Answer 1

3

JunOS has a tftp client available from the shell. You can use it as follows:

jsw@router> start shell 
% cd /config
% tftp
tftp> connect 192.0.2.69
tftp> put juniper.conf.gz
Sent 3896 bytes in 0.4 seconds
tftp> ^D% 
% exit
exit

A common reason for doing this is to back up your configuration. Note JunOS can do this automatically via FTP, HTTP, or SCP if you configure it as follows (Juniper guide):

system {
    archival {
        configuration {
            transfer-on-commit;
            archive-sites {
                "scp://user@host:/directory/ password foo";
            }
        }
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.