1、首先对MDS9148进行初始化配置

     MDS9148 进行上架加电,采用串口线进行初始化配置,包含admin密码、IP地址等进行配置

2、初始化配置完成后采用SSH登录MDS9148交换机进行命令行配置
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

cisco9148SW1#configt      //进入全局模式

cisco9148SW1(config)#


cisco9148SW1(config)# vsandatabase      //进入VSAN创建模式
cisco9148SW1(config-vsan-db)#vsan 100  //
创建VSAN10
cisco9148SW1(config-vsan-db)#exit      
zoneset name vmzoneset1 vsan 100
//
1-6号端口要划分给VSAN100
cisco9148SW1(config-vsan-db)# vsan 100 interface fc1/1 -6
Traffic on fc1/1 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/2 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/4 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/5 may be impacted. Do you want to continue? (y/n) [n] y
Traffic on fc1/6 may be impacted. Do you want to continue? (y/n) [n] y
cisco9148SW1(config-vsan-db)# exit
cisco9148SW1(config)# exit
cisco9148SW1# show vsan 100 membership
vsan 100 interfaces:
   fc1/1            fc1/2            fc1/3             fc1/4            
   fc1/5            fc1/6            

cisco9148SW1#show vsan 1 membership
vsan 1 interfaces:
   fc1/7            fc1/8            fc1/9             fc1/10           
   fc1/11           fc1/12           fc1/13           fc1/14           
   fc1/15           fc1/16           fc1/17           fc1/18           
   fc1/19           fc1/20           fc1/21           fc1/22           
   fc1/23           fc1/24           fc1/25           fc1/26           
   fc1/27           fc1/28           fc1/29           fc1/30           
   fc1/31            fc1/32           fc1/33           fc1/34           
   fc1/35           fc1/36           fc1/37           fc1/38           
   fc1/39           fc1/40           fc1/41           fc1/42           
   fc1/43           fc1/44           fc1/45           fc1/46           
   fc1/47           fc1/48           

cisco9148SW1#show vsan 100
vsan 100 information
         name:VSAN0100 state:active
         interoperability mode:default
        loadbalancing:src-id/dst-id/oxid 
         operational state:up

cisco9148SW1#

//如下所示创建ZONE Esx01-Product1-HBA1_3PAR-C1-1”并加入端口
cisco9148SW1(config)#zone name  Esx01-Product1-HBA1_3PAR-C1-1  vsan100
cisco9148SW1(config-zone)#member interface fc1/3
cisco9148SW1(config-zone)#member interface fc1/1
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100   //
进入zoneset模式
cisco9148SW1(config-zoneset)#member Esx01-Product1-HBA1_3PAR-C1-1  //
zone加入到zoneset
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1 vsan100   //
激活zoneset

cisco9148SW1(config-zoneset)#exit


cisco9148SW1(config)#zonename  Esx02-Product1-HBA1_3PAR-C1-1  vsan 100
cisco9148SW1(config-zone)#member interface fc1/4
cisco9148SW1(config-zone)#member interface fc1/1
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100
cisco9148SW1(config-zoneset)#member Esx02-Product1-HBA1_3PAR-C1-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1 vsan 100

cisco9148SW1(config-zoneset)#exit


cisco9148SW1(config)#zone name  Esx03-Product1-HBA1_3PAR-C1-1  vsan100
cisco9148SW1(config-zone)#member interface fc1/5
cisco9148SW1(config-zone)#member interface fc1/1
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1  vsan 100
cisco9148SW1(config-zoneset)#member Esx03-Product1-HBA1_3PAR-C1-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1  vsan 100

cisco9148SW1(config-zoneset)#exit


cisco9148SW1(config)#zone name   Esx04-Product1-HBA1_3PAR-C1-1 vsan 100
cisco9148SW1(config-zone)#member interface fc1/6
cisco9148SW1(config-zone)#member interface fc1/1
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100
cisco9148SW1(config-zoneset)#member Esx04-Product1-HBA1_3PAR-C1-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1 vsan 100

cisco9148SW1(config-zoneset)#exit


cisco9148SW1(config)#zonename   Esx01-Product1-HBA1_3PAR-C2-1  vsan 100
cisco9148SW1(config-zone)#member interface fc1/3
cisco9148SW1(config-zone)#member interface fc1/2
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100
cisco9148SW1(config-zoneset)#member Esx01-Product1-HBA1_3PAR-C2-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1 vsan 100

cisco9148SW1(config-zoneset)#exit 


cisco9148SW1(config)#zonename   Esx02-Product1-HBA1_3PAR-C2-1  vsan 100
cisco9148SW1(config-zone)#member interface fc1/4
cisco9148SW1(config-zone)#member interface fc1/2
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100
cisco9148SW1(config-zoneset)#member Esx02-Product1-HBA1_3PAR-C2-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1  vsan 100

cisco9148SW1(config-zoneset)#exit 


cisco9148SW1(config)#zonename   Esx03-Product1-HBA1_3PAR-C2-1  vsan 100
cisco9148SW1(config-zone)#member interface fc1/5
cisco9148SW1(config-zone)#member interface fc1/2
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100
cisco9148SW1(config-zoneset)#member Esx03-Product1-HBA1_3PAR-C2-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1 vsan 100

cisco9148SW1(config-zoneset)#exit 


cisco9148SW1(config)#zonename   Esx04-Product1-HBA1_3PAR-C2-1  vsan 100
cisco9148SW1(config-zone)#member interface fc1/6
cisco9148SW1(config-zone)#member interface fc1/2
cisco9148SW1(config-zone)#exit
cisco9148SW1(config)#zoneset name vmzoneset1 vsan 100
cisco9148SW1(config-zoneset)#member Esx04-Product1-HBA1_3PAR-C2-1
cisco9148SW1(config-zoneset)#zoneset activate name vmzoneset1  vsan 100

cisco9148SW1(config-zoneset)#exit

cisco9148SW1#copy running-config startup-config  //保存配置
[########################################] 100%

//查看已经连接到交换机设备的WWN号

cisco9148SW1(config)# show flogi data

--------------------------------------------------------------------------------
INTERFACE        VSAN    FCID           PORT NAME               NODE NAME      
--------------------------------------------------------------------------------
fc1/2            1     0xb70000  21:11:00:02:ac:00:7e:1c 2f:f7:00:02:ac:00:7e:1c
fc1/3            1     0xb70200  10:00:00:90:fa:47:04:05 20:00:00:90:fa:47:04:05
fc1/4            1     0xb70300  10:00:00:90:fa:47:0b:fe 20:00:00:90:fa:47:0b:fe
fc1/5            1     0xb70400  10:00:00:90:fa:46:c4:e9 20:00:00:90:fa:46:c4:e9
fc1/6            1     0xb70500  10:00:00:90:fa:47:01:a1 20:00:00:90:fa:47:01:a1

Total number of flogi = 5.
cisco9148SW1(config)#

09-13 14:17