Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

Manually transfer a configuration file or text file from EX Switch to TFTP server



Article ID: KB15616 KB Last Updated: 19 Aug 2020Version: 6.0

Unable to copy files to a TFTP server from the EX-series switch. This article provides a detailed description of how to transfer files from an EX Switch to a server using TFTP.


Attempting to TFTP transfer files from the EX Switch to a TFTP server ( results in error.

juniper@reee> copy file case1.txt tftp://
ssh: tftp: hostname nor servname provided, or not known
lost connection
error: put-file failed
error: could not send local copy of file
In this scenario we have a TFTP server that can connect to one of the VLAN RVI's (Routed Virtual Interface) on the EX Switch.  The TFTP server is running on a PC in the same VLAN.
  1. Prepare a TFTP server on a PC with TFTP server software installed.  First, verify there is proper communication between the Switch and the TFTP server by initiating a ping.

    PC (TFTP Server)
    VLAN RVI      


    Ping TFTP server from EX Switch

    juniper@reee> ping
    PING ( 56 data bytes
    64 bytes from icmp_seq=0 ttl=128 time=0.852 ms
    64 bytes from icmp_seq=1 ttl=128 time=1.403 ms
    64 bytes from icmp_seq=2 ttl=128 time=0.505 ms
  2. Check the settings on the TFTP server and make sure the service is running.

  3. Upload (put) a file to the TFTP server from the EX.  Go to the shell prompt and follow the steps given below juniper@reee> start shell

    ( i ) go to the shell prompt.
    ( ii ) tftp to the ip address of the server.
    ( iii ) the put command sends the file to the tftp server.

    %tftp (ip address of the tftp server)
    tftp> put case1.txt( file name)
    Sent 4722 bytes in 0.0 seconds
    tftp> quit
  4. The file will be received (put) on the TFTP server.

  5. Files can also be downloaded from the TFTP server to the EX Switch using the "get" command

    tftp> get configuration.txt
    Received 4476 bytes in 0.0 seconds
Modification History:
2020-08-19: Updated formatting.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search