Performing Software Configurations
Context
After you install a stack card and power on the switch, you can configure related software on the switch. Available configuration options include configuring a stack ID, and configuring a stack priority. By default, the stacking function is enabled on a switch, and you are advised to configure a stack ID and a stack priority to facilitate management. You can configure stack software on a switch that uses stack card stacking with stack ports fixed on the rear panel after the switch is powered on, without having to install stack cards on the switch.
- If you do not restart a switch after changing its stack ID, the new stack ID will not take effect. That is, the switch still uses the original stack ID, and all physical resources are identified by the original stack ID.
- If you save the current configuration and restart the switch after changing its stack ID, the new stack ID takes effect and all the physical resources are identified by the new stack ID. In the configuration file, only the global stack configuration and stack priority of the switch are still in effect. All the other configurations (such as port configuration) related to the original stack ID do not take effect and must be reconfigured.
The stack priority determines the role of member switches during role election. A larger value indicates a higher priority and higher probability that the member switch will be elected as the master switch.
Procedure
- Run the system-view command to enter the system view.
- (Optional) Run the stack slot slot-id renumber new-slot-id command to configure a stack ID for the switch.By default, the stack ID of a switch is 0.
The configuration takes effect after the switch is restarted.
- (Optional) Run the stack slot slot-id priority priority command to configure a stack priority for the switch.
By default, the stack priority of a member switch is 100.
- (Optional) Run the display stack configuration [ slot slot-id ] command to check the stack configuration on a member switch.