Professional Documents
Culture Documents
Configuring Brocade Switches
Configuring Brocade Switches
January 2008
Page 1 of
Page 2 of
Step 1: Log into the switch. login: admin password: ****** (The default password is password) Step 2: Set the management IP network parameters of the switch (and, optionally, the FCIP/iFCP network parameters too). mySwitch01:admin> ipaddrset Ethernet IP Address [192.168.74.102]: 192.168.0.100 Ethernet Subnetmask [255.255.255.0]: 255.255.255.0 Fibre Channel IP Address [0.0.0.0]: <CR> or IP if using FCIP Fibre Channel Subnetmask [0.0.0.0]: <CR> of netmask if using FCIP Gateway IP Address [0.0.0.0]: 192.168.0.1 DHCP [Off]: off mySwitch01:admin> ipAddrShow [ ... output omitted ... ] To continue the configuration process over an IP connection, at this point you can connect a laptop to the switch management Ethernet port using a back-to-back crossover Ethernet cable, as shown in the diagram below. Laptop-to-switch IP connectivity will be needed to update the switch firmware(s) over either of FTP/SSH/NFS protocols. 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.168.0.101/24. Well 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.............: brocade User Password............: brocade User Home directory......: C:\temp\brocade\
Page 3 of
Step 3: Check the version of the switchs kernel, Fabric O/S, BootPROM, etc. If necessary, update these components using the following procedure. Note: Since it uses a Linux kernel, the kernel version is actually a Linux kernel version. mySwitch01:admin> version Kernel: 2.4.19 Fabric OS: v5.2.0v5.2.0_pit_060911_0600 Made on: Mon Sep 11 18:55:09 2006 Flash: Mon Sep 11 19:26:15 2006 BootProm: 4.5.3
Page 4 of
Except for commands that may require a reboot of the switch, or which may initiate a reboot automatically, the remaining steps can be performed from an IP based login. Step 4: Set the switch new password. switch:admin> switch:admin> passwd admin Changing password for admin Enter new password: ******* Re-type new password: ******* Password changed. Saving password to stable storage. Password saved to stable storage successfully.
Page 5 of
the Unique domain ID of the switch. domain ID if required. The default domain ID is 1. If the switch is not until AFTER it is connected to the fabric AND the default domain ID is use within the fabric, the domain ID for the new switch is automatically unique value.
If the switch is connected to the fabric after is has been powered on, and the default domain ID is already in use, the fabric segments. A domain ID can be any number from 1 to 239 inclusive. To find the domain IDs that are currently in use, run the fabricShow command on another switch already participating in the fabric (column 1 of the output indicates the domain ID). Example: mySwitch01:admin> fabricShow SwitchID WorldwideName Enet_IPAddr FC_IP Addr Name ------------------------------------------------------------------------64: fffc40 10:00:00:60:69:00:06:56 192.168.64.59 192.168.65.59 "sw5" 65: fffc41 10:00:00:60:69:00:02:0b 192.168.64.180 192.168.65.180 "sw180" 66: fffc42 10:00:00:60:69:00:05:91 192.168.64.60 192.168.65.60 "sw60" 67: fffc43 10:00:00:60:69:10:60:1f 192.168.64.187 0.0.0.0 "sw187" The Fabric has 4 switches mySwitch01:admin> switchDisable mySwitch01:admin> configure The command prompts display sequentially. Enter a new value or press Enter <CR> to accept each default value.
(d) Complete the remaining prompts, or press Ctrl-D to accept the remaining
settings without completing all the prompts. mySwitch01:admin> configShow mySwitch01:admin> switchEnable For a complete set of configurable options available via the configure command, see appendix A.
Page 6 of
Step 8: Set date/time of the switch manually or by NTP server, and its timezone. 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 (#Sets the timezone to EST) -ormySwitch01:admin> tsclockserver <ipAddress-of-reachable-NTPserver> Step 9: Set the IDLE login session timeout. mySwitch01:admin> timeout IDLE Timeout is set to 10 minutes. 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).
Page 7 of
Page 8 of
Configuring Brocade Switches and Directors PART II: CONFIGURING ALIAS/MEMBERS, ZONES, ZONESETS (by example)
In this section we provide an example for configuring aliases/members, zones, and zoneSets (in that order) on a Brocade switch. Pay attention to the shell prompt (mySwitch01 or mySwitch02) as it will tell you which switch the command to its right were executed on. For your site, simply make the appropriate substitutions for Alias names, WWPNs, Zone names, ZoneSet (i.e. configuration container) names. ####################################################### # Create Brocade Fabric O/S Zone Member Aliases. # ####################################################### Create member aliases for mySwitch01 ############################## # Server HBA's (brocade-sw1) # ############################## mySwitch01:admin> aliCreate "PROD_DB3_PCIslot2", mySwitch01:admin> aliCreate "PROD_DB4_PCIslot2", mySwitch01:admin> aliCreate "PROD_ERP3_PCIslot2", mySwitch01:admin> aliCreate "PROD_ERP4_PCIslot2",
############################## # Storage Ports (brocade-sw1 # ############################## mySwitch01:admin> aliCreate "FC4700_SPA_Port0", "50:06:01:60:fb:00:00:00" mySwitch01:admin> aliCreate "FC4700_SPB_Port0", "50:06:01:68:fb:00:00:00" Create member aliases for mySwitch02 ############################## # Server HBA's (brocade-sw2) # ############################## mySwitch02:admin> aliCreate "PROD_DB3_PCIslot4", "21:00:00:e0:8b:03:28:e1" mySwitch02:admin> aliCreate "PROD_DB4_PCIslot4", "21:00:00:e0:8b:01:72:86" mySwitch02:admin> aliCreate "PROD_ERP3_PCIslot4", "TBD" mySwitch02:admin> aliCreate "PROD_ERP4_PCIslot4", "TBD" ############################## # Storage Ports (brocade-sw2 # ############################## mySwitch02:admin> aliCreate "FC4700_SPA_Port1", "50:06:01:61:fb:00:00:00" mySwitch02:admin> aliCreate "FC4700_SPB_Port1", "50:06:01:69:fb:00:00:00"
Page 9 of
mySwitch01:admin> zoneCreate "PROD_ERP3_PCIslot2_FC4700_SPA_Port0", "PROD_ERP3_PCIslot2; FC4700_SPA_Port0" mySwitch01:admin> zoneCreate "PROD_ERP3_PCIslot2_FC4700_SPB_Port0", "PROD_ERP3_PCIslot2; FC4700_SPB_Port0"
############################################################################### # Create Brocade Fabric O/S Zones Sets (a.k.a Zone Configurations Container). # ############################################################################### ---------------------------------------------------------------------Note: It is possible to include more semicolon (;) seperated Zones within the cfgCreate / cfgAdd commands below, but eventually the lines become too long for the Brocade Fabric O/S shell to handle. So we play it safe and create the ZoneSet with one Zone (via cfgCreate), and then add one Zone at a time (via cfgAdd). ---------------------------------------------------------------------############################# # 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_ZONE1_SW1", "PROD_ZONE1_SW1", "PROD_ZONE1_SW1", "PROD_ZONE1_SW1", "PROD_ZONE1_SW1", "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"
Page 10 of
Page 11 of
Page 12 of
Page 13 of
Page 14 of
Page 15 of
Page 16 of
Page 17 of
Page 18 of
Page 19 of
Page 20 of
Page 21 of
Page 22 of
Page 23 of
Page 24 of
Page 25 of
Page 26 of
Page 27 of
Page 28 of