Step 1
|
configure dual-stage
switch# configure dual-stage
switch(config-dual-stage)#
|
Creates a new target configuration session.
Note
|
The target configuration isn’t a copy of the running configuration. It has only the configuration commands entered during
the target configuration session.
|
|
Step 2
|
feature
feature_name
switch(config-dual-stage)# feature bgp
switch(config-dual-stage)#
|
|
Step 3
|
commit [confirmed seconds]
switch(config-dual-stage-router)# commit confirmed 30
Verification Succeeded.
Proceeding to apply configuration. This might take a while depending on amount of configuration in buffer.
Please avoid other configuration changes during this time.
Configuration committed by user 'admin' using Commit ID : 1000000001
switch(config-dual-stage)#
switch(config-dual-stage)# commit
Confirming commit for trial session.
switch(config-dual-stage)#
switch(config-dual-stage)# hostname example-switch
switch(config-dual-stage)# commit
Verification Succeeded.
Proceeding to apply configuration. This might take a while depending on amount of configuration in buffer.
Please avoid other configuration changes during this time.
Configuration committed by user 'admin' using Commit ID : 1000000002
example-switch(config-dual-stage)#
|
Commits changes to the running configuration.
-
confirmed : Commits the changes to the running configuration.
-
seconds : Commits the configuration in global configuration mode on a trial basis for a minimum of 30 seconds and a maximum of 65535
seconds.
Note
|
If you enter a trial period, run the commit command to confirm the configuration. If you don’t run the commit command, the
switch reverts to the previous configuration after the trial period.
|
|
Step 4
|
switch(config-dual-stage)# router bgp 64515.46
switch(config-dual-stage-router)#
switch(config-dual-stage-router)# router-id 141.8.139.131
switch(config-dual-stage-router)#
|
Run any feature-related commands that are supported in this configuration mode.
|
Step 5
|
show configuration
switch(config-dual-stage-router)# show configuration
! Cached configuration
!
router bgp 64515.46
router-id 141.8.139.131
|
Displays the target configuration.
Note
|
You can run this command only in the dual-stage configuration mode.
|
|
Step 6
|
commit [confirmed
seconds ]
switch(config-dual-stage-router)# commit
Verification Succeeded.
Proceeding to apply configuration. This might take a while depending on amount of configuration in buffer.
Please avoid other configuration changes during this time.
Configuration committed by user 'admin' using Commit ID : 1000000003
|
Commits changes to the running configuration.
|
Step 7
|
(Optional) show configuration commit [changes] commit-id
switch(config-dual-stage-router)# show configuration commit changes 1000000003
*** /bootflash/.dual-stage/1000000003.tmp Fri Mar 19 10:59:00 2021
--- /bootflash/.dual-stage/1000000003 Fri Mar 19 10:59:05 2021
***************
*** 378,383 ****
--- 378,385 ----
line console
line vty
boot nxos bootflash:/nxos64.10.1.1.44.bin
+ router bgp 64515.46
+ router-id 141.8.139.131
xml server timeout 1200
no priority-flow-control override-interface mode off
switch(config-dual-stage)# show configuration commit 1000000003
feature bgp
router bgp 64515.46
router-id 141.8.139.131
.
.
.
|
(Optional)
Displays commit-related information.
Only the last 50 commits or the commit files stored in the reserved disk space are saved. The reserved disk space is 20 MB.
All the commit sessions will be removed when you reload the switch. However, the commit IDs are not removed. Also, these commit
IDs will not be removed in case of write, erase, and reload.
Use the show configuration commit changes
commit-id command to view only the changes in the current session of the commit you specify.
Use the show configuration commit
commit-id command to view the complete configurations in the commit you specify.
|
Step 8
|
(Optional) save configuration
filename
switch(config-dual-stage)# save configuration bootflash:test.cfg
|
(Optional)
Saves the target configurations to a separate file without committing them to the running configuration.
Note
|
-
You can load the target configuration files later, modify, or commit. The file will be saved in bootflash.
-
You can view the configuration file you saved by running the show configuration file
filename command.
-
Some of the user-specific information will be masked based on the user role.
-
Configs saved in dual stage mode is an encrypted file and can be viewed only using #show configuration file <> and not using #show file <>.
|
|
Step 9
|
(Optional) load
filename
switch (config-dual-stage)# show configuration
! Cached configuration
switch (config-dual-stage)# load test.cfg
switch (config-dual-stage-router)# show configuration
! Cached configuration
!
router bgp 1
switch(config-dual-stage-router)#
|
(Optional)
Loads a target configuration that you saved. After loading a file, you can modify it or commit it to the running configuration.
To save the changes, use the save configuration
filename command.
You can load a target configuration that you saved using only the save configuration
filename command.
|
Step 10
|
(Optional) clear configuration
switch(config-dual-stage)# show configuration
! Cached configuration
!
router bgp 64515.46
router-id 141.8.139.131
switch (config-dual-stage)# clear configuration
switch (config-dual-stage)# show configuration
! Cached configuration
switch (config-dual-stage)#
|
(Optional)
Clears changes made to the target configuration without terminating the configuration session. It deletes any configuration
changes that aren’t committed.
|
Step 11
|
end
switch(config-dual-stage-if)# end
Uncommitted changes found, commit them before exiting (yes/no/cancel)? [cancel]
|
Exits the global dual stage configuration mode.
If you end a configuration session without committing the configuration changes, you’ll be prompted to save changes, discard
changes, or cancel the action:
-
Yes: Commits the configuration changes and exit configuration mode
-
No: Exits the configuration mode without committing the configuration changes
-
Cancel: Remains in configuration mode without committing the configuration changes
Note
|
-
If you choose to exit when a confirm commit timer is running, the same options are displayed. If you still chose to exit,
the trial configuration rolls back instantly.
-
If the default session times out before the timer expires, the trial configuration rolls back before exiting the session.
In this case, no warning message appears.
|
|