设为首页收藏本站language 语言切换
查看: 7517|回复: 6
收起左侧

[其他] 华为SNS2124光纤交换机纯命令行配置请教

[复制链接]
发表于 2015-7-9 01:35:55 | 显示全部楼层 |阅读模式
3鸿鹄币
本帖最后由 ljz510lt 于 2015-7-9 01:38 编辑

       现组网中有2台华为SNS2124光纤交换机,两台数据库服务器通过光纤交换机连接数据库存储;一台备份服务器通过光纤交换机连接备份存储。
想把两台光纤交换机都利用起来作为互备以保证存储网络的可靠性。
       详细组网请见图(想通过端口来划分不同的zone)。
       请教:由于现场环境条件限制,不能使用WebTool来登录光纤交换机,能通过Telnet远程登录到光纤交换机。我想通过命令行方式,来配置两台光纤交换机。但对命令行不熟悉,特向论坛里有朋友们请教,通过哪些命令能实现图中需求啊。谢谢。

存储组网图

存储组网图
发表于 2015-7-9 16:55:37 | 显示全部楼层
华为官网上面没有产品文档吗?里面有的
沙发 2015-7-9 16:55:37 回复 收起回复
回复

使用道具 举报

发表于 2015-7-9 16:59:15 | 显示全部楼层
你的拓扑图不完整啊!!   还有线没画出来啊
板凳 2015-7-9 16:59:15 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2015-7-9 23:39:35 | 显示全部楼层
chengg1112 发表于 2015-7-9 16:55
华为官网上面没有产品文档吗?里面有的

产品文档里命令行操作的命令很少。。。我想要用命令行方式按连接端口来划分配置zone.
地板 2015-7-9 23:39:35 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2015-7-9 23:40:15 | 显示全部楼层
chengg1112 发表于 2015-7-9 16:59
你的拓扑图不完整啊!!   还有线没画出来啊

只简单地画了连接方式,能理解就行。
5# 2015-7-9 23:40:15 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2015-7-15 21:36:23 | 显示全部楼层
终于找到了些命令,贴出来共享:
1、创建别名
alicreate "Huawei18500CtrlA","20,0;20,4;20,48;20,52"    存储接口别名
alicreate "Huawei18500CtrlB","20,1;20,5;20,49;20,53"
alicreate "Esxi01fcs0","20,10"       应用服务器别名
alicreate "Esxi02fcs0","20,11"
alicreate "Esxi03fcs0","20,16"

alicreate "Esxi04fcs0","20,17"
alicreate "Esxi05fcs0","20,18"
alicreate "Esxi06fcs0","20,19"
alicreate "Esxi07fcs0","20,24"
alicreate "Esxi08fcs0","20,25"
alicreate "Esxi09fcs0","20,26"
alicreate "Esxi10fcs0","20,27"
2、创建Zone
zonecreate "Esxi01fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi01fcs0"  对应存储-->应用服务器端口为一个zone
zonecreate "Esxi01fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi01fcs0"
zonecreate "Esxi02fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi02fcs0"
zonecreate "Esxi02fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi02fcs0"
zonecreate "Esxi03fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi03fcs0"
zonecreate "Esxi03fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi03fcs0"
zonecreate "Esxi04fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi04fcs0"
zonecreate "Esxi04fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi04fcs0"
zonecreate "Esxi05fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi05fcs0"
zonecreate "Esxi05fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi05fcs0"
zonecreate "Esxi06fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi06fcs0"
zonecreate "Esxi06fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi06fcs0"
zonecreate "Esxi07fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi07fcs0"
zonecreate "Esxi07fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi07fcs0"
zonecreate "Esxi08fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi08fcs0"
zonecreate "Esxi08fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi08fcs0"
zonecreate "Esxi09fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi09fcs0"
zonecreate "Esxi09fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi09fcs0"
zonecreate "Esxi10fcs0_Huawei18500CtrlA","Huawei18500CtrlA;Esxi10fcs0"
zonecreate "Esxi10fcs0_Huawei18500CtrlB","Huawei18500CtrlB;Esxi10fcs0"
3、创建cfg配置文件 把对应的ZONE加入配置文件
cfgcreate "sns2124_01_cfg","Esxi01fcs0_Huawei18500CtrlA;Esxi01fcs0_Huawei18500CtrlB;
Esxi02fcs0_Huawei18500CtrlA;Esxi02fcs0_Huawei18500CtrlB;Esxi03fcs0_Huawei18500CtrlA;
Esxi03fcs0_Huawei18500CtrlB;Esxi04fcs0_Huawei18500CtrlA;Esxi05fcs0_Huawei18500CtrlA;
Esxi05fcs0_Huawei18500CtrlB;Esxi06fcs0_Huawei18500CtrlA;Esxi06fcs0_Huawei18500CtrlB;
Esxi07fcs0_Huawei18500CtrlA;Esxi07fcs0_Huawei18500CtrlB;Esxi08fcs0_Huawei18500CtrlA;
Esxi08fcs0_Huawei18500CtrlB;Esxi09fcs0_Huawei18500CtrlA;Esxi09fcs0_Huawei18500CtrlB;Esxi10fcs0_Huawei18500CtrlA;Esxi10fcs0_Huawei18500CtrlB;"

4、激活并保存配置
cfgenable sns2124_01_cfg
cfgsave
6# 2015-7-15 21:36:23 回复 收起回复
回复

使用道具 举报

发表于 2016-11-24 14:35:45 | 显示全部楼层
啊啊啊啊啊啊啊啊啊啊啊啊是
7# 2016-11-24 14:35:45 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-27 14:41 , Processed in 0.136567 second(s), 22 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表