H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 525

Advertising
background image

49-12

Perform FTP server–related configurations on the PC, that is, create a user account on the FTP server
with user name “switch” and password “hello”. (For detailed configuration, refer to the configuration
instruction relevant to the FTP server software.)

2) Configure the switch (FTP client)

# Log in to the switching engine. (You can log in to the switching engine through the console port or by
telnetting the switching engine. See Login in H3C WX3000 Series Unified Switches Switching Engine

Configuration Guide

.)

If available space on the flash memory of the device is not enough to hold the file to be uploaded, you
need to delete files not in use from the flash memory to make room for the file, and then upload the file
again. The files in use cannot be deleted.

# Connect to the FTP server using the ftp command in user view. You need to provide the IP address of
the FTP server, the user name and the password as well to enter FTP view.

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):switch

331 Password required for switch.

Password:

230 User logged in.

[ftp]

# Enter the authorized directory on the FTP server.

[ftp] cd switch

# Execute the put command to upload the configuration file named config.cfg to the FTP server.

[ftp] put config.cfg

# Execute the get command to download the file named config.cfg to the flash memory of the device.

[ftp] get config.cfg

# Execute the quit command to terminate the FTP connection and return to user view.

[ftp] quit

<device>

# After downloading the file, use the startup saved-configuration command to specify the
downloaded configuration file as the main configuration file for next startup, and then restart the device.

<device>startup saved-configuration config.cfg main

Please wait........................................Done!

Advertising