Considerations About Using “clear config” in a Stack
Fixed Switch Configuration Guide 2-5
To create a virtual switch configuration in a stack environment:
1. Display the types of switches supported in the stack, using the show switch switchtype
command.
2. Using the output of the show switch switchtype command, determine the switch index (SID)
of the model of switch being configured.
3. Add the virtual switch to the stack using the set switch member command. Use the SID of the
switch model, determined in the previous step, and the unit ID that you want to assign to this
switch member.
4. Proceed to configure the ports of the virtual switch as you would do for physically present
devices.
Example
The following example adds a virtual switch configuration to a stack of C5 switches. The switch
type being added is a C5G124-24 (SID 1), and it is being added as member unit 4. Port number 1 of
the virtual switch (ge.4.1) is then configured in the same way that a physically present port would
be configured.
C5(su)->show switch switchtype
Mgmt Code
SID Switch Model ID Pref Version
--- -------------------------------- ---- ---------
1 C5G124-24 1 0xa08245
2 C5K125-24 1 0xa08245
3 C5K175-24 1 0xa08245
4 C5K125-24P2 1 0xa08245
5 C5G124-24P2 1 0xa08245
6 C5G124-48 1 0xa08245
7 C5K125-48 1 0xa08245
8 C5K125-48P2 1 0xa08245
9 C5G124-48P2 1 0xa08245
C5(su)->set switch member 4 1
C5(su)->set vlan create 555
C5(su)->set port vlan ge.4.1 555 modify-egress
C5(su)->show port vlan ge.4.1
ge.4.1 is set to 555
Considerations About Using “clear config” in a Stack
When using the clear config command to clear configuration parameters in a stack, it is important
to remember the following:
•Use clear config to clear configuration parameters without clearing stack unit IDs. This
command WILL NOT clear stack parameters or the IP address and avoids the process of
renumbering the stack.
•Use clear config all when it is necessary to clear all configuration parameters, including stack
unit IDs and switch priority values. This command will not clear the IP address nor will it
remove an applied advanced feature license.
Note: If you preconfigure a virtual switch and then add a physical switch of a different type to the
stack as that unit number, any configured functionality that cannot be supported on the physical
switch will cause a configuration mismatch status for that device and the ports of the new device will
join detached. You must clear the mismatch before the new device will properly join the stack.