109
Syntax
tftp
client
source
{
interface
interface-type interface-number
|
ip
source-ip-address
}
undo
tftp
client
source
Default
No source IPv4 address is configured for outgoing TFTP packets. The device uses the primary IPv4
address of the output interface for the route to the server as the source IP address.
Views
System view
Predefined user roles
network-admin
Parameters
interface
interface-type interface-number
: Specifies the source interface for establishing TFTP
connections. The primary IPv4 address of the source interface is used as the source IPv4 address for
packets sent to a TFTP server. Make sure the interface is up and has the primary IPv4 address configured.
Otherwise, the transmission fails.
ip
source-ip-address
: Specifies the source IPv4 address for outgoing TFTP packets. It must be the IPv4
address of an interface in up state. Otherwise, the transmission fails.
Usages guidelines
If you execute this command multiple times, the most recent configuration takes effect.
The source address specified with the
tftp
command takes precedence over the source address specified
with the
tftp
client
source
command.
The source address specified with the
tftp client source
command applies to all TFTP connections. The
source address specified with the
tftp
command applies only to the current TFTP connection.
Examples
# Specify the source IP address of sent TFTP packets as 192.168.20.222.
<Sysname> system-view
[Sysname] tftp client source ip 192.168.20.222
Related commands
tftp
tftp-server acl
Use
tftp-server acl
to use an ACL to control the device's access to TFTP servers in an IPv4 network.
Use
undo tftp-server acl
to restore the default.
Syntax
tftp-server acl
acl-number
undo
tftp-server
acl
Default
No ACL is used to control the device's access to TFTP servers.