Connectrix: MDS Series Cisco: How to create Zoning for Switches using CLI
Summary: This KB article describes how to create Zoning for CISCO switches using the Command Line Interface (CLI).
Instructions
How to create Zoning for CISCO switches using CLI.
Create a New zone:Switch(Config)# Zone name <Name of the zone> vsan 1
Adding members to the zone:
switch(config-zone)# Member pwwn <WWPN of the HBA>
Orswitch(Config-zone)# Member fcalias <Alias name of the HBA>
Add all members of the zone using one of the above methods.
You can get the World Wide Port Name (WWPN) number by running the " show flogi database" command.
Modify the zoneset:switch(config)# zoneset name primary_zoneset vsan 1switch(config_zoneset)#
Adding previously created zone into the zoneset:switch(config_zoneset)# member <Name of the new zone>
Activate zoneset:switch (config)# zoneset activate name primary_zoneset vsan 1
Repeat the process for all the zones.
Save config:switch# copy running-config startup-config
These above commands can be found in the Cisco Multilayer Director Switch (MDS) 9000 Family CLI Configuration Guide: cli.pdf