可以通过configdownload命令将博科交换机的配置从本地恢复到交换机。
switch:admin> configdownload
Protocol (scp or ftp) [ftp]: ftp
Server Name or IP Address [host]: 192.168.1.48
User Name [user]: jdoe
File Name [config.txt]: config.txt
*** CAUTION ***
This command is used to download a backed-up configuration
for a specific switch. If using a file from a different
switch, this file's configuration settings will override
any current switch settings. Downloading a configuration
file, which was uploaded from a different type of switch,
may cause this switch to fail. A switch reboot might be
required for some parameter changes to take effect.
configDownload operation may take several minutes
to complete for large files.
Do you want to continue [y/n]: y
Password: ********
Activating configDownload without disabling switch:
configDownload complete: All config parameters except AD Headers,
SFOS and Security parameters are downloaded to AD0
To download a configuration file interactively, on a non-AD aware switch running Fabric OS v5.1.0:
switch:admin> configdownload
configDownload: This command may not be executed on an operational switch.
You must first disable the switch using the "switchDisable" command.
switch:admin> switchdisable
switch:admin> configdownload
Protocol (scp or ftp) [ftp]: ftp
Server Name or IP Address [host]: 192.168.38.152
User Name [user]: jdoe
File Name [config.txt]: config51x_onSW3900
Password:
*** CAUTION ***
This command is used to download a backed-up configuration
for a specific switch. If using a file from a different
switch, this file's configuration settings will override
any current switch settings. Downloading a configuration
file, which was uploaded from a different type of switch,
may cause this switch to fail. A switch reboot might be
required for some parameter changes to take effect.
Do you want to continue [y/n]: y
configDownload completed successfully. All parameters are downloaded.
switch:admin> switchenable
switch:admin>
博科交换机目前只支持scp两种ftp方式保存及恢复配置,一般情况下还是使用ftp的方式比较多,注意这里是ftp而不是tftp。需要在本地计算机上开启ftp服务,或者交换机可达的某个ftp服务器上,保存博科交换机配置时需要可写权限。
本文源自博科光纤交换机:http://www.brocader.com.cn/