
•
Enable the FTP server on the router.
•
Use FTP to upload a software upgrade file from an FTP client to upgrade the device.
Figure 5
Network diagram
Software version used
This configuration example was created and verified on S12500-CMW710-R7328P02.
Requirements analysis
When you use the device as an FTP server, you must create a local user account on the device to
provide FTP service.
Configuration restrictions and guidelines
When you upgrade software, follow these restrictions and guidelines:
•
Make sure the device has sufficient storage space for the upgrade file. If the device does not have
sufficient storage space, delete unused files by using the
delete /unreserved
file
-
url
command.
•
Save the configuration before the upgrade for the configuration to survive a reboot.
•
If the device has two MPUs, you must upgrade both MPUs for the device to operate correctly.
•
You must set the file transfer mode to binary.
Configuration procedures
1.
Configure the FTP server:
# Assign an IP address to M-GigabitEthernet 0/0/0.
<Device> system-view
[Device] interface M-GigabitEthernet0/0/0
[Device-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Device-M-GigabitEthernet0/0/0] quit
# Add a local user account. Set the username to
abc
and the password to
123456
.
[Device] local-user abc
[Device-luser-abc] password simple 123456
# Assign the network-admin user role to the user account.
[Device-luser-abc] authorization-attribute user-role network-admin
# Remove the default network-operator user role.
[Device-luser-abc] undo authorization-attribute user-role network-operator
# Assign FTP service to the user account.
[Device-luser-abc] service-type ftp
[Device-luser-abc] quit
# Enable the FTP server.
[Device] ftp server enable
[Device] quit
# Save the configuration.