FTP
FTP (File Transfer Protocol) client configuration on IOS-XR controls outbound file transfer behavior per VRF. Each VRF binding specifies the source interface, username and password credentials, anonymous password for unauthenticated access, and whether to use passive mode for data connections.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxr.devices)
Section titled “configuration (iosxr.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| ftp | Class | [ftp] | No |
ftp (iosxr.devices.configuration)
Section titled “ftp (iosxr.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| client | Class | [client] | No |
client (iosxr.devices.configuration.ftp)
Section titled “client (iosxr.devices.configuration.ftp)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| vrfs | List | [vrfs] | No |
vrfs (iosxr.devices.configuration.ftp.client)
Section titled “vrfs (iosxr.devices.configuration.ftp.client)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| anonymous_password | String | No | ||
| passive | Boolean | true, false | No | |
| password | String | No | ||
| password_type | Choice | 7 | No | |
| source_interface | String | No | ||
| username | String | No |
Example YAML Code:
Section titled “Example YAML Code:”Example-1: Configure FTP client.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: ftp: client: vrfs: - name: VRF1 source_interface: Loopback0 username: ftpuser password_type: 7 password: "13061E010803" - name: VRF2 passive: true source_interface: GigabitEthernet0/0/0/0 username: admin password_type: 7 password: "13061E010803"