306 CHAPTER 33: FTP AND TFTP CONFIGURATION GUIDE
# Assign IP address 1.1.1.1/16 to VLAN-interface 1. (You can log in to the switch
through the Console port. For detailed information, refer to “Logging in through
the Console Port” in the Configuration Guide for your product.)
<3Com>
<3Com> system-view
[3Com] interface Vlan-interface 1
[3Com-Vlan-interface1] ip address 1.1.1.1 16
[3Com-Vlan-interface1] quit
# Enable the FTP server function, and configure the username and password for
the FTP client to access FTP services.
[3Com] ftp server enable
[3Com] local-user switch
[3Com-luser-switch] password simple hello
[3Com-luser-switch] service-type ftp
Run an FTP client application on the PC to connect to the FTP server.
The following takes the command line window tool provided by Windows as an
example:
# Enter the command line window and browse to the directory where the file
switch.bin is located. In this example it is in the root directory of C:.
C:\>
# Access the Ethernet switch through FTP. Input the username switch and
password hello to log in and enter FTP view.
C:\> ftp 1.1.1.1
ftp>
# Switch data transfer mode to binary.
[ftp] binary
n3Com recommends that you set the transfer mode to binary before performing
data transfer operation, so as to ensure that the device can receive data normally.
ftp> put switch.bin
# Download file config.cfg.
ftp> get config.cfg
Upgrade the application of the switch.
# Use the boot boot-loader command to specify the uploaded application to be
the startup file for next startup and restart the switch to complete the switch
application upgrade.
<3Com> boot boot-loader switch.bin
<3Com> reboot