可以通過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服務器上,保存博科交換機配置時需要可寫權(quán)限。
本文源自博科光纖交換機:http://www.brocader.com.cn/