2-3Configuring the FTP ClientEstablishing an FTP ConnectionTo access an FTP server, an FTP client must establish a connection with the FTP server. Two ways areavailable to establish a connection: using the ftp command to establish the connection directly; usingthe open command in FTP client view.Source address binding means to configure an IP address on a stable interface such as a loopbackinterface or Dialer interface, and then use this IP address as the source IP address of an FTPconnection. The source address binding function simplifies the configuration of ACL rules and securitypolicies. You just need to specify the source or destination address argument in an ACL rule as thisaddress to filter inbound and outbound packets on the device, ignoring the difference between interfaceIP addresses as well as the affect of interface statuses. You can configure the source address byconfiguring the source interface or source IP address. The primary IP address configured on the sourceinterface is the source address of the transmitted packets. The source address of the transmittedpackets is selected following these rules:z If no source address is specified, the FTP client uses the IP address of the interface determined bythe matched route as the source IP address to communicate with an FTP server.z If the source address is specified with the ftp client source or ftp command, this source address isused to communicate with an FTP server.z If you use the ftp client source command and the ftp command to specify a source addressrespectively, the source address specified with the ftp command is used to communicate with anFTP server.The source address specified with the ftp client source command is valid for all FTP connections andthe source address specified with the ftp command is valid only for the current FTP connection.Follow these steps to establish an FTP connection (In IPv4 networking):To do… Use the command… RemarksEnter system view system-view —Configure the source addressof the FTP clientftp client source { interfaceinterface-type interface-number| ip source-ip-address }OptionalA device uses the IP address ofthe interface determined by thematched route as the source IPaddress to communicate withthe FTP server by default.Exit to system view quit —Log in to the remote FTP serverdirectly in user viewftp [ server-address[ service-port ] [ source{ interface interface-typeinterface-number | ipsource-ip-address } ] ]ftpLog in to the remote FTP serverindirectly in FTP client view open server-address[ service-port ]Use either approach.The ftp command is availablein user view; and the opencommand is available in FTPclient view.