There are two possible methods for this. The first method involves generating a CLI script from the config, and running it on the new switch. The second method will upload the actual config file to the new switch. 1. On the first switch, use the upload config command to upload an EXOS CLI script to a TFTP server. This script will be the same as the output of show config. In this example, the script is called config.xsf. However, the filename does not matter, as long as the extension is .xsf. 2. On the second switch, use the tftp get command to download this script. 3. Run the script with the load script command. 4. Save the configuration on the new switch. 1. Use the show switch command to see what the currently selected configuration file is. 2. Upload that file to a TFTP server with the tftp put command. 3. On the new switch, download the config file with the tftp get command. 4. Select this file as the config to be used on the next reboot. 5. Reboot the switch to boot to the new config file. When prompted, DO NOT save the config. Saving the config at this point will overwrite the newly selected config file.X460G2-24p-G4.6 # upload config 192.0.2.156 config.xsfUploading config.xsf to 192.0.2.156 ... done!
X460G2-24p-G4.7 # tftp get 192.0.2.156 config.xsfDownloading config.xsf to switch... done!
X460G2-24p-G4.8 # load script config
X460G2-24p-G4.8 # show switchSysName: X460G2-24p-G4SysLocation:SysContact: [email protected], +1 888 257 3000System MAC: 00:04:96:98:8D:48System Type: X460G2-24p-G4SysHealth check: Enabled (Normal)Recovery Mode: AllSystem Watchdog: EnabledCurrent Time: Thu Aug 13 21:09:50 2015Timezone: [Auto DST Disabled] GMT Offset: 0 minutes, name is UTC.Boot Time: Tue Aug 11 20:32:30 2015Boot Count: 77Next Reboot: None scheduledSystem UpTime: 2 days 37 minutes 19 secondsCurrent State: OPERATIONALImage Selected: secondaryImage Booted: secondaryPrimary ver: 15.7.1.4Secondary ver: 16.1.1.4Config Selected: primary.cfgConfig Booted: primary.cfgprimary.cfg Created by ExtremeXOS version 16.1.1.4 270945 bytes saved on Tue Aug 11 20:31:53 2015
X460G2-24p-G4.9 # tftp put 192.0.2.156 primary.cfgUploading primary.cfg to 192.0.2.156 ... done!
X460G2-24p-G4.10 # tftp get 192.0.2.156 primary.cfg/usr/local/cfg/primary.cfg already exists, do you want to overwrite it? (y/N) YesDownloading primary.cfg to switch..... done!
X460G2-24p-G4.11 # use config primaryThe selected configuration will take effect after the next switch reboot.
X460G2-24p-G4.12 # rebootDo you want to save configuration changes to currently selected configurationfile (primary.cfg) and reboot?(y - save and reboot, n - reboot without save, <cr> - cancel command) No
Some configurations such as stacking and port partitioningrequire to reboot the switch. Users have to pre-configure the configurations before the Method 1 or 2. By default, the tftp and upload config commands use VR-Mgmt. If needed, another VR can be specified in the command, as shown below for VR-Default. Note that an IP address must first be configured on the switch before using TFTP to download files.X460G2-24p-G4.15 # tftp get 192.0.2.156 vr VR-Default primary.cfg/usr/local/cfg/primary.cfg already exists, do you want to overwrite it? (y/N) YesDownloading primary.cfg to switch..... done!
X460G2-24p-G4.16 # upload config 192.0.2.156 config.xsf vr VR-DefaultUploading config.xsf to 192.0.2.156 ... done!
How to configure an IP address on a VLAN
Was this article helpful in resolving your issue?YesNo
Feedback
Maximum Characters 255
CancelSubmit
Related Content