San交换机 配置zone命令总结、举例
1.创建别名
–aliCreate “EngHost1”,”1,2”
–aliCreate “EngStor”,”s1wwn;s2wwn”
–aliCreate “Mkt”, “1,4;s5wwn;s4wwn”
EXAMPLES
用wwn创建别名(建议用这种方式)
To create a zone alias with one member defined by WWN.
switch:admin> alicreate "array2", "21:00:00:20:37:0c:66:23"
用端口号创建别名
o create a zone alias defined by domain and port index pairs:
switch:admin> alicreate "array1", "2,32; 2,33; 2,34"
2.创建Zones
–zoneCreate “ZoneEng”,”EngHost1;EngStor”
–zoneCreate “ZoneMkt”,”Mkt”
(也可以用zoneCreate “ZoneMkt”,”1,4;s5wwn;s4wwn” )
或者添加zone成员 ZoneAdd “ZoneMkt”, “s3wwn” // zoneadd "zoneName", "member[; member]"
删除zone成员: zoneremove "zonename", "zoneMemberList"
3.创建Configurations
–cfgCreate “cfgEngMkt”,”ZoneEng;ZoneMkt”
4. 后续修改,添加新创建zone到已有配置文件中(可选步骤)
To add two new zones to the configuration "Test_cfg":
switch:admin> cfgadd "Test_cfg", "greenzone;bluezone"
5.选用配置、使配置生效
–cfgEnable “cfgEngMkt”
–cfgSave
简单的全程举例:
alicreate "p2000g3a1", "21:00:00:20:37:0c:66:23"
alicreate "p2000g3b1", "21:00:00:20:37:0c:66:24"
alicreate "SN3830N2", "50:00:00:20:37:0c:66:88"
zonecreate "p2000zone","p2000g3a1;p2000g3b1;SN3830N2"
cfgCreate "esslab","p2000zone”
cfgenable "esslab"
cfgsave
暂无评论