tftp client-source
Function
The tftp client-source command specifies the source IP address for the TFTP client to send packets.
The undo tftp client-source command restores the default source IP address for the TFTP client to send packets.
The default source IP address for the TFTP client to send packets is 0.0.0.0.
Format
tftp client-source { -a source-ip-address | -i interface-type interface-number }
undo tftp client-source
Parameters
Parameter | Description | Value |
---|---|---|
-a source-ip-address | Specifies the source IP address of the TFTP client. You are advised to use the loopback interface IP address. |
The value is in dotted decimal notation. |
-i interface-type interface-number | Source interface type and ID. You are advised to use the loopback interface. The IP address configured for this interface is the source IP address for sending packets. If no IP address is configured for the source interface, the TFTP connection cannot be set up. |
- |
Usage Guidelines
Usage Scenario
If no source IP address is specified, the client uses the source IP address that the router specifies to send packets. The source IP address must be configured for an interface with stable performance. The loopback interface is recommended. Using the loopback interface as the source interface simplifies the ACL rule and security policy configuration. This shields the IP address differences and interface status impact, and incoming and filters outgoing packets, and implements security authentication.
Precautions
The tftp command also configures the source IP address whose priority is higher than that of the source IP address specified in the tftp client-source command. If you specify source addresses in the tftp client-source and tftp commands, the source IP address specified in the tftp command is used for data communication. The source address specified in the tftp client-source command applies to all TFTP connections. The source address specified in the tftp command applies only to the current TFTP connection.
- You can query the source IP address or source interface IP address specified in the TFTP connection on the TFTP server.