Creating a Virtual Switch Configuration
2-4 Configuring Switches in a Stack
Tocreateavirtualswitchconfigurationinastackenvironment:
1. Displaythetypesofswitchessupportedinthestack,usingtheshowswitchswitchtype
command(page2‐7).
2. Usingtheoutputoftheshowswitchswitchtypecommand,determinetheswitchindex(SID)
ofthemodelofswitchbeingconfigured.
3. Addthevirtual
switchtothestackusingthesetswitchmembercommand(page2‐11).Use
theSIDoftheswitchmodel,determinedinthepreviousstep,andtheunitIDthatyouwantto
assigntothisswitchmember.
4. Proceedtoconfiguretheportsofthevirtualswitchasyouwoulddo
forphysicallypresent
devices.
ThefollowingexampleaddsaC2G124‐24modetoastackasunit2ofthestack.Thefirstporton
thatvirtualswitchisthenassociatedwithVLAN555.
C2(su)->show switch switchtype
Mgmt Code
SID Switch Model ID Pref Version
--- -------------------------------- ---- ---------
1 C2G124-24 1 0xa08245
2 C2K122-24 1 0xa08245
3 C2G124-48 1 0xa08245
4 C2G124-48P 1 0xa08245
5 C2H124-48 1 0xa08245
6 C2H124-48P 1 0xa08245
7 C2G134-24P 1 0xa08245
8 C2G170-24 1 0xa08245
9 C3G124-24P 1 0xa08245
10 C3G124-48P 1 0xa08245
11 C3G124-48 1 0xa08245
12 C3G124-24 1 0xa08245
13 C3K172-24 1 0xa08245
15 C3K122-24 1 0xa08245
17 C3K122-24P 1 0xa08245
C2(su)->set switch member 2 1
C2(su)->show switch
Management Preconfig Plugged-in Switch Code
Switch Status Model ID Model ID Status Version
------ ------------ ------------- ------------- --------------------- --------
1 Mgmt Switch C2G124-48 C2G124-48 OK 5.02.xx.xxxx
2 Unassigned C2G124-24 Not Present 00.00.00
C2(su)->set vlan create 555
C2(su)->clear vlan egress 1 ge.2.1
C2(su)->set port vlan ge.2.1 555 untagged
C2(su)->show port vlan ge.2.1
ge.2.1 is set to 555
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.