Thursday, March 12, 2015

MDS Series Switch Zoning via CLI


Zones are configured within VSANs. The Logical tab displays the VSANs configured in the currently discovered fabric. 
Note: zone information must always be identical for all the switches in the network fabric.

To configure a zone and assign a zone name, follow these steps:

Configuring an Alias

To create an alias using the fcalias command, follow these steps:


Command
Purpose
Step 1 
switch# config t
Enters configuration mode.
Step 2 
switch(config)# fcalias name Alias_Sample vsan 3
switch-config-fcalias#
Configures an alias name (Alias_Sample).
   Step 3
switch-config-fcalias# member pwwn xx:xx:xx:xx:xx:xx:xx:xx
Configures alias members based on the specified port WWN type and value (pWWN xx:xx:xx:xx:xx:xx:xx:xx).

Creating Zone Sets

A zone set consists of one or more zones. A zone can be a member of more than one zone set and consists of multiple zone members. Members in a zone can access each other; members in different zones cannot access each other. Devices can belong to more than one zone.
A zone set can be activated or deactivated as a single entity across all switches in the fabric. Only one zone set can be activated at any time. If zoning is not activated, all devices are members of the default zone. If zoning is activated, any device that is not in an active zone (a zone that is part of an active zone set) is a member of the default zone.
Zoning can be administered from any switch in the fabric. When you activate a zone (from any switch), all switches in the fabric receive the active zone set. Additionally, full zone sets are distributed to all switches in the fabric, if this feature is enabled in the source switch.

Command

Purpose

Step 1 
switch# config tEnters configuration mode.

Step 2 
switch(config)# zoneset name Zoneset1 vsan 3
switch(config-zoneset)#
Configures a zone set called Zoneset1.

Step 3 
switch(config-zoneset)# member Zone1Adds Zone1 as a member of the specified zone set (Zoneset1).

Step 4 
switch(config-zoneset)# zone name 
first-new-zone
switch(config-zoneset-zone)# 
Adds a zone (first-new-zone) to the specified zone set (Zoneset1).

Step 5 
switch(config-zoneset-zone)# member fcid  xxxxxxxxxx

switch(config-zoneset-zone)# 
Adds a new member (FC ID xxxxxxxxxx) to the newly created zone (first-new-zone).


Activating a Zone Set


Changes to a zone set do not take effect to a full zone set until you activate it.

To activate a zone set, follow these steps:

Command

Purpose

Step 1 
switch# config t
switch(config)#
Enters configuration mode.

Step 2 
switch(config)# zoneset activate name Zoneset1 vsan 3Activates the specified zone set.
switch(config)# no zoneset activate name Zoneset1 vsan 3Deactivates the specified zone set

show zone and show zoneset Commands 

show Command

Description

show zone

Displays zone information for all VSANs.

show zone vsan 1

Displays zone information for a specific VSAN.

show zoneset vsan 1

Displays information for the configured zone set.

show zoneset vsan 2-3

Displays configured zone set information for a range of VSANs.

show zone name Zone1

Displays members of a zone.

show fcalias vsan 1

Displays fcalias configuration.

show zone member pwwn xx:xx:xx:xx:xx:xx:xx:xx

Displays membership status.

show zone statistics

Displays zone statistics.

show zone statistics read-only-zoning

Displays read-only zoning statistics.

show zoneset active

Displays active zone sets.

show zoneset brief

Displays brief descriptions of zone sets.

show zone active

Displays active zones.

show zone status

Displays zone status.

show zone

Displays zone statistics.

show running

Displays the interface-based zones.



1 comment: