Cisco MDS 9124 官网配置

 9124光纤交换机配置管理使用手册

1.     初始化信息

2.     交换机基本配置

2.1.      配置交换机管理地址

2.2.      配置VSAN

2.3.      配置ZONESET

2.4.      配置ZONE

2.5.      TRUNKING的配置

3.     常用检查命令

4.     常用配置命令

4.1.      删除创建的ZONE

4.2.      清除配置

4.3.      设置配置口超时

4.4.      安装与清除license

4.5.      显示指定License

4.6.      显示全部Licenses

4.7.      显示ID

4.8.      命名交换机

4.9.      设置管理口

4.10.        禁止与使能Telnet 与 ssh

4.11.    下载配置文件

4.12.        保存配置

4.13.        创建与设置VSAN

4.14.        分配VSAN成员

4.15.        删除VSAN

4.16.        浏览VSAN设置

4.17.        设置FC端口

4.18.        设置Zone

4.19.        设置Zone Sets

4.20.        激活Zone Set

4.21.        浏览Zone信息

4.22.        恢复管理员口令

4.23.        设置端口速率


 

1.  初始化信息

 

在启动交换机后,会有类似如下的信息显示:

 

  ---- System AdminAccount Setup ----

 

 

  Enter the passwordfor "admin":                  输入admin管理员密码,系统设为P@ssw0rd

  Confirm thepassword for "admin":              再次输入admin管理员密码,P@ssw0rd

 

        ----Basic System Configuration Dialog ----

 

This setup utility will guide you through thebasic configuration of

the system. Setup configures only enoughconnectivity for management

of the system.

 

Please register Cisco MDS 9000 Family devicespromptly with your

supplier. Failure to register may affect responsetimes for initial

service calls. MDS devices must be registered toreceive entitled

support services.

 

Press Enter at anytime to skip a dialog. Usectrl-c at anytime

to skip the remaining dialogs.

 
 

输入no,然后进入命令行配置模式;输入yes,然后进入配置向导模式。

 
 

Would you like to enter the basic configurationdialog (yes/no): no

 

输入正确的用户名和刚才设置的密码P@ssw0rd,进入命令行模式 

 
MDS Switch

switch login: admin

Password:                                                                                 

Cisco Storage Area Networking Operating System(SAN-OS) Software

TAC support: http://www.cisco.com/tac

Copyright (c) 2002-2005, Cisco Systems, Inc. Allrights reserved.

The copyrights to certain works contained hereinare owned by

other third parties and are used and distributedunder license.

Some parts of this software are covered under theGNU Public

License. A copy of the license is availableat

http://www.gnu.org/licenses/gpl.html.

switch#

 

然后,可以按照类似以太网交换机配置的方法来配置交换机了。

2.  交换机基本配置

2.1.

Config t 进入配置模式

 
配置交换机管理地址

修改交换机名为switch

 
switch# configt

Enter configuration commands, one perline.  End with CNTL/Z.

配置交换机的管理IP地址

 
switch (config)#switchname switch

switch(config)#

switch(config)# interface mgmt 0

switch(config-if)# ip adress 192.168.100.108255.255.255.0

switch(config-if)# no shutdown

开启管理端口

 
 

 


interface mgmt 0表示的是交换机的管理端口。

2.2. 配置VSAN

接下来配置VSAN

 

switch#config t

增加VSAN100

 
switch(config)#vsan database

switch(config-vsan-db)# vsan 100

switch(config-vsan-db)#end                              

 

2.3.

VSAB100中创建名为anhuipowerZONE

 
配置ZONESET

switch#config t

switch (config)#zoneset nameanhuipower vsan 100

switch (config-zoneset)#member ZONE_NAME ZONE填加到该ZONESET

 

注:在交换机处于正常运行时,如果配置了新的ZONE,并且填加到了ZONESET中,此时需要Acitvate才能生效,命令如下:

 

switch#config t

switch (config)#zoneset activate nameanhuipower vsan 100

  

2.4. 配置ZONE

下面配置ZONE

基本命令如下:

switch#config t

配置zone,并给zone命名,然后把指定端口加入到该zone

 
switch(config)#zone name zone_name vsan100

switch(config)#member interface fc#/#

switch(config)#member interface fc#/#

 

 

交换机端口都是以fc表示,fc1/1表示第一个模块上的第一个端口。由于像cisco9506之类的交换机是模块化的,所以其每个端口就是fc模块号/端口号。cisco9120,cisco9140,不是模块化的,但其接口默认是fc1/端口号。

 

2.5. TRUNKING的配置

默认情况下,交换机每个端口的TRUNKING协议都是启用的,交换机互连的端口应工作在E mode下,如果有两台交换机互相连接的情况,则要启用TRUNKING,以FC1/1和FC1/2为例。

配置命令如下:

switch#config t

指定端口为E工作模式

 
switch(config)#interface fc1/1

switch(config-if)# switchport mode e

 

switch(config)# interface fc1/2

switch(config-if)# switchport mode e

 

 

3.  常用检查命令

showrun              显示当前配置

showzone            显示当前配置的ZONE的信息

showzoneset         显示当前配置的ZONESET的信息

show interfacefc1/1     显示端口fc1/1信息

show zoneactivate        显示当前活动的ZONE信息

show zonesetactivate    显示当前活动的ZONESET信息

show flogi databasedetail  查看交换机端口连接的HBA卡的WWN号

copy runstart               保存当前配置

4.  常用配置命令

4.1.删除创建的ZONE

switch(config)# zone name testvsan 1

switch(config-zone)#exit

switch(config)# no zone nametest vsan 1

switch(config)#

4.2.清除配置

Switch#write erase

4.3.设置配置口超时

switch(config)# lineconsole

switch(config-console)#exec-timeout 60

switch(config)# linevty

switch(config-line)#exec-timeout 60

4.4.安装与清除license

switch# install licensebootflash:license-file

switch# clear licenselicense-file

switch# clear licenseall

4.5.显示指定License

switch# show licensefcports.lic

fcports.lic:

SERVER this_host ANY

VENDOR cisco

FEATURE fcports cisco 1.000permanent 30 HOSTID=VDH=4C0AF664

SIGN=24B2B68AA676<------------------------- fcport license

4.6.显示全部Licenses

switch# show licenseall

fcports.lic:

SERVER this_host ANY

VENDOR cisco

FEATURE fcports cisco 1.000permanent 30 HOSTID=VDH=4C0AF664

SIGN=24B2B68AA676<------------------------fcport license

 

ficon.lic:

FEATURE ficon cisco 1.000permanent uncounted HOSTID=VDH=4C0AF664 \

SIGN=CB7872B23700<----------------------------ficonlicense

4.7.显示ID

switch# show licensehostid

Licensehostid:VDH=4C0AF664

4.8.命名交换机

switch# config t

switch(config)# switchnamemyswitch1

myswitch1(config)#

myswitch1(config)# noswitchname

switch(config)#

4.9.设置管理口

switch# configterminal

switch(config)# interface mgmt0

switch(config)# ip address1.1.1.0  255.255.255.0

switch(config-if)# noshutdown

switch(config-if)#exit

switch(config)# ipdefault-gateway 1.1.1.1

4.10.  禁止与使能Telnet 与 ssh

switch# config t

switch(config)# no telnetserver enable

switch(config)# telnet serverenable

 

switch# config t

switch(config)# ssh serverenable

switch(config)# no ssh serverenable

4.11.  下载配置文件

switch# copy<scheme>://<url>system:running-config

switch# copytftp://172.16.10.1/237.img bootflash: 237.img

4.12.  保存配置

switch# copy running-config startup-config

4.13.  创建与设置VSAN

switch# config t.

switch(config)# vsandatabase

switch(config-vsan-db)#

switch(config-vsan-db)# vsan2

switch(config-vsan-db)#

switch(config-vsan-db)# vsan 2name TechDoc

4.14.  分配VSAN成员

switch# config t

switch(config)# vsandatabase

switch(config-vsan-db)#

switch(config-vsan-db)# vsan2

switch(config-vsan-db)#

switch(config-vsan-db)# vsan 2interface fc1/8

switch(config-vsan-db)#

switch(config-vsan-db)# vsan7

switch(config-vsan-db)#

switch(config-vsan-db)# vsan 7interface fc1/8

4.15.  删除VSAN

switch# config t

switch(config)# vsandatabase

switch(config-db)#

switch-config-db# vsan2

switch(config-vsan-db)#

switch(config-vsan-db)# no vsan5

switch(config-vsan-db)#

switch(config-vsan-db)#end

switch#

4.16.  浏览VSAN设置

switch# show vsan100

vsan 100 information

name:VSAN0100state:active

in-order guarantee:nointeroperability mode:no

loadbalancing:src-id/dst-id/oxid

switch# show vsanusage

4 vsan configured

configured vsans:1-4

vsans available forconfiguration:5-4093

switch# show vsan

vsan 1 information

name:VSAN0001state:active

in-order guarantee:nointeroperability mode:no

loadbalancing:src-id/dst-id/oxid

vsan 2 information

name:VSAN0002state:active

in-order guarantee:nointeroperability mode:no

loadbalancing:src-id/dst-id/oxid

vsan 7 information

name:VSAN0007state:active

in-order guarantee:nointeroperability mode:no

loadbalancing:src-id/dst-id/oxid

vsan 100 information

name:VSAN0100state:active

in-order guarantee:nointeroperability mode:no

loadbalancing:src-id/dst-id/oxid

switch # show vsan 1membership

vsan 1 interfaces:

fc2/16 fc2/15 fc2/14 fc2/13fc2/12 fc2/11 fc2/10 fc2/9

fc2/8 fc2/7 fc2/6 fc2/5 fc2/4fc2/3 fc2/2 fc2/1

fc1/16 fc1/15 fc1/14 fc1/13fc1/12 fc1/11 fc1/10 fc1/9

fc1/7 fc1/6 fc1/5 fc1/4 fc1/3fc1/2 fc1/1

vsan 2 interfaces:

vsan 7 interfaces:

fc1/8

vsan 100 interfaces:

vsan 4094(isolated vsan)interfaces:

4.17.  设置FC端口

switch# config t

switch(config)# interfacefc1/1

switch# config t

switch(config)# interface fc1/1- 4 , fc2/1 – 3

switch(config-if)# noshutdown

switch(config-if)#shutdown

4.18.  设置Zone

switch# config t

switch(config)# zone name Zone1vsan 3

switch(config-zone)#

switch(config-zone)# memberinterface fc 2/1

4.19.  设置Zone Sets

(Either zone set A orzone set B can be activated (but not together).)

switch# config t

switch(config)# zoneset nameZoneset1 vsan 3

switch-config-zoneset#

switch-config-zoneset# memberZone1

switch-config-zoneset#

4.20.  激活Zone Set

switch# config t

switch(config)#

switch(config)# zonesetactivate name Zoneset1 vsan 3

switch(config)# no zonesetactivate name Zoneset1 vsan 3

ATTETION: If one zone setis active and you activate another zone set, the currently activezone set is automatically deactivated. You don’t need to explicitlydeactivate the currently active zone set before activating a newzone set.

4.21.  浏览Zone信息

Displays Zone Informationfor All VSANs

switch# show zone

zone name Zone3 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:9c:48:e5

zone name Zone2 vsan2

fwwn20:41:00:05:30:00:2a:1e

fwwn20:42:00:05:30:00:2a:1e

fwwn20:43:00:05:30:00:2a:1e

zone name Zone1 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:a6:be:2f

pwwn21:00:00:20:37:9c:48:e5

Displays Zone Informationfor a Specific VSAN.

switch# show zone vsan1

zone name Zone3 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:9c:48:e5

zone name Zone2 vsan1

fwwn20:4f:00:05:30:00:2a:1e

fwwn20:50:00:05:30:00:2a:1e

fwwn20:51:00:05:30:00:2a:1e

fwwn20:52:00:05:30:00:2a:1e

fwwn20:53:00:05:30:00:2a:1e

zone name Zone1 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:a6:be:2f

pwwn21:00:00:20:37:9c:48:e5

Display Configured ZoneSet Information:

switch# show zoneset vsan1

zoneset name ZoneSet2 vsan1

zone name Zone2 vsan1

fwwn20:4e:00:05:30:00:2a:1e

fwwn20:4f:00:05:30:00:2a:1e

fwwn20:50:00:05:30:00:2a:1e

fwwn20:51:00:05:30:00:2a:1e

fwwn20:52:00:05:30:00:2a:1e

zone name Zone1 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:a6:be:2f

pwwn21:00:00:20:37:9c:48:e5

fcalias Alias1

zoneset name ZoneSet1 vsan1

zone name Zone1 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:a6:be:2f

pwwn21:00:00:20:37:9c:48:e5

fcalias Alias1

Display Configured ZoneSet Information for a Range of VSANs:

switch# show zoneset vsan2-3

zoneset name ZoneSet2 vsan2

zone name Zone2 vsan2

fwwn20:52:00:05:30:00:2a:1e

fwwn20:53:00:05:30:00:2a:1e

fwwn20:54:00:05:30:00:2a:1e

fwwn20:55:00:05:30:00:2a:1e

fwwn20:56:00:05:30:00:2a:1e

zone name Zone1 vsan2

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:a6:be:2f

pwwn21:00:00:20:37:9c:48:e5

fcalias Alias1

zoneset name ZoneSet3 vsan3

zone name Zone1 vsan1

pwwn21:00:00:20:37:6f:db:dd

pwwn21:00:00:20:37:a6:be:2f

pwwn21:00:00:20:37:9c:48:e5

fcalias Alias1

Displays ActiveZonesets

switch# show zonesetactive

zoneset name ZoneSet1 vsan1

zone name zone1 vsan1

fcid 0x080808

fcid 0x090909

fcid 0x0a0a0a

zone name zone2 vsan1

* fcid 0xef0000 [pwwn21:00:00:20:37:6f:db:dd]

* fcid 0xef0100 [pwwn21:00:00:20:37:a6:be:2f]

Displays BriefDescriptions of Zone Sets

switch# show zonesetbrief

zoneset name ZoneSet1 vsan1

zone zone1

zone zone2

4.22.  恢复管理员口令

Step 1 Reboot theswitch.

switch# reload

The supervisor is going downfor reboot NOW!

Step 2 Press the Ctrl-]key sequence (when the switch begins its SAN-OS software bootsequence) toenter the

switch(boot)# prompt

switch(boot)#

Step 3 Change toconfiguration mode.

switch(boot)# configterminal

Step 4 Enter theadmin-password command to reset the administratorpassword.

switch(boot-config)#admin-password password

Step 5 Exit to the EXECmode.

switch(boot-config)#exit

switchboot#

Step 6 Enter the loadcommand to load the SAN-OS software.

switch(boot)# loadbootflash:(system.img .mz)

Step 7 Save the softwareconfiguration.

switch# copy running-configstartup-config

4.23.  设置端口速率

#conf ter

#interface fc1/6

#switchport speed4000/2000/auto(默认)

Check

#show zoneset activedetail

你可能感兴趣的:(Cisco MDS 9124 官网配置)