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

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

1. 2.

初始化信息 ............................................................................................................................... 3 交换机基本配置 ....................................................................................................................... 4 2.1. 2.2. 2.3. 2.4. 2.5. 2.6. 3. 4. 5.

配置交换机管理地址 ................................................................................................... 4 LICENSE注册 ............................................................................................................. 4 配置VSAN ................................................................................................................... 6 配置ZONESET ............................................................................................................ 6 配置ZONE ................................................................................................................... 7 TRUNKING的配置 ..................................................................................................... 7

标准配置模板 ........................................................................................................................... 8 常用检查命令 ........................................................................................................................... 9 常用配置命令 ........................................................................................................................... 9 5.1. 5.2. 5.3. 5.4. 5.5. 5.6. 5.7. 5.8. 5.9. 5.10.

删除创建的ZONE ....................................................................................................... 9 清除配置 ....................................................................................................................... 9 设置配置口超时 ......................................................................................................... 10 安装与清除license ..................................................................................................... 10 显示指定License ....................................................................................................... 10 显示全部Licenses ...................................................................................................... 10 显示ID ....................................................................................................................... 11 命名交换机 ................................................................................................................. 11 设置管理口 ................................................................................................................. 11 禁止与使能Telnet 与 ssh ..................................................................................... 11

5.11. 下载配置文件 ............................................................................................................. 12 5.12. 5.13.

保存配置 ................................................................................................................. 12 创建与设置VSAN ................................................................................................. 12

5.14. 5.15. 5.16. 5.17. 5.18. 5.19. 5.20. 5.21. 5.22. 5.23.

分配VSAN成员 .................................................................................................... 12 删除VSAN ............................................................................................................. 13 浏览VSAN设置 .................................................................................................... 13 设置FC端口 .......................................................................................................... 14 设置Zone ............................................................................................................... 15 设置Zone Sets ........................................................................................................ 15 激活Zone Set ......................................................................................................... 15 浏览Zone信息 ...................................................................................................... 15 恢复管理员口令 ..................................................................................................... 18 设置端口速率 ......................................................................................................... 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:

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

Copyright (c) 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#

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

2. 交换机基本配置

2.1. 配置交换机管理地址

switch# config t

Enter configuration commands, one per line. End with CNTL/Z. switch (config)# switchname switch switch(config)#

switch(config)# interface mgmt 0

switch(config-if)# ip adress 192.168.100.108 255.255.255.0 switch(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/MDS[**************]04.lic bootflash:

4.安装License许可证文件

MDS9124#install license bootflash:/MDS[**************]04.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/MDS[**************]47.lic bootflash: Trying to connect to tftp server......

Connection to server Established. Copying Started..... TFTP get operation was successful

GD-CTD# install license bootflash:/MDS[**************]47.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/1

switch(config-if)# switchport mode e

switch(config)# interface fc1/2

switch(config-if)# switchport mode e

3. 标准配置模板

配置主机名

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

4. 常用检查命令

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 保存当前配置

5. 常用配置命令

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

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

ficon.lic:

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

SIGN=CB7872B23700

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

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

1. 2.

初始化信息 ............................................................................................................................... 3 交换机基本配置 ....................................................................................................................... 4 2.1. 2.2. 2.3. 2.4. 2.5. 2.6. 3. 4. 5.

配置交换机管理地址 ................................................................................................... 4 LICENSE注册 ............................................................................................................. 4 配置VSAN ................................................................................................................... 6 配置ZONESET ............................................................................................................ 6 配置ZONE ................................................................................................................... 7 TRUNKING的配置 ..................................................................................................... 7

标准配置模板 ........................................................................................................................... 8 常用检查命令 ........................................................................................................................... 9 常用配置命令 ........................................................................................................................... 9 5.1. 5.2. 5.3. 5.4. 5.5. 5.6. 5.7. 5.8. 5.9. 5.10.

删除创建的ZONE ....................................................................................................... 9 清除配置 ....................................................................................................................... 9 设置配置口超时 ......................................................................................................... 10 安装与清除license ..................................................................................................... 10 显示指定License ....................................................................................................... 10 显示全部Licenses ...................................................................................................... 10 显示ID ....................................................................................................................... 11 命名交换机 ................................................................................................................. 11 设置管理口 ................................................................................................................. 11 禁止与使能Telnet 与 ssh ..................................................................................... 11

5.11. 下载配置文件 ............................................................................................................. 12 5.12. 5.13.

保存配置 ................................................................................................................. 12 创建与设置VSAN ................................................................................................. 12

5.14. 5.15. 5.16. 5.17. 5.18. 5.19. 5.20. 5.21. 5.22. 5.23.

分配VSAN成员 .................................................................................................... 12 删除VSAN ............................................................................................................. 13 浏览VSAN设置 .................................................................................................... 13 设置FC端口 .......................................................................................................... 14 设置Zone ............................................................................................................... 15 设置Zone Sets ........................................................................................................ 15 激活Zone Set ......................................................................................................... 15 浏览Zone信息 ...................................................................................................... 15 恢复管理员口令 ..................................................................................................... 18 设置端口速率 ......................................................................................................... 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:

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

Copyright (c) 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#

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

2. 交换机基本配置

2.1. 配置交换机管理地址

switch# config t

Enter configuration commands, one per line. End with CNTL/Z. switch (config)# switchname switch switch(config)#

switch(config)# interface mgmt 0

switch(config-if)# ip adress 192.168.100.108 255.255.255.0 switch(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/MDS[**************]04.lic bootflash:

4.安装License许可证文件

MDS9124#install license bootflash:/MDS[**************]04.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/MDS[**************]47.lic bootflash: Trying to connect to tftp server......

Connection to server Established. Copying Started..... TFTP get operation was successful

GD-CTD# install license bootflash:/MDS[**************]47.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/1

switch(config-if)# switchport mode e

switch(config)# interface fc1/2

switch(config-if)# switchport mode e

3. 标准配置模板

配置主机名

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

4. 常用检查命令

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 保存当前配置

5. 常用配置命令

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

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

ficon.lic:

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

SIGN=CB7872B23700

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.掌握服务器及机房设备管理,具有VPN网络构建.网络防火墙.虚拟终端.邮件服务器等技术,熟悉MSISA.MSExchange调试和管理技术:3.出差 4.熟悉数据库备份.文件服务器备份技术:有实施K3财务系统和服装ERP系统经验者优先: 5.有大中型企划网络管理经验者优先:6.能力稍逊者可先任职网 ...

  • 思科网络解决方案
  • 思科网络解决方案 --惠州信华网络 深圳市维新康实业有限公司 2007-12-29 目录 第一章 深圳市维新康实业有限公司(简称WINSCOM) 介绍 .......................................................... 4 1.1公司介绍 . ... ...

  • 企业组网实施方案设计
  • XX学院 毕 业 设 计 报告书 题目:企业组网实施方案设计 系 (部) 专 业 班 级 姓 名 指导教师 日 期 毕业设计任务书 一.课题 企业组网实施方案设计 二.任务与设计内容 任务:毕业设计以某钢铁公司为背景,构建一个内部局域网,实现以管理信息为主体,连接生产.经营.库存.市场运营子系统,辅 ...

  • 思科交换机型号解释
  • 思科交换机型号解释 1. CISCO开头的产品都是路由器: 2. RSP开头的都是CISCO7500系列产品的引擎: 3. VIP开头的产品都是CISCO 7500系列产品的多功能接口处理器模块 4. PA开头的产品都是CISCO 7500/7200系列产品的模块. 5. NPE开头的都是CISCO ...

  • 软件系网络工程实验室建设规划
  • 软 件 工 程 系 网络工程本科专业实验室建设规划 二○一一年五月 关于软件工程系网络工程本科专业 新建.扩建实验室.实习基地的规划报告 教务处.发展规划处: 根据学校升本工作需要,结合我系实际情况,在对现有校内实验室.实习实训基地等实践条件摸底的基础上,经过仔细讨论和慎重考虑,现提出关于网络工程本 ...

  • 办公楼综合布线
  • 目录 第1章 前言 .............................................. 1 1.1 系统概述 .................................................... 1 1.2 系统功能 .................. ...

  • cisco路由型号比较
  • cisco路由器型号介绍 cisco 1800系列适用于小型办公机构和小型企业分支机构, cisco 2600系列适用于中小型企业分支机构, cisco 2800系列适用于中小型企业和企业分支机构, cisco 7200/7301系列,cisco 7304系列以及cisco 7600系列都适合企业总 ...

  • 国家电网公司信息运维人员技术资格考试大纲
  • 附件2 国家电网公司信息运维人员 技术资格考试大纲 信息网络管理 一.考试范围 主要针对信息网(包括信息内网,信息外网),按照电网安全运行以及<国家电网公司信息网骨干网运行管理暂行规定>的要求,对路由器.交换机等硬件设备.网络链路.网管系统的维护及网络运行状态.网络性能的监控等. 二.技 ...

  • cisco三层交换机
  • Cisco Catalyst 4500 系列 Catalyst 4500 系列交换机是中端.中等密度的模块化交换机,它 们提供了强大的第二到四层智能服务.Cisco Catalyst 4500系列的 模块化集中架构.介质灵活性和可扩展性延长了部署寿命,同时通 过减少重复运营开支和提高投资回报而降低了 ...