Tuesday, August 6, 2013

CISCO ZONING STEPS THROUGH CLI

 CISCO ZONING STEPS THROUGH CLI 
                              ====================================

Once we have logged in the switch , we need to switch to configuration mode to make changes. " Config Terminal " or "config t " takes to the configuration mode. 

We can execute the normal commands to list configurations through normal mode only. Config mode is ony to make changes in the current configuration. 

Below is the process how to create zoning in Cisco through CLI. Also refer link " http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/sw/san-os/quick/guide/qcg_zones.html" for better understanding 

- Create Alias 
==============
     
FTDCOSAN01(config)# fcalias name webisstg70 vsan 3           ## creates alias with name of server ## 
FTDCOSAN01(config-alias)# member pwwn <port wwn no>          ## adds the wwn of the server in the alias ## 
FTDCOSAN01(config-alias)#exit 

## Fcalias created with name webisstg70 ## 

- Create Zone 
================

FTDCOSAN01(config)# zone name zone_webisstg70 vsan 3         ## creates zone ## 
FTDCOSAN01(config-zone)# member fcalias FTDC04portB          ## adds Storage box port ( alias ) in the zone 
FTDCOSAN01(config-zone)# member fcalias webisstg70           ## adds server wwn ( alias ) in the zone 
FTDCOSAN01(config-zone)# exit

## Zone has been created with FTDC04portB and webisstg70 as members ## 

## You can check the storage box port alias by using command " fcalias show " ( will run on normal prompt ) ## 

- Add zone to zoneset 
=========================

Check the currently active zoneset first 

TDCOSAN01# show zoneset
zoneset name OddDisk_zoneset vsan 3
zone name zone_ftdcsarbapp02 vsan 3
fcalias name FTDC03portB vsan 3
pwwn 50:06:0e:80:10:22:99:21

So "OddDisk_zoneset" is the active zoneset. We need to add the zone in this zoneset 


FTDCOSAN01(config)# zoneset name OddDisk_zoneset vsan 3     ## gets in the config for this zoneset ## 
FTDCOSAN01(config-zoneset)# member zone_webisstg70          ## adds the zone create in previous step to the active zoneset ## 

- Activate the zoneset 
=============================

## Now we need to activate the modified zoneset ## 

FTDCOSAN01(config)# zoneset activate name OddDisk_zoneset vsan 3

##  IMPORTANT : If the above changes have been made properly , it will show you activating zoneset, otherwise it will give message that no change has been made to zoneset ## 

- Checking the configuration 
================================

## Crosscheck if your zone is showing in the active configuration ## 


" show zone active "  or   "show zoneset active " will show you the active zone configuration. We have to make sure that the zone listed in the output has the entries as we wanted it to have :) 

No comments:

Post a Comment