This is a quick reference to the commands used to configure the zoning in NX-OS. This is an existing setup, the switches should be initialized and at the recommended NX-OS level. Connect to the FC Switch using PuTTY and configure it using the following examples. Here I am using fcalias, but devalias is an option too. There are a couple of differences, fcalias is VSAN specific while devalias are not.
show fcalias
show zone
show zoneset active
show flogi database
show fcns database
FCALIAS
conf t
fcalias name <alias name> vsan 1
member pwwn <wwpn>
end
ZONE
conf t
zone name <zonename> vsan 1
member fcalias <fcaliasname>
member fcalias <fcaliasname>
end
ZONESET
conf t
zoneset name <name> vsan 1
member <zonename>
end
ACTIVATE ZONESET
conf t
zoneset activate name <active zoneset name> vsan 1
end
SAVE
copy running-config startup-config