本帖最后由 arvinjing 于 2018-8-7 18:11 编辑
好久没有做MDS的项目了,最近新上了一个项目,部署了VMware+netapp+MDS, 架构比较简单,netapp的A.B主控连接到两台MDS交换机,MDS-1和MDS-2.步骤一、MDS交换机进行初始化配置
---- System Admin Account Setup ----
Do you want to enforce secure password standard (yes/no) :
Enter the password for "admin": ###设置管理员账号
Confirm the password for "admin": ###设置管理员账号的密码
---- Basic System Configuration Dialog ----
This setup utility will guide you through the basic configuration of
the system. Setup configures only enough connectivity for management
of the system.
Please register Cisco MDS 9000 Family devices promptly with your
supplier. Failure to register may affect response times for initial
service calls. MDS devices must be registered to receive entitled
support services.
Press Enter at anytime to skip a dialog. Use ctrl-c at anytime
to skip the remaining dialogs.
Would you like to enter the basic configuration dialog (yes/no): yes
Create another login account (yes/no) :
Configure read-only SNMP community string (yes/no) :
Configure read-write SNMP community string (yes/no) :
Enter the switch name : MDS-A
Continue with Out-of-band (mgmt0) management configuration? (yes/no) :
Mgmt0 IPv4 address : 10.10.28.53
Mgmt0 IPv4 netmask : 255.255.255.240
Configure the default gateway? (yes/no) : yes
IPv4 address of the default gateway : 10.10.28.49
Configure advanced IP options? (yes/no) :
Enable the ssh service? (yes/no) : ####启用SSH登录
Type of ssh key you would like to generate (dsa/rsa) [rsa]: rsa
Number of rsa key bits <1024-2048> [1024]:
Enable the telnet service? (yes/no) : ####一般情况,启用了SSH,telnet可以不开启,根据情况选择
Configure congestion/no_credit drop for fc interfaces? (yes/no) : no
Enable the http-server? (yes/no) :
Configure clock? (yes/no) :
Configure timezone? (yes/no) :
Configure summertime? (yes/no) :
Configure the ntp server? (yes/no) :
Configure default switchport interface state (shut/noshut) [shut]: ###如果选择的是shut,那么一定记,使用端口的时候要开启
Configure default switchport trunk mode (on/off/auto) [on]: off
Configure default switchport port mode F (yes/no) :
Configure default zone policy (permit/deny) [deny]:
Enable full zoneset distribution? (yes/no) :
Configure default zone mode (basic/enhanced) [basic]:
The following configuration will be applied:
password strength-check
switchname MDS-A
interface mgmt0
ip address 10.10.28.53 255.255.255.240
no shutdown
ip default-gateway 10.10.28.49
ssh key rsa 1024 force
feature ssh
feature telnet
system timeout no-credit-drop default logical-type edge
feature http-server
system default switchport shutdown
system default switchport trunk mode off
no system default zone default-zone permit
no system default zone distribute full
no system default zone mode enhanced
Would you like to edit the configuration? (yes/no) :
Use this configuration and save it? (yes/no) : yes ###保存配置
[########################################] 100%
Copy complete.
初始化完成之后,我们就可以通过管理口使用SSH进行远程管理
步骤二、配置VSAN,ZONE, ZONESET
一般情况,MDS的配置思路可以整理为:
创建VSAN ,添加相关端口到此VSAN ,创建ZONE ,添加ZONE成员 ,创建ZONESET, 添加ZONE到ZONESET中 ,激活ZONESET
虚拟话环境下,一般需要开启NPIV功能,
MDS-A(config)# # feature npiv
MDS-A(config)# vsan database
MDS-A(config-vsan-db)# vsan 10 name vmware ###创建VSAN 10
MDS-A(config-vsan-db)# vsan 10 interface fc1/1 ###Server
MDS-A(config-vsan-db)# vsan 10 interface fc1/12 ###netapp-a, 由于netapp控制器模块数量不足,只连接了A
MDS-A(config-vsan-db)# exit
MDS-A(config)# zone name vmware_server1 vsan 10 ###创建zone
MDS-A(config-zone)# member interface fc1/1
MDS-A(config-zone)# member interface fc1/12
MDS-A(config-zone)# exitMDS-A(config)# zoneset name vmware vsan 10 ###创建zoneset
MDS-A(config-zoneset)# member vmware_server1
MDS-A(config-zoneset)# exit
MDS-A(config)# zoneset activate name vmware vsan 10 ###激活zonesetMDS-A(config)# intterface fc1/1,fc1/12
MDS-A(config)#no shutdown
检查我们所做的配置
MDS-A(config)# show zone
zone name vmware vsan 10
interface fc1/1 swwn 20:00:00:3a:9c:03:0c:00
interface fc1/12 swwn 20:00:00:3a:9c:03:0c:00
MDS-A(config)# show zoneset
zoneset name vmware vsan 10
zone name vmware vsan 10
interface fc1/1 swwn 20:00:00:3a:9c:03:0c:00
interface fc1/12 swwn 20:00:00:3a:9c:03:0c:00
MDS-A(config)# show zoneset active
zoneset name vmware vsan 10
zone name vmware vsan 10
interface fc1/1 swwn 20:00:00:3a:9c:03:0c:00
interface fc1/12 swwn 20:00:00:3a:9c:03:0c:00
最后记得保存配置