F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Command Reference-6PW100
265
File will be transferred in binary mode
Sending file to remote TFTP server. Please wait...
TFTP: 345600 bytes sent in 1 second(s).
File uploaded successfully.
tftp client source
Use tftp client source to specify a source IP address for outgoing TFTP packets.
Use undo tftp client source to restore the default.
Syntax
tftp client source { interface interface-type interface-number | ip source-ip-address }
undo tftp client source
Default
The primary IP address of the output interface is used as the source IP address for outgoing TFTP packets.
Views
System view
Default command level
2: System level
Parameters
interface interface-type interface-number: Specifies a source interface for outgoing TFTP packets.
ip source-ip-address: Specifies a source IP address for outgoing TFTP packets. This IP address must be
one of the IP addresses configured on the device.
Usage guidelines
You can use the tftp client source command to specify a source IP address or source interface for the TFTP
packets sent by the device. If a source interface (typically, a loopback interface) is specified, its primary
IP address is used as the source IP address for the TFTP packets. The source interface setting and the
source IP address setting overwrite each other.
IMPORTANT:
To avoid TFTP connection failures, when you specify a source interface for TFTP packets, make sure the
interface has been assigned a primary IP address.
The tftp client source command setting applies to all TFTP sessions. When you set up a TFTP session with
the tftp command, you can also specify a different source IP address for the TFTP session.
Examples
# Specify 2.2.2.2 as the source IP address for outgoing TFTP packets.
<Sysname> system-view
[Sysname] tftp client source ip 2.2.2.2
# Use the primary IP address of interface GigabitEthernet 0/1 as the source IP address for outgoing TFTP
packets.
<Sysname> system-view
[Sysname] tftp client source interface gigabitethernet 0/1
[Sysname]