2.4. Configuring FTP server

Overview

Function Introduction

You can download a switch configuration file from an FTP server or upload the file from the switch to an FTP server. You download a switch configuration file from a server to upgrade the switch configuration. You can overwrite the current startup configuration file with the new one. You upload a switch configuration file to a server for backup purposes. You can use this uploaded configuration for future downloads to the switch or another switch of the same type.

Principle Description

N/A

Configuration

You can copy configurations files to or from an FTP server. The FTP protocol requires a client to send a remote username and password on each FTP request to a server.

Before you begin downloading or uploading a configuration file by using FTP, do these tasks:

  • Ensure that the switch has a route to the FTP server. The switch and the FTP server must be in the same network if you do not have a router to route traffic between subnets. Check connectivity to the FTP server by using the ping command.

Сonfiguration of FTP server

step 1 Enter the configure mode

Switch# configure terminal

step 2 Enable FTP server on management interface

Switch(config)# ftp server mgmt-if enable

step 3 Config switch system users

Users should config password and the privilege should be 4

Switch(config)# username admin privilege 4 password admin

step 4 Validation

Clent connects to FTP server on the switch and enters the username and password. In this example the IP address of server management interface is 10.10.10.10.

Switch# ftp mgmt-if 10.10.10.10
Connected to 10.10.10.10.
220\-\-\-\-\-\-\-\-\-- Welcome to FTP-SERVER \-\-\-\-\-\-\-\-\--
220-You are user number 1 of 50 allowed.
220-Local time is now 06:41. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (10.10.10.10:LOGIN): admin
331 User admin OK. Password required
Password:
230 OK. Current directory is /
Remote system type is UNIX.
Using binary mode to transfer files.

Other optional configuration

Config FTP server port default is 21

Switch# ftp server port 10000

Config FTP server time-out default is 15min

Switch# ftp server time-out 5

Config FTP server VRF or IP inband address.

Please refer to ftp server source address command for additional information.

Switch# ftp server source address 1.1.1.1
Switch# ftp server source address vrf test 0.0.0.0
Switch# ftp server source address vrf test 2.2.2.2

Application cases

N/A