华为光纤交换机zone配置需求:
划分2个zone,接入两个不同业务群集。
华为光纤交换机zone配置环境:
华为光纤交换机SNS2124
IOIO:串口,只用于串口登录 admin/Hawei12#$
有网络图标的口:管理口,管理地址10.77.77.77,http://10.77.77.77 admin/Hawei12#$,连接网线可通过ssh登录。通过ipaddrset修改地址。
华为光纤交换机zone配置方法:
按端口配置华为光纤交换机:
一、创建别名(如果接口较少,可以不用创建别名),首先switchshow命令查看DomianID和Index,参见第八步。
alicreate "CunCHu_Master","1,0"
alicreate "CunCHu_Backup","1,1"
alicreate "RenDa_Master","1,2"
alicreate "RenDa_Backup","1,3"
alicreate "DaMeng_Master","1,4"
alicreate "DaMeng_Backup","1,5"
alicreate "SHenTong_Master","1,6"
alicreate "SHenTong_Backup","1,7"
alicreate "Data_Backup1","1,8"
alicreate "Data_Backup2","1,9"
alicreate "Data_Backup3","1,10"
alicreate "Data_Backup4","1,11"
alicreate "Data","1,0;1,1;1,2;1.3" #也可以只创建一个别名
二、创建zone
已创建别名则按照"别名;Domain,Index;别名;Domain,Index;",
未创建别名按照"Domain,Index;Domain,Index;
zonecreate "SNS2124_Master","CunCHu_Master;1,0;CunCHu_Backup;1,1;RenDa_Master;1,2;RenDa_Backup;1,3;DaMeng_Master;1,4;DaMeng_Backup;1,5;SHenTong_Master;1,6;SHenTong_Backup;1,7"
zoneadd "SNS2124_Master","Data_Backup1;1,8;Data_Backup2;1,9;Data_Backup3;1,10;Data_Backup4;1,11" #新增端口后,需执行cfgenable "Westone_Zone"
zonecreate "My_zone2","1,20;1,21;1,22;1,23" #创建第二个zone,并且直接添加端口。
三、创建zoneconfig
cfgcreate "Westone_Zone","SNS2124_Master",#如果是新建可通过cfgcreate "Westone_Zone","SNS2124_Master;My_zone2"
cfgadd "Westone_Zone","My_zone2"
四、检查是否正确
cfgshow
五、保存配置
cfgsave
六、激活zone config
cfgenable "Westone_Zone"
七、查看整体配置
SNS2124:admin> cfgshow
Defined configuration:
cfg: Westone_Zone
SNS2124_Master; My_zone2
zone: My_zone2
1,20; 1,21; 1,22; 1,23
zone: SNS2124_Master
CunCHu_Master; 1,0; CunCHu_Backup; 1,1; RenDa_Master; 1,2;
RenDa_Backup; 1,3; DaMeng_Master; 1,4; DaMeng_Backup; 1,5;
SHenTong_Master; 1,6; SHenTong_Backup; 1,7; Data_Backup1; 1,8;
Data_Backup2; 1,9; Data_Backup3; 1,10; Data_Backup4; 1,11
alias: CunCHu_Backup
1,1
alias: CunCHu_Master
1,0
alias: DaMeng_Backup
1,5
alias: DaMeng_Master
1,4
alias: Data_Backup1
1,8
alias: Data_Backup2
1,9
alias: Data_Backup3
1,10
alias: Data_Backup4
1,11
alias: RenDa_Backup
1,3
alias: RenDa_Master
1,2
alias: SHenTong_Backup
1,7
alias: SHenTong_Master
1,6
Effective configuration:
cfg: Westone_Zone
zone: My_zone2
1,20
1,21
1,22
1,23
zone: SNS2124_Master
1,0
1,1
1,2
1,3
1,4
1,5
1,6
1,7
1,8
1,9
1,10
1,11
八、查看Domain ID
查看Domain
SNS2124:admin> switchshow
switchName: SNS2124
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1 Domain号为1。
switchId: fffc01
switchWwn: 10:00:c4:f5:7c:fc:f4:ac
zoning: ON (Westone_Zone)
switchBeacon: OFF
HIF Mode: OFF
Copyright ©2017-2021 武汉市朗联科技有限公司 鄂ICP备案号17020357