Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring the Source Interface for FTP Packets

    You can configure an operational interface as the source interface for FTP packets sent by the system’s FTP client using the ip ftp source-address and ip ftp source-interface commands.

    When you issue the ip ftp source-address command, the output of the show configuration command includes an entry of the following format:

    ip ftp source-address ipAddress

    This entry also appears in the output if you delete an interface or change its IP address after issuing the ip ftp source-interface command, in which case the IP address is the one that was configured on the interface before you issued the ip ftp source-interface command.

    When you issue the ip ftp source-interface command, the output of the show configuration command includes an entry of the following format:

    ip ftp source-interface interfaceType interfaceSpecifier
    • interfaceType—Type of interface.
    • interfaceSpecifier—Location of the interface

      For information about interface types and specifiers, see Interface Types and Specifiers in JunosE Command Reference Guide.

    If you delete the interface or change its IP address, the output of the show configuration command appears as if you had entered the ip ftp source-address command:

    ip ftp source-address ipAddress
    • ipAddress—IP address of the interface when you issued the ip ftp source-interface command.

    To configure an operational interface as the source interface for FTP packets sent by the system’s FTP client:

    • Issue the ip ftp source-address command in Global Configuration mode for configuring an operational interface as the source interface using the IP address.
      host1(config)#ip ftp source-address 10.10.5.21

      This command overrides a setting you configured previously with the ip ftp source-interface command. Use the no version to restore the default, in which the source address in the FTP packets is that of the interface where the FTP connection is made.

    • Issue the ip ftp source-interface command in Global Configuration mode for configuring an operational interface as the source interface using the interface type and interface specifier.
      host1(config)#ip ftp source-interface loopback1

      Note: The interface you specify must have an IP address.

      This command overrides a setting you configured previously with the ip ftp source-address command. Use the no version to restore the default, in which the source address in the FTP packets is that of the interface where the FTP connection is made.

    Published: 2014-08-12