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

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

  1. 初始化信息 3

  2. 交换机基本配置 4

2.1. 配置交换机管理地址 4

2.2. LICENSE注册 4

2.3. 配置VSAN 6

2.4. 配置ZONESET 6

2.5. 配置ZONE 7

2.6. TRUNKING的配置 7

  1. 标准配置模板 8

  2. 常用检查命令 9

  3. 常用配置命令 9

5.1. 删除创建的ZONE 9

5.2. 清除配置 9

5.3. 设置配置口超时 10

5.4. 安装与清除license 10

5.5. 显示指定License 10

5.6. 显示全部Licenses 10

5.7. 显示ID 11

5.8. 命名交换机 11

5.9. 设置管理口 11

5.10. 禁止与使能Telnet 与 ssh 11

5.11. 下载配置文件 12

5.12. 保存配置 12

5.13. 创建与设置VSAN 12

5.14. 分配VSAN成员 12

5.15. 删除VSAN 13

5.16. 浏览VSAN设置 13

5.17. 设置FC端口 14

5.18. 设置Zone 15

5.19. 设置Zone Sets 15

5.20. 激活Zone Set 15

5.21. 浏览Zone信息 15

5.22. 恢复管理员口令 18

5.23. 设置端口速率 19

  1. 初始化信息

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

---- System Admin Account Setup ----

Enter the password for “admin”: 输入admin管理员密码,系统设为P@ssw0rd

Confirm the password for “admin”: 再次输入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.

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): no

思科光纤交换机配置管理使用手册MDS Switch

switch login: admin

Password:

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

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

Copyright © 2002-2005, Cisco Systems, Inc. All rights reserved.

The copyrights to certain works contained herein are owned by

other 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 at

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

switch#

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

  1. 交换机基本配置
    2.1. 思科光纤交换机配置管理使用手册配置交换机管理地址
    思科光纤交换机配置管理使用手册switch# config tEnter configuration commands, one per line. End with CNTL/Z.

思科光纤交换机配置管理使用手册switch (config)# switchname switchswitch(config)# switch(config)# interface mgmt 0switch(config-if)# ip adress 192.168.100.108 255.255.255.0switch(config-if)# no shutdown

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

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

2.2. LICENSE注册
1.查看主机Host-id

MDS9214#show license host-id

2.申请License

在http://www.cisco.com/go/license/public 登录(需要在思科网站先行注册一个用户),使用Host-id和License Key申请获得许可证文件(一个扩展名为lic的文件),大概2小时后收到。(注意事项:必须使用以FOX开头的host-id,绝对不能使用以JAB开头的设备SN number进行申请,否则将导致注册失败而且License Key失效!!!!)

3.拷贝License到交换机

获得CISCO许可证文件(文件扩展名为lic)后,复制许可证文件到交换机内的CF卡上(注意关闭电脑防火墙):

MDS9214#copy tftp://xxx.xxx.xxx.xxx/MDS20075233204134504.lic bootflash:

4.安装License许可证文件

MDS9124#install license bootflash:/MDS20070523204134504.lic

5.查看许可证License使用情况

GD-CTD# show port-license

举例:

interface mgmt0

ip address 192.168.128.10 255.255.255.0

GD-CTD# copy tftp://192.168.128.12/MDS20110725204358947.lic bootflash:

Trying to connect to tftp server…

Connection to server Established. Copying Started…

TFTP get operation was successful

GD-CTD# install license bootflash:/MDS20110725204358947.lic

GD-CTD# show port-license

Available port activation licenses are 0


Interface Cookie Port Activation License


fc1/1 16777216 acquired

fc1/2 16781312 acquired

fc1/3 16785408 acquired

fc1/4 16789504 acquired

fc1/5 16793600 acquired

fc1/6 16797696 acquired

fc1/7 16801792 acquired

fc1/8 16805888 acquired

fc1/9 16809984 acquired

fc1/10 16814080 acquired

fc1/11 16818176 acquired

fc1/12 16822272 acquired

fc1/13 16826368 acquired

fc1/14 16830464 acquired

fc1/15 16834560 acquired

fc1/16 16838656 acquired

fc1/17 16842752 eligible

fc1/18 16846848 eligible

fc1/19 16850944 eligible

fc1/20 16855040 eligible

fc1/21 16859136 eligible

fc1/22 16863232 eligible

fc1/23 16867328 eligible

fc1/24 16871424 eligible

GD-CTD#

2.3. 配置VSAN
接下来配置VSAN

switch#config t

思科光纤交换机配置管理使用手册switch (config)#vsan database

switch(config-vsan-db)# vsan 100

switch(config-vsan-db)#end

2.4. 思科光纤交换机配置管理使用手册配置ZONESET
switch#config t

switch (config)#zoneset name anhuipower vsan 100

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

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

switch#config t

switch (config)#zoneset activate name anhuipower vsan 100

2.5. 配置ZONE
下面配置ZONE

基本命令如下:

switch#config t

思科光纤交换机配置管理使用手册switch(config)#zone name zone_name vsan 100

switch(config)#member interface fc#/#

switch(config)#member interface fc#/#

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

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

配置命令如下:

switch#config t

思科光纤交换机配置管理使用手册switch(config)# interface fc1/1switch(config-if)# switchport mode e

switch(config)# interface fc1/2switch(config-if)# switchport mode e

  1. 标准配置模板
    思科光纤交换机配置管理使用手册

配置主机名

switchname MDS9124

配置vsan

vsan database

vsan 100

vsan 100 interface fc1/1 - 8

配置zone

zone name server1 vsan 100

member interface fc1/1 - 8

配置zoneset

zoneset name server vsan 100

member server1

激活zoneset

zoneset activate name Yeslab-ZoneSet vsan 100

启用端口

interface fc1/1

no shutdown

interface fc1/2

no shutdown

保存配置

Copy run start

  1. 常用检查命令
    show run 显示当前配置

show zone 显示当前配置的ZONE的信息

show zoneset 显示当前配置的ZONESET的信息

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

show zone activate 显示当前活动的ZONE信息

show zoneset activate 显示当前活动的ZONESET信息

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

copy run start 保存当前配置

  1. 常用配置命令
    5.1. 删除创建的ZONE
    switch(config)# zone name test vsan 1

switch(config-zone)# exit

switch(config)# no zone name test vsan 1

switch(config)#

5.2. 清除配置
Switch#write erase

5.3. 设置配置口超时
switch(config)# line console

switch(config-console)# exec-timeout 60

switch(config)# line vty

switch(config-line)# exec-timeout 60

5.4. 安装与清除license
switch# install license bootflash:license-file

switch# clear license license-file

switch# clear license all

5.5. 显示指定License
switch# show license fcports.lic

fcports.lic:

SERVER this_host ANY

VENDOR cisco

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

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

5.6. 显示全部Licenses
switch# show license all

fcports.lic:

SERVER this_host ANY

VENDOR cisco

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

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

ficon.lic:

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

SIGN=CB7872B23700 <----------------------------ficon license

5.7. 显示ID
switch# show license hostid

License hostid:VDH=4C0AF664

5.8. 命名交换机
switch# config t

switch(config)# switchname myswitch1

myswitch1(config)#

myswitch1(config)# no switchname

switch(config)#

5.9. 设置管理口
switch# config terminal

switch(config)# interface mgmt 0

switch(config)# ip address 1.1.1.0 255.255.255.0

switch(config-if)# no shutdown

switch(config-if)# exit

switch(config)# ip default-gateway 1.1.1.1

5.10. 禁止与使能Telnet 与 ssh
switch# config t

switch(config)# no telnet server enable

switch(config)# telnet server enable

switch# config t

switch(config)# ssh server enable

switch(config)# no ssh server enable

5.11. 下载配置文件
switch# copy 😕/ system:running-config

switch# copy tftp://172.16.10.1/237.img bootflash: 237.img

5.12. 保存配置
switch# copy running-config startup-config

5.13. 创建与设置VSAN
switch# config t.

switch(config)# vsan database

switch(config-vsan-db)#

switch(config-vsan-db)# vsan 2

switch(config-vsan-db)#

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

5.14. 分配VSAN成员
switch# config t

switch(config)# vsan database

switch(config-vsan-db)#

switch(config-vsan-db)# vsan 2

switch(config-vsan-db)#

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

switch(config-vsan-db)#

switch(config-vsan-db)# vsan 7

switch(config-vsan-db)#

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

5.15. 删除VSAN
switch# config t

switch(config)# vsan database

switch(config-db)#

switch-config-db# vsan 2

switch(config-vsan-db)#

switch(config-vsan-db)# no vsan 5

switch(config-vsan-db)#

switch(config-vsan-db)# end

switch#

5.16. 浏览VSAN设置
switch# show vsan 100

vsan 100 information

name:VSAN0100 state:active

in-order guarantee:no interoperability mode:no

loadbalancing:src-id/dst-id/oxid

switch# show vsan usage

4 vsan configured

configured vsans:1-4

vsans available for configuration:5-4093

switch# show vsan

vsan 1 information

name:VSAN0001 state:active

in-order guarantee:no interoperability mode:no

loadbalancing:src-id/dst-id/oxid

vsan 2 information

name:VSAN0002 state:active

in-order guarantee:no interoperability mode:no

loadbalancing:src-id/dst-id/oxid

vsan 7 information

name:VSAN0007 state:active

in-order guarantee:no interoperability mode:no

loadbalancing:src-id/dst-id/oxid

vsan 100 information

name:VSAN0100 state:active

in-order guarantee:no interoperability mode:no

loadbalancing:src-id/dst-id/oxid

switch # show vsan 1 membership

vsan 1 interfaces:

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

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

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

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

vsan 2 interfaces:

vsan 7 interfaces:

fc1/8

vsan 100 interfaces:

vsan 4094(isolated vsan) interfaces:

5.17. 设置FC端口
switch# config t

switch(config)# interface fc1/1

switch# config t

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

switch(config-if)# no shutdown

switch(config-if)# shutdown

5.18. 设置Zone
switch# config t

switch(config)# zone name Zone1 vsan 3

switch(config-zone)#

switch(config-zone)# member interface fc 2/1

5.19. 设置Zone Sets
(Either zone set A or zone set B can be activated (but not together).)

switch# config t

switch(config)# zoneset name Zoneset1 vsan 3

switch-config-zoneset#

switch-config-zoneset# member Zone1

switch-config-zoneset#

5.20. 激活Zone Set
switch# config t

switch(config)#

switch(config)# zoneset activate name Zoneset1 vsan 3

switch(config)# no zoneset activate name Zoneset1 vsan 3

ATTETION: If one zone set is active and you activate another zone set, the currently active zone set is automatically deactivated. You don’t need to explicitly deactivate the currently active zone set before activating a new zone set.

5.21. 浏览Zone信息
Displays Zone Information for All VSANs

switch# show zone

zone name Zone3 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:9c:48:e5

zone name Zone2 vsan 2

fwwn 20:41:00:05:30:00:2a:1e

fwwn 20:42:00:05:30:00:2a:1e

fwwn 20:43:00:05:30:00:2a:1e

zone name Zone1 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:a6:be:2f

pwwn 21:00:00:20:37:9c:48:e5

Displays Zone Information for a Specific VSAN.

switch# show zone vsan 1

zone name Zone3 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:9c:48:e5

zone name Zone2 vsan 1

fwwn 20:4f:00:05:30:00:2a:1e

fwwn 20:50:00:05:30:00:2a:1e

fwwn 20:51:00:05:30:00:2a:1e

fwwn 20:52:00:05:30:00:2a:1e

fwwn 20:53:00:05:30:00:2a:1e

zone name Zone1 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:a6:be:2f

pwwn 21:00:00:20:37:9c:48:e5

Display Configured Zone Set Information:

switch# show zoneset vsan 1

zoneset name ZoneSet2 vsan 1

zone name Zone2 vsan 1

fwwn 20:4e:00:05:30:00:2a:1e

fwwn 20:4f:00:05:30:00:2a:1e

fwwn 20:50:00:05:30:00:2a:1e

fwwn 20:51:00:05:30:00:2a:1e

fwwn 20:52:00:05:30:00:2a:1e

zone name Zone1 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:a6:be:2f

pwwn 21:00:00:20:37:9c:48:e5

fcalias Alias1

zoneset name ZoneSet1 vsan 1

zone name Zone1 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:a6:be:2f

pwwn 21:00:00:20:37:9c:48:e5

fcalias Alias1

Display Configured Zone Set Information for a Range of VSANs:

switch# show zoneset vsan 2-3

zoneset name ZoneSet2 vsan 2

zone name Zone2 vsan 2

fwwn 20:52:00:05:30:00:2a:1e

fwwn 20:53:00:05:30:00:2a:1e

fwwn 20:54:00:05:30:00:2a:1e

fwwn 20:55:00:05:30:00:2a:1e

fwwn 20:56:00:05:30:00:2a:1e

zone name Zone1 vsan 2

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:a6:be:2f

pwwn 21:00:00:20:37:9c:48:e5

fcalias Alias1

zoneset name ZoneSet3 vsan 3

zone name Zone1 vsan 1

pwwn 21:00:00:20:37:6f:db:dd

pwwn 21:00:00:20:37:a6:be:2f

pwwn 21:00:00:20:37:9c:48:e5

fcalias Alias1

Displays Active Zonesets

switch# show zoneset active

zoneset name ZoneSet1 vsan 1

zone name zone1 vsan 1

fcid 0x080808

fcid 0x090909

fcid 0x0a0a0a

zone name zone2 vsan 1

  • fcid 0xef0000 [pwwn 21:00:00:20:37:6f:db:dd]

  • fcid 0xef0100 [pwwn 21:00:00:20:37:a6:be:2f]

Displays Brief Descriptions of Zone Sets

switch# show zoneset brief

zoneset name ZoneSet1 vsan 1

zone zone1

zone zone2

5.22. 恢复管理员口令
Step 1 Reboot the switch.

switch# reload

The supervisor is going down for reboot NOW!

Step 2 Press the Ctrl-] key sequence (when the switch begins its SAN-OS software boot sequence) to enter the

switch(boot)# prompt

switch(boot)#

Step 3 Change to configuration mode.

switch(boot)# config terminal

Step 4 Enter the admin-password command to reset the administrator password.

switch(boot-config)# admin-password password

Step 5 Exit to the EXEC mode.

switch(boot-config)# exit

switchboot#

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

switch(boot)# load bootflash:(system.img .mz)

Step 7 Save the software configuration.

switch# copy running-config startup-config

5.23. 设置端口速率
#conf ter

#interface fc1/6

#switchport speed 4000/2000/auto(默认)

Check

#show zoneset active detail

  • 2
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值