前言
CISCO MDS 9148 SAN 交换机已经停产,但还是要掌握一下配置的方法:
升级款后面 9148S 或者 9100系列,但配置方式基本都差不多,掌握一个就好:
高性能和极具吸引力的价值
Cisco MDS 9148S 16G 多层光纤交换机是下一代高度可靠的 Cisco MDS 9100 系列交换机。它采用紧凑、易于部署和管理的 1 机架单元 (1RU) 外形,包括多达 48 个自动感应线速 16 Gbps 光纤通道端口。总之,Cisco MDS 9148S 是一款功能强大且灵活的交换机,能够以实惠的价格提供高性能和全面的企业级功能。
Compare Models MDS 9100 Series Multilayer Fabric Switches - Cisco
说明:
实施前检查模块数量并插入前12port 没有端口扩容的license的情况下,每台交换机默认
12port激活。端口扩容license每个可以激活12port,48port全激活的交换机需要3个license。
一、设备初始化:安装提示即可:
Abort Auto Provisioning and continue with normal setup ?(yes/no)[n]: y//取消自动配置并继续正常设置?--- System Admin Account Setup ---- //系统管理帐户设置Do you want to enforce secure password standard (yes/no) [y]: y// 您想要强制执行安全密码标准吗Enter the password for "admin": P@ssw0rdConfirm the password for "admin": P@ssw0rd---- 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.// 请立即向您的供应商注册Cisco MDS 9000系列设备。注册失败可能会影响初始服务调用的响应时间。MDS设备必须注册才能获得相应的支持服务。Press Enter at anytime to skip a dialog. Use ctrl-c at anytime to skip the remaining dialogs.// 按回车在任何时候跳过一个对话框。在任何时候使用ctrl-c来跳过剩下的对话框。Would you like to enter the basic configuration dialog (yes/no): y// 您要输入基本配置对话框吗Create another login account (yes/no) [n]: //创建另一个登录帐户Configure read-only SNMP community string (yes/no) [n]: //配置只读SNMP共同体字符串Configure read-write SNMP community string (yes/no) [n]: //配置读写SNMP共同体字符串Enter the switch name : MDS9148-1 //配置交换机名称Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]: y//继续带外(mgmt0)管理配置?Mgmt0 IPv4 address : 192.168.10.12Mgmt0 IPv4 netmask : 255.255.255.0Configure the default gateway? (yes/no) [y]: //配置网关Mgmt0 IPv4 gateway :192.168.10.1Configure advanced IP options? (yes/no) [n]: //配置高级IP选项?Enable the ssh service? (yes/no) [y]: //启用SSH服务Type of ssh key you would like to generate (dsa/rsa) [rsa]: //希望生成的ssh密钥的类型Number of rsa key bits <1024-2048> [1024]: // rsa密钥位的数目Enable the telnet service? (yes/no) [n]: y //启用telnet服务Configure congestion/no_credit drop for fc interfaces? (yes/no)[y]: no //为fc接口配置拥塞/无信用下降?Enable the http-server? (yes/no) [y]: //启用http服务器Configure clock? (yes/no) [n]: //配置时钟Configure timezone? (yes/no) [n]: //配置时区Configure summertime? (yes/no) [n]: //配置夏季时间Configure the ntp server? (yes/no) [n]: //配置NTP服务器Configure default switchport interface state (shut/noshut) [shut]://配置默认的交换机接口状态Configure default switchport trunk mode (on/off/auto) [on]: off//配置默认的交换机端口中继模式Configure default switchport port mode F (yes/no) [n]: //配置默认的switchport端口模式FConfigure default zone policy (permit/deny) [deny]: //配置默认区域策略Enable full zoneset distribution? (yes/no) [n]: //启用完整的zoneset分发?Configure default zone mode (basic/enhanced) [basic]: //配置默认区域模式The following configuration will be applied: //将应用以下配置password strength-checkswitchname MDS9148-1interface mgmt0ip address 192.168.10.12 255.255.255.0gatway 192.168.10.1no shutdownssh key rsa 1024 forcefeature sshfeature telnetfeature http-serversystem default switchport shutdownsystem default switchport trunk mode offno system default zone default-zone permitno system default zone distribute fullno system default zone mode enhancedWould you like to edit the configuration? (yes/no) [n]: //您想要编辑配置吗?Use this configuration and save it? (yes/no) [y]: //使用此配置并保存它?[########################################] 100%Copy complete.
二、设备常用命令:
显示当前配置
# show run显示当前配置的ZONE的信息
# show zone查看vsan信息
# show vsan查看 VSAN 下面的端口
# Show vsan 1 membership查看注册的 pmmw 号
# show fcs database显示当前配置的ZONESET的信息
# show zoneset显示端口fc1/1信息
# show interface fc1/1显示当前活动的ZONE信息
# show zone activate显示当前活动的ZONESET信息
# show zoneset activate查看连接的HBA卡的WWN号
# show flogi database detail查看注册的WWN号
# show fcs database查询连接的hba卡的wwn的信息
# show flogi database查看交换机所有端口信息
# show interface brief查看交换机状态
# show environment查看交换机整体信息
# show hardware保存当前配置
# copy run start显示指定License
# switch# show license fcports.lic显示全部Licenses
# switch# show license all显示SN
# switch# show license hostid# License hostid:VDH=4C0AF664其他命令更改交换机名称
# switchname XXX更改交换机管理ip
# interface mgmt 0
# ip address XXXXX清除 fcid。
# purge fcdomain fcid vsan 1从zoneset中移除zone
# conf t
# zoneset name zoneset1 vsan 100
# no member qa 从zoneset移除名为qa的zone移除zone的member
# conf t
# zone name qa vsan 100
# no member interface fc1/1
# no member interface fc1/10删除zone
# no zone name qa vsan 100别名重命名
switch(config-device-alias-db)# device-alias rename Device1 Device2指定端口为E工作模式
switch(config)# interface fc1/1
switch(config-if)# switchport mode e安装与清除license
switch# install license bootflash:license-file
switch# clear license license-file
switch# clear license all下载配置文件
switch# copy <scheme>://<url> system:running-config
switch# copy tftp://172.16.10.1/237.img bootflash: 237.img收集日志在#模式下收集
term len 0(不需要手动敲空格)
show tech-support details
show logging onboard error-stats更改日期
例:
MDS9148S-1# clock set 11:55:00 22 November 2019清除配置
write erase执行完命令后,交换机关机,再开机,此时可使用串口线重新初始化。重启
reloadThis command will reboot the system。(y/n)? y升级ios
使用show version命令查看
# show versionCisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
Copyright (c) 2002-2017, Cisco Systems, Inc. All rights reserved.The copyrights to certain works contained herein are owned byother third parties and are used and distributed under license.Some parts of this software are covered under the GNU Public License. A copy of the license is available athttp://www.gnu.org/licenses/gpl.html.Software
BIOS: version 2.1.17
loader: version N/A
kickstart: version 6.2(19)
system: version 6.2(19)
BIOS compile time: 01/08/14
kickstart image file is: bootflash:///m9100-s5ek9-kickstart-mz.6.2.19.bin
kickstart compile time: 1/30/2017 23:00:00 [03/10/2017 05:18:49]
system image file is: bootflash:///m9100-s5ek9-mz.6.2.19.bin
system compile time: 1/30/2017 23:00:00 [03/10/2017 08:12:56]
Hardware
cisco MDS 9148S 16G 48 FC (1 Slot) Chassis ("2/4/8/16 Gbps FC/Supervisor")
Motorola, e500v2, core 0 with 4155776 kB of memory.
Processor Board ID JAE22450LU8
Device name: MDS9148S-1
bootflash: 4018896 kB
Kernel uptime is 1 day(s), 4 hour(s), 43 minute(s), 7 second(s)
Last reset
Reason: Unknown
System version: 6.2(19)
Service:
plugin
Core Plugin使用TFTP软件上传软件包到bootflash
# copy tftp://<server IP address>/<filename in TFTP> bootflash:<image filename>例如:copy ftp://192.168.10.111/m9100-s5ek9-mz.6.2.27.bin bootflash:m9100-s5ek9-mz.6.2.27.bin
copy ftp://192.168.10.111/m9100-s5ek9-kickstart-mz.6.2.27.bin bootflash:m9100-s5ek9-kickstart-mz.6.2.27.bi
说明:需要将下载好的zip文件解压放在FTP目录下,共两个文件,copy命令需要执行两次上传。查看上传好的文件
# dir bootflash升级前检查
1)升级前检查是否有特性不兼容问题Switch# show incompatibility-all system bootflash:文件名2)升级前检查硬件冲突Switch# show install all impact kickstart bootflash:m9500-sf2ek9-kickstart-mz.5.0.8.binsystem bootflash:m9500-sf2ek9-mz.5.0.8.bin3)确认业务已经暂停4)使用show sprom backplane 1确认要升级的交换机序列号5)使用copy running-config startup-config保存当前配置,以防交换机重启后配置丢失6)保存当前配置到本地# copy startup-config tftp://<server IP address>/<startup-config_switchname_date>7)收集当前日志信息# show tech-support details8)执行show version确认当前硬件型号和软件版本9)执行show module检查交换机组件状态10)执行show hardware检查交换机是否已经boot up11)执行show flogi database检查并记录flogi信息和数量12)执行show system health statistics检查是否都是running13)执行show vsan检查vsan1是否是active执行升级命令
# install all system bootflash:<system image name> kickstart bootflash:<kickstart image name>例如
#install all system bootflash:m9100-s5ek9-mz.6.2.27.bin kickstart bootflash:m9100-s5ek9-kickstart-mz.6.2.27.binDo you want to continue with the installation (y/n)? [n] y确认升级升级完成后
检查交换机组件状态# Show module安装许可
说明:1)Cisco交换机端口扩容license每个可以激活12port,48port全激活的交换机需要3个license。
2)Cisco交换机激活官方网站提供链接,但需要合作伙伴权限,否则只能拨打400客服电话激活。
3)Cisco交换机激活只需要提供交换机SN和激活码PAK。
4)Cisco交换机许可以lic文件形式通过邮件附件下发给工程师。步骤:1.上传激活文件
# copy ftp://192.168.10.11/ 20191008145312690.lic bootflash: 20191008145312690.lic2.查看激活文件
#dir bootflash3.安装激活文件
#install license bootflash: 20191008145312690.lic4. 检查已安装的许可证
#show license usage
#show license brief收集日志
show tech-support details
show logging [logfile|nvram] 查看交换机日志信息,可以查看日志文件内容,或者nvram里面的日志信息。
三、实操配置:
创建 VSAN 100
MDS9148-SAN01(config)# vsan database
MDS9148-SAN01(config-vsan-db)# vsan 100 name vsan100激活端口
MDS9148-SAN01(config-vsan-db)# interface fc1/1,fc1/3,fc1/9,fc1/11
MDS9148-SAN01(config-if)# no shutdown激活端口添加到VSAN
MDS9148-SAN01(config-if)# vsan database
MDS9148-SAN01(config-vsan-db)# vsan 100 interface fc1/1,fc1/3,fc1/9,fc1/11
Traffic on fc1/1 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/3 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/9 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/11 may be impacted. Do you want to continue? (y/n) [n] y查看端口在那个 VSAN 里面
MDS9148-SAN01(config-vsan-db)# show interface brief 查看 pwwn FC HBA 的对应 ID
MDS9148-SAN01(config-vsan-db)# show flogi database设置pwwn对应名称
MDS9148-SAN01(config-vsan-db)# device-alias database
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_740_VMWARE__ESXI01 pwwn 50:06:01:6a:49:e0:4f:57
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_740_VMWARE__ESXI02 pwwn 50:06:01:6b:49:e0:4f:57
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_380_Unisphere_SAPA pwwn 10:00:00:10:9b:9c:da:f2
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_380_Unisphere_SAPB pwwn 10:00:00:10:9b:9c:da:ce
MDS9148-SAN01(config-vsan-db)# device-alias commit // 报错没事设置 ZONE
MDS9148-SAN01(config-vsan-db)# zone name kiddos_EMC_DELL_380__Unisphere vsan 100
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI01
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI02
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPA
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPBMDS9148-SAN01(config-vsan-db)# exitMDS9148-SAN01(config-vsan-db)# zone name kiddos_EMC_DELL_EMC_740_VMWARE vsan 100
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI01
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI02
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPA
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPB设置zoneset
MDS9148-SAN01(config-vsan-db)# zoneset name zoneset1 vsan 100
MDS9148-SAN01(config-vsan-db)# member kiddos_EMC_DELL_380__Unisphere
MDS9148-SAN01(config-vsan-db)# member kiddos_EMC_DELL_EMC_740_VMWARE 激活zoneset
MDS9148-SAN01(config)# zoneset activate name zoneset1 vsan 100
WARNING: Specified zoneset already active and unchanged存档配置
MDS9148-SAN01# copy running-config startup-config
[########################################] 100%
Copy complete.
3.3.1 查看设备型号版本
3.3.2 查看当前配置:
3.3.3 配置 VSAN :
PS : 这里我接入的端口是 interface fc1/1,fc1/3 存储 interface fc1/9,fc1/11 ESXI
创建 VSAN 100
MDS9148-SAN01(config)# vsan database
MDS9148-SAN01(config-vsan-db)# vsan 100 name vsan100
激活端口
MDS9148-SAN01(config-vsan-db)# interface fc1/1,fc1/3,fc1/9,fc1/11
MDS9148-SAN01(config-if)# no shutdown
激活端口添加到VSAN
MDS9148-SAN01(config-if)# vsan database
MDS9148-SAN01(config-vsan-db)# vsan 100 interface fc1/1,fc1/3,fc1/9,fc1/11
Traffic on fc1/1 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/3 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/9 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/11 may be impacted. Do you want to continue? (y/n) [n] y
PS : 可以看到 fc1/1,fc1/3,fc1/9,fc1/11 已经被分配到了 Vsan 100
查看端口在那个 VSAN 里面
MDS9148-SAN01(config-vsan-db)# show interface brief 查看 pwwn FC HBA 的对应 ID
MDS9148-SAN01(config-vsan-db)# show flogi database
设置pwwn对应名称
MDS9148-SAN01(config-vsan-db)# device-alias database
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_740_VMWARE__ESXI01 pwwn 50:06:01:6a:49:e0:4f:57
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_740_VMWARE__ESXI02 pwwn 50:06:01:6b:49:e0:4f:57
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_380_Unisphere_SAPA pwwn 10:00:00:10:9b:9c:da:f2
MDS9148-SAN01(config-vsan-db)# device-alias name DELL_EMC_380_Unisphere_SAPB pwwn 10:00:00:10:9b:9c:da:ce
MDS9148-SAN01(config-vsan-db)# device-alias commit // 报错没事
设置 ZONE
MDS9148-SAN01(config-vsan-db)# zone name kiddos_EMC_DELL_380__Unisphere vsan 100
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI01
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI02
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPA
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPB
MDS9148-SAN01(config-vsan-db)# exit
MDS9148-SAN01(config-vsan-db)# zone name kiddos_EMC_DELL_EMC_740_VMWARE vsan 100
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI01
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_740_VMWARE__ESXI02
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPA
MDS9148-SAN01(config-vsan-db)# member device-alias DELL_EMC_380_Unisphere_SAPB
设置zoneset
MDS9148-SAN01(config-vsan-db)# zoneset name zoneset1 vsan 100
MDS9148-SAN01(config-vsan-db)# member kiddos_EMC_DELL_380__Unisphere
MDS9148-SAN01(config-vsan-db)# member kiddos_EMC_DELL_EMC_740_VMWARE
激活zoneset
MDS9148-SAN01(config-vsan-db)# zoneset activate name zoneset1 vsan 100
3.3.4 完成配置,检查业务 :
3.3.5 保存好配置 :
MDS9148-SAN01# copy running-config startup-config
[########################################] 100%
Copy complete.
特别感谢,作者:王车车轴 通过他的教程 掌握了VSAN交换机的配置能够独立完成配置工作:
参考文献 : 作者:王车车轴 https://www.bilibili.com/read/cv14944647 出处:bilibili