Configuring Brocade Switches and Directors

Configure Brocade Switches and Directors V0.90
Noel Milton Vega Rensselaer Technology Group, LTD.

January 2008

Noel Milton Vega Rensselaer Technology Group, LTD.

Page 1 of

Configuring Brocade Switches and Directors

Diagrams of the switches or directors that will be configured
These diagrams are intended to orient you to the hardware before you arrive at the site. Change these diagrams as necessary. Note that the syntax of some Fabric O/S commands in the pages that follow can change depending on the version of Fabric O/S installed *and* also depending on whether you are configuring a switch or director (i.e. Director’s will usually have more command options/switches to specify which blade number, controller number, etc. to operate on). For this reason, it is recommended to have the “Fabric OS – Command Reference (PDF) Manual” handy so that you can look up syntax variations or substitutes for the commands presented in the pages that follow.

Brocade 4900 Switch

Noel Milton Vega Rensselaer Technology Group, LTD.

Page 2 of

0..0.0. Next...: brocade User Password..... We’ll also assume that the FTP/SSH user profile setup for firmware upgrade (firmwareDownload(1M)) and configuration backup/restore (configDownload/configUpload(1M)) purposes is as follows: FTP/SSH user...: C:\temp\brocade\ Noel Milton Vega Rensselaer Technology Group... connect to the switch and configure initial parameters as follows: Bits per second: 9600 Databits: 8 Parity: None Stop bits: 1 Flow control: None • In a UNIX environment.0 Fibre Channel IP Address [0.. using a vt100 ASCII capable terminal program (like SecureCRT or the Unix tip(1) command).102]: 192.: brocade User Home directory. Laptop-to-switch IP connectivity will be needed to update the switch firmware(s) over either of FTP/SSH/NFS protocols.0. the FCIP/iFCP network parameters too).168. and end converter adapters if necessary)...168. In keeping with the example IP address used in “Step 2” (above) we will assume that the laptop IP address is temporarily set to: “192. at this point you can connect a laptop to the switch management Ethernet port using a back-to-back crossover Ethernet cable. login: admin password: ****** (The default password is “password”) Step 2: Set the management IP network parameters of the switch (and.0....... optionally.. as shown in the diagram below..0]: <CR> or IP if using FCIP Fibre Channel Subnetmask [0...0.1 DHCP [Off]: off mySwitch01:admin> ipAddrShow [ . connect a laptop to the switch via their respective serial interfaces.100 Ethernet Subnetmask [255. enter the following command at the prompt: Root# tip -9600 /dev/term/b (tip -9600 /dev/ttyb) Step 1: Log into the switch.255. LTD..Configuring Brocade Switches and Directors PART I: SETTING UP THE SWITCH/DIRECTOR Step 0: Using the appropriate serial cable (RJ-45 / RS-232 / USB-to-Serial.255.168.168.0]: <CR> of netmask if using FCIP Gateway IP Address [0.0.255.101/24”. ] To continue the configuration process over an IP connection.. mySwitch01:admin> ipaddrset Ethernet IP Address [192...0.0]: 255.0]: 192.255...0.74.. Page 3 of . output omitted ..

19 Fabric OS: v5.2.0. update these components using the following procedure. etc.2.0_pit_060911_0600 Made on: Mon Sep 11 18:55:09 2006 Flash: Mon Sep 11 19:26:15 2006 BootProm: 4.100/24) FTP/SSH Server .0.168.168.4.0v5. “Fabric O/S”. Page 4 of . the kernel version is actually a Linux kernel version. mySwitch01:admin> version Kernel: 2.Configuring Brocade Switches and Directors Laptop (192.3 Noel Milton Vega Rensselaer Technology Group.5. LTD.101/24) FC Switch or Director (192. If necessary. Web Browser Crossover Ethernet cable Step 3: Check the version of the switch’s “kernel”. Note: Since it uses a Linux kernel. “BootPROM”.

you can use ‘fastboot’ which is similar to ‘reboot’ except that POST bypassed.Configuring Brocade Switches and Directors Step 3. It is possible to run the firmwareDownload command with options to automatically initiate the reboot and firmwareCommit commands on the switch or director controller on which it is run. then ‘fastboot’ and ‘reboot’ are equivalent.fastboot Note: Instead or ‘reboot’.... after reboot is complete) mySwitch01:admin> firmwareCommit Validating primary partition. However ‘fastboot’ is not recommended after a firmware upgrade.. FirmwareCommit completes successfully..0. Syntax: firmwareDownload [ -s [ -b | -n ] ] [ -p ftp | scp ] [ -c ] host.. mySwitch01:admin> firmwareDownload -s -n -p ftp 192. Noel Milton Vega Rensselaer Technology Group. However. Also note that if the “diagDisablePost” was run sometime previously. Page 5 of .brocade. Password saved to stable storage successfully. Please wait . switch:admin> switch:admin> passwd admin Changing password for admin Enter new password: ******* Re-type new password: ******* Password changed..release.... starts a dialogue with interactive prompt for parameters. the remaining steps can be performed from an IP based login..168.plist. we choose firmwareDownload options that allow us to manually control the reboot and firmwareCommit phases.. Saving password to stable storage. passwd (See “Fabric O/S Command Reference” for option description). LTD.1: Upgrade the various firmware versions on the switch. or which may initiate a reboot automatically. Replicating kernel image . Note: See firmwareRestore is something goes wrong and it is necessary to revert to the previous firmware levels. IMPORTANT: RUN THE FOLLOWING COMMANDS FROM THE SERIAL TERMINAL PROMPT (NOT FROM AN IP BASED CONNECTION). Finally. since you’ll want to look for console errors while the switch is booting. user... Doing firmwarecommit now. Use ‘fastboot’ only if devices connected to the switch being rebooted do not have alternate paths to the resources provided through that switch. Except for commands that may require a reboot of the switch.101. since we do not know the High Availability characteristics/configuration of the switch/director being upgraded. (Next.. Step 4: Set the switch new password.. pfile. note that running the firmwareDownload command with no options.brocade mySwitch01:admin> reboot –or...

168.168.65..Configuring Brocade Switches and Directors Step 5: Set the switch name (Note: This causes an address format RSCN – just FYI). Enter a new value or press Enter <CR> to accept each default value. LTD.64. (a) Enter y after the “Fabric parameters” prompt: Fabric parameters (yes. or press Ctrl-D to accept the remaining settings without completing all the prompts. and the default domain ID is already in use.64. The default domain ID is 1.187 0.65. switch:admin> switchName mySwitch01 mySwitch01:admin> switchName mySwitch01 Step 6: Set Modify the powered on already in reset to a the Unique domain ID of the switch.180 192.60 192.59 192. see appendix A. y.0. no.64.168. run the fabricShow command on another switch already participating in the fabric (column 1 of the output indicates the domain ID).0 "sw187" The Fabric has 4 switches mySwitch01:admin> switchDisable mySwitch01:admin> configure The command prompts display sequentially. If the switch is not until AFTER it is connected to the fabric AND the default domain ID is use within the fabric. n): [no] y (c) Enter a unique domain ID: Domain: (1.180 "sw180" 66: fffc42 10:00:00:60:69:00:05:91 192.168.168. A domain ID can be any number from 1 to 239 inclusive.64. the fabric segments.168.0.60 "sw60" 67: fffc43 10:00:00:60:69:10:60:1f 192. If the switch is connected to the fabric after is has been powered on.59 "sw5" 65: fffc41 10:00:00:60:69:00:02:0b 192. domain ID if required.168. Example: mySwitch01:admin> fabricShow SwitchID WorldwideName Enet_IPAddr FC_IP Addr Name ------------------------------------------------------------------------64: fffc40 10:00:00:60:69:00:06:56 192. Noel Milton Vega Rensselaer Technology Group. mySwitch01:admin> configShow mySwitch01:admin> switchEnable For a complete set of configurable options available via the configure command. the domain ID for the new switch is automatically unique value.65. Page 6 of .239) [1] 3 (d) Complete the remaining prompts. To find the domain IDs that are currently in use.

a link goes down). frames are always delivered in order. and its timezone. Step 8: Set date/time of the switch manually or by NTP server. because it can cause a delay in the establishment of a new path when a topology change occurs. Only if there are devices connected to the fabric that do not tolerate occasional out-of-order delivery of frames. Disabling IOD allows fast re-routing after a fabric topology change. However. mySwitch01:admin> date “mmddHHMMyy” mySwitch01:admin> date "0227123007" Thu Feb 27 12:30:00 UTC 2007 mySwitch01:admin> date Thu Feb 27 12:30:02 UTC 2007 mySwitch01:admin> tstimezone hourOffsetFromUTC mySwitch01:admin> tstimezone -5 (#Set’s the timezone to EST) -ormySwitch01:admin> tsclockserver <ipAddress-of-reachable-NTPserver> Step 9: Set the IDLE login session timeout. when topology changes occur in the fabric (for instance. should this command be used. mySwitch01:admin> timeout 15 IDLE Timeout Changed to 15 minutes The modified IDLE Timeout will be in effect after NEXT login (Note: Specifying a value of “0” disables timeouts). This command ensures that frames are not delivered out-of-order. This command may cause out-of-order delivery of frames during fabric topology changes. In a stable fabric. Noel Milton Vega Rensselaer Technology Group. The IOD option is turned off by default. This command should be used with caution.Configuring Brocade Switches and Directors Step 7: Turn off the In-Order-Delivery (IOD) option (on is highly discouraged). mySwitch01:admin> iodReset mySwitch01:admin> iodShow IOD is not set Use this command to enforce in-order delivery of frames during a fabric topology change. traffic is rerouted around the failure and some frames might be delivered out of order. However. this command can be used to turn it off again. even when the traffic between switches is shared among multiple paths. mySwitch01:admin> timeout IDLE Timeout is set to 10 minutes. even during fabric topology changes. Page 7 of . if the IOD option was turned on using iodSet. switch:admin> iodSet switch:admin> iodShow IOD is set (Highly discouraged). LTD. Use the iodReset command to turn off the IOD option. The default behavior is for the IOD option to be off.

end devices.Configuring Brocade Switches and Directors Step 10: Add and/or display feature enabling license keys. the licensed product is available immediately and the system does not need to be rebooted. mySwitch01:admin> switchStatusPolicyShow Step 12: Plug in SFP’s. the trunk ports need to be refreshed using the commands portDisable and portEnable or the switch must be refreshed using the commands switchDisable and switchEnable. In this case. there is special handling required when a trunking license is added to the switch. mySwitch01:admin> switchStatusPolicySet Follow the prompts. Also. See Appendix A for details on this command. mySwitch01:admin> nsAllShow mySwitch01:admin> fabricShow mySwitch01:admin> configShow mySwitch01:admin> portShow mySwitch01:admin> switchShow Noel Milton Vega Rensselaer Technology Group. An exception to this general handling is that the switch must be rebooted if a fabric license is added to a switch that lacks a fabric license. For a trunking license to become effective. After you enter a license. mySwitch01:admin> licenseAdd "aBcDeFGh12345" adding license key "aBcDeFGh12345" mySwitch01:admin> licenseShow bQebzbRdScRfc0iK: Web license Zoning license aBcDeFGh12345678: Fabric license Step 11: Set and/or show the policies for handling switch status changes. Page 8 of . the switch must be rebooted to allow the software to recognize the license and initialize itself correctly. LTD. and inspect output of the following commands.

"50:06:01:68:fb:00:00:00" Create member aliases for mySwitch02 ############################## # Server HBA's (brocade-sw2) # ############################## mySwitch02:admin> aliCreate "PROD_DB3_PCIslot4". For your site. ####################################################### # Create Brocade Fabric O/S Zone Member Aliases. # ####################################################### Create member aliases for mySwitch01 ############################## # Server HBA's (brocade-sw1) # ############################## mySwitch01:admin> aliCreate "PROD_DB3_PCIslot2". zones. ZONESETS (by example) In this section we provide an example for configuring aliases/members. Page 9 of . Zone names. and zoneSets (in that order) on a Brocade switch. simply make the appropriate substitutions for Alias names. WWPN’s. ZoneSet (i. configuration container) names. mySwitch01:admin> aliCreate "PROD_ERP3_PCIslot2". mySwitch01:admin> aliCreate "PROD_ERP4_PCIslot2". "21:00:00:e0:8b:06:22:ed" "21:00:00:e0:8b:03:3c:6c" "21:00:00:e0:8b:01:77:86" "TBD" ############################## # Storage Ports (brocade-sw1 # ############################## mySwitch01:admin> aliCreate "FC4700_SPA_Port0". LTD. "50:06:01:61:fb:00:00:00" mySwitch02:admin> aliCreate "FC4700_SPB_Port1". "21:00:00:e0:8b:03:28:e1" mySwitch02:admin> aliCreate "PROD_DB4_PCIslot4".Configuring Brocade Switches and Directors PART II: CONFIGURING ALIAS/MEMBERS. ZONES. "21:00:00:e0:8b:01:72:86" mySwitch02:admin> aliCreate "PROD_ERP3_PCIslot4". "50:06:01:69:fb:00:00:00" Noel Milton Vega Rensselaer Technology Group. Pay attention to the shell prompt (mySwitch01 or mySwitch02) as it will tell you which switch the command to its right were executed on. "TBD" ############################## # Storage Ports (brocade-sw2 # ############################## mySwitch02:admin> aliCreate "FC4700_SPA_Port1". "50:06:01:60:fb:00:00:00" mySwitch01:admin> aliCreate "FC4700_SPB_Port0". mySwitch01:admin> aliCreate "PROD_DB4_PCIslot2".e. "TBD" mySwitch02:admin> aliCreate "PROD_ERP4_PCIslot4".

"PROD_DB3_PCIslot2.a Zone Configurations Container). "PROD_DB3_PCIslot4_FC4700_SPA_Port1" "PROD_DB3_PCIslot4_FC4700_SPB_Port1" "PROD_DB4_PCIslot4_FC4700_SPA_Port1" "PROD_DB4_PCIslot4_FC4700_SPB_Port1" mySwitch02:admin> cfgSave mySwitch02:admin> cfgShow mySwitch02:admin> cfgEnable "PROD_ZONE1_SW2" Noel Milton Vega Rensselaer Technology Group. "PROD_ERP3_PCIslot2. and then add one Zone at a time (via cfgAdd).k. "PROD_DB4_PCIslot4_FC4700_SPB_Port1". "PROD_DB3_PCIslot4_FC4700_SPB_Port1". "PROD_DB4_PCIslot2. "PROD_DB4_PCIslot4. "PROD_ZONE1_SW2". "PROD_ZONE1_SW1". "PROD_DB3_PCIslot2_FC4700_SPB_Port0". # ####################################################### ############################## # Zones for brocade-sw1 # ############################## mySwitch01:admin> mySwitch01:admin> mySwitch01:admin> mySwitch01:admin> zoneCreate zoneCreate zoneCreate zoneCreate "PROD_DB3_PCIslot2_FC4700_SPA_Port0". "PROD_DB3_PCIslot4. FC4700_SPA_Port0" FC4700_SPB_Port0" FC4700_SPA_Port0" FC4700_SPB_Port0" mySwitch01:admin> zoneCreate "PROD_ERP3_PCIslot2_FC4700_SPA_Port0". but eventually the lines become too long for the Brocade Fabric O/S shell to handle. # ############################################################################### ---------------------------------------------------------------------Note: It is possible to include more semicolon (.) seperated Zones within the cfgCreate / cfgAdd commands below. "PROD_ZONE1_SW1". FC4700_SPB_Port0" ############################## # Zones for brocade-sw2 # ############################## mySwitch02:admin> mySwitch02:admin> mySwitch02:admin> mySwitch02:admin> zoneCreate zoneCreate zoneCreate zoneCreate "PROD_DB3_PCIslot4_FC4700_SPA_Port1". "PROD_ZONE1_SW2".Configuring Brocade Switches and Directors ####################################################### # Create Brocade Fabric O/S Zones. "PROD_DB4_PCIslot2_FC4700_SPA_Port0". ---------------------------------------------------------------------############################# # Zone Sets for brocade-sw1 # ############################# mySwitch01:admin> mySwitch01:admin> mySwitch01:admin> mySwitch01:admin> mySwitch01:admin> mySwitch01:admin> cfgCreate cfgAdd cfgAdd cfgAdd cfgAdd cfgAdd "PROD_ZONE1_SW1". "PROD_DB4_PCIslot2_FC4700_SPB_Port0". FC4700_SPA_Port1" FC4700_SPB_Port1" FC4700_SPA_Port1" FC4700_SPB_Port1" ############################################################################### # Create Brocade Fabric O/S Zones Sets (a. "PROD_ERP3_PCIslot2. FC4700_SPA_Port0" mySwitch01:admin> zoneCreate "PROD_ERP3_PCIslot2_FC4700_SPB_Port0". "PROD_ZONE1_SW2". "PROD_DB3_PCIslot2_FC4700_SPA_Port0" "PROD_DB3_PCIslot2_FC4700_SPB_Port0" "PROD_DB4_PCIslot2_FC4700_SPA_Port0" "PROD_DB4_PCIslot2_FC4700_SPB_Port0" "PROD_ERP3_PCIslot2_FC4700_SPA_Port0" "PROD_ERP3_PCIslot2_FC4700_SPB_Port0" mySwitch01:admin> cfgSave mySwitch01:admin> cfgShow mySwitch01:admin> cfgEnable "PROD_ZONE1_SW1" ############################# # Zone Sets for brocade-sw2 # ############################# mySwitch02:admin> mySwitch02:admin> mySwitch02:admin> mySwitch02:admin> cfgCreate cfgAdd cfgAdd cfgAdd "PROD_ZONE1_SW2". "PROD_DB3_PCIslot2. "PROD_DB4_PCIslot4. "PROD_DB4_PCIslot2. Page 10 of . "PROD_ZONE1_SW1". "PROD_ZONE1_SW1". "PROD_DB4_PCIslot4_FC4700_SPA_Port1". LTD. So we play it safe and create the ZoneSet with one Zone (via cfgCreate). "PROD_DB3_PCIslot4. "PROD_ZONE1_SW1".

LTD. Cheat Sheet of Brocade CLI commands: help - prints available commands switchdisabled - disable the switch switchenable - enable the switch licensehelp - license commands diaghelp - diagnostic commands configure - change switch parameters (BB credits. Page 11 of . etc) diagshow - POST results since last boot routehelp - routing commands switchshow - display switch show (normally first command to run to obtain switch configuration) supportshow - full detailed switch info portshow # - display port info nsshow - namesever contents nsallshow - NS for full fabric fabricshow - Fabric information version - firmware code revision reboot - full reboot with POST fastboot - reboot without POST zonecreate (zone) - create a zone zoneshow - shows defined and effective zones and configurations zoneadd - adds a member to a zone zoneremove - removes a member from a zone zonedelete - delete a zone cfgcreate (zoneset) - create a zoneset configuration cfgadd - adds a zone to a zone configuration cfgshow - display the zoning information cfgenable - enable a zone set cfgsave - saves defined config to all switches in fabric across reboots cfgremove - removes a zone from a zone configuration cfgdelete - deletes a zone from a zone configuration Noel Milton Vega Rensselaer Technology Group.Configuring Brocade Switches and Directors APPENDIX A: SELECT COMMAND MANUAL PAGES.

LTD. Page 12 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

Page 13 of . LTD.Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

Page 14 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. LTD.

LTD.Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. Page 15 of .

Page 16 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. LTD.

Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. Page 17 of . LTD.

LTD.Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. Page 18 of .

LTD. Page 19 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. Page 20 of . LTD.

Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. LTD. Page 21 of .

Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. LTD. Page 22 of .

Page 23 of . LTD.Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

Page 24 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. LTD.

Page 25 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group. LTD.

Page 26 of . LTD.Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

LTD. Page 27 of .Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

Page 28 of . LTD.Configuring Brocade Switches and Directors Noel Milton Vega Rensselaer Technology Group.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.