You are on page 1of 1

How to do zoning using Cisco CLI commands

In this post we will discuss about the steps to configure zone using CLI commands.
Cisco zoning parts include below main steps.

Below are the steps involved in doing zoning using Cisco CLI commands
Command
# config t
# sanswitch1(config)# fcalias name emcsaninfo_fcalias vsan 2
# sanswitch1(config-fcalias)# member pwwn xx:xx:xx:xx:xx:xx:xx:xx

# sanswitch1(config-fcalias)# exit
# sanswitch1(config)# zone name emcsaninfo_zone vsan 2
# sanswitch1(config-zone)# member fcalias emcsaninfo_fcalias
# sanswitch1(config-zone)# member fcalias emcsaninfo_fcalias1


# sanswitch1(config-zone)# exit
# sanswitch1(config)# exit
# sanswitch1# show zone name emcsaninfo_zone
# sanswitch1#show zoneset active vsan xx

# sanswitch1# config t
# sanswitch1(config)# zoneset name SAN_EMCSANINFO_Active
# sanswitch1(config-zoneset)# member emcsaninfo_zone
# sanswitch1(config-zoneset)# exit
# sanswitch1(config)# zoneset activate SAN_EMCSANINFO_Active vsan
10
# sanswitch1(config)# exit
# sanswitch1# copy running startup
Description
Enter into Configuration Mode
Create a new fcalias called emcsaninfo_fcalias under vsan 2
Configures alias members based on the specified port WWN type and value (pWWN
xx:xx:xx:xx:xx:xx:xx:xx)
Existing from fc alias configuration(Repeat 1 to 4 for creating additional fc alias)
creating zone called emcsaninfo_zone under vsan 2
Adding fc alias emcsaninfo_fcalias as a member of zone emcsaninfo_zone(add your
host fc alias as well as storage alias into the same zone. Here I assume fcalias is the
host alias and fcalias1 as storage alias)

exit from zone config mode
exit from config mode
To display the created zone emcsaninfo_zone
This will display the current active zoneset

Enter into Configuration Mode
Enter into active zoneset configuration Mode
adding zone emcsaninfo_zone into the active zoneset SAN_EMCSANINFO_Active
Exit from zoneset configuration
Activate the zonset SAN_EMCSANINFO_Active
exit from config mode
Copying running configuration to startup configuration

You might also like