1、 adminPassword: Cisco Storage Area Networking Operating System (SAN-OS) SoftwareTAC support: Copyright (c) 2002-2005, 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
2、 software are covered under the GNU PublicLicense. A copy of the license is available athttp:/www.gnu.org/licenses/gpl.html.switch# 然后,可以按照类似以太网交换机配置的方法来配置交换机了。2.交换机基本配置2.1.配置交换机管理地址switch# config tEnter configuration commands, one per line. End with CNTL/Z.配置交换机的管理IP地址switch (config)# switchname sw
3、itchswitch(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.配置VSAN接下来配置VSANswitch#config t增加VSAN 100switch (config)#vsan databaseswitch(config-vsan-db)# vsan 100switch(config-vsan-
4、db)#end 2.3.在VSAB100中创建名为anhuipower的ZONE配置ZONESETswitch (config)#zoneset name anhuipower vsan 100switch (config-zoneset)#member ZONE_NAME 把ZONE填加到该ZONESET中注:在交换机处于正常运行时,如果配置了新的ZONE,并且填加到了ZONESET中,此时需要Acitvate才能生效,命令如下:switch (config)#zoneset activate name anhuipower vsan 1002.4.配置ZONE下面配置ZONE基本命令如下:
5、配置zone,并给zone命名,然后把指定端口加入到该zone中switch(config)#zone name zone_name vsan 100switch(config)#member interface fc#/#交换机端口都是以fc表示,fc1/1 表示第一个模块上的第一个端口。由于像cisco9506之类的交换机是模块化的,所以其每个端口就是fc模块号/端口号。像cisco9120,cisco9140,不是模块化的,但其接口默认是fc1/端口号。2.5.TRUNKING的配置默认情况下,交换机每个端口的TRUNKING协议都是启用的,交换机互连的端口应工作在E mode下,如果有
6、两台交换机互相连接的情况,则要启用TRUNKING,以FC1/1和FC1/2为例。配置命令如下:指定端口为E工作模式switch(config)# interface fc1/1switch(config-if)# switchport mode eswitch(config)# interface fc1/23.常用检查命令show run 显示当前配置show zone 显示当前配置的ZONE的信息show zoneset 显示当前配置的ZONESET的信息show interface fc1/1 显示端口fc1/1信息show zone activate 显示当前活动的ZONE信息sho
7、w zoneset activate 显示当前活动的ZONESET信息show flogi database detail 查看交换机端口连接的HBA卡的WWN号copy run start 保存当前配置4.常用配置命令4.1.删除创建的ZONEswitch(config)# zone name test vsan 1switch(config-zone)# exitswitch(config)# no zone name test vsan 1switch(config)#4.2.清除配置Switchwrite erase4.3.设置配置口超时switch(config)# line con
8、soleswitch(config-console)# exec-timeout 60switch(config)# line vtyswitch(config-line)# exec-timeout 604.4.安装与清除licenseswitch# install license bootflash:license-fileswitch# clear license license-fileswitch# clear license all4.5.显示指定Licenseswitch# show license fcports.licfcports.lic:SERVER this_host
9、ANYVENDOR ciscoFEATURE fcports cisco 1.000 permanent 30 HOSTID=VDH=4C0AF664 SIGN=24B2B68AA676 - fcport license4.6.显示全部Licensesswitch# show license all-fcport licenseficon.lic:FEATURE ficon cisco 1.000 permanent uncounted HOSTID=VDH=4C0AF664 SIGN=CB7872B23700 -ficon license4.7.显示IDswitch# show licens
10、e hostidLicense hostid:VDH=4C0AF6644.8.命名交换机switch# config t switch(config)# switchname myswitch1myswitch1(config)#myswitch1(config)# no switchname4.9.设置管理口switch# config terminalswitch(config)# ip address 1.1.1.0 255.255.255.0switch(config-if)# no shutdown switch(config-if)# exitswitch(config)# ip
11、default-gateway 1.1.1.14.10.禁止与使能Telnet 与 sshswitch(config)# no telnet server enableswitch(config)# telnet server enableswitch(config)# ssh server enableswitch(config)# no ssh server enable4.11.下载配置文件switch# copy / system:running-configswitch# copy tftp:/172.16.10.1/237.img bootflash: 237.img4.12.保存
12、配置switch# copy running-config startup-config4.13.创建与设置VSANswitch# config t.switch(config)# vsan databaseswitch(config-vsan-db)#switch(config-vsan-db)# vsan 2switch(config-vsan-db)# vsan 2 name TechDoc4.14.分配VSAN成员switch(config-vsan-db)# vsan 2 interface fc1/8switch(config-vsan-db)# vsan 7switch(conf
13、ig-vsan-db)# vsan 7 interface fc1/84.15.删除VSANswitch(config-db)#switch-config-db# vsan 2switch(config-vsan-db)# no vsan 5switch(config-vsan-db)# endswitch#4.16.浏览VSAN设置switch# show vsan 100vsan 100 informationname:VSAN0100 state:activein-order guarantee:no interoperability mode:noloadbalancing:src-i
14、d/dst-id/oxidswitch# show vsan usage4 vsan configuredconfigured vsans:1-4vsans available for configuration:5-4093switch# show vsanvsan 1 informationVSAN0001 state:vsan 2 informationVSAN0002 state:vsan 7 informationVSAN0007 state:switch # show vsan 1 membershipvsan 1 interfaces:fc2/16 fc2/15 fc2/14 f
15、c2/13 fc2/12 fc2/11 fc2/10 fc2/9fc2/8 fc2/7 fc2/6 fc2/5 fc2/4 fc2/3 fc2/2 fc2/1fc1/16 fc1/15 fc1/14 fc1/13 fc1/12 fc1/11 fc1/10 fc1/9fc1/7 fc1/6 fc1/5 fc1/4 fc1/3 fc1/2 fc1/1vsan 2 interfaces:vsan 7 interfaces:fc1/8vsan 100 interfaces:vsan 4094(isolated vsan) interfaces:4.17.设置FC端口switch(config)# in
16、terface fc1/1 - 4 , fc2/1 3switch(config-if)# shutdown4.18.设置Zoneswitch(config)# zone name Zone1 vsan 3switch(config-zone)#switch(config-zone)# member interface fc 2/1 4.19.设置Zone Sets(Either zone set A or zone set B can be activated (but not together).)switch(config)# zoneset name Zoneset1 vsan 3sw
17、itch-config-zoneset#switch-config-zoneset# member Zone14.20.激活Zone Set switch(config)# zoneset activate name Zoneset1 vsan 3switch(config)# no zoneset activate name Zoneset1 vsan 3ATTETION: If one zone set is active and you activate another zone set, the currently active zone set is automatically de
18、activated. You dont need to explicitly deactivate the currently active zone set before activating a new zone set.4.21.浏览Zone信息Displays Zone Information for All VSANsswitch# show zonezone name Zone3 vsan 1pwwn 21:00:20:37:6f:db:dd9c:48:e5zone name Zone2 vsan 2fwwn 20:41:05:30:2a:1e42:43:zone name Zon
19、e1 vsan 1a6:be:2fDisplays Zone Information for a Specific VSAN.switch# show zone vsan 1zone name Zone2 vsan 14f:50:51:52:53:Display Configured Zone Set Information:switch# show zoneset vsan 1zoneset name ZoneSet2 vsan 14e:fcalias Alias1zoneset name ZoneSet1 vsan 1Display Configured Zone Set Information for a Range of VSANs:switch# show zoneset vsan 2-3zoneset name ZoneSet2 vsan 254:55:56:zone name Zone1 vsan 2zoneset name ZoneSet3 vsan 3Displays Active Zonesetsswitch# show zoneset activezone n
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1