1. 初始化信息

首次设置,必须通过console进行连接(需要U口转DB9针的接口线,专门卖接口线的有卖大约30元),然后进行初始化设计,以后设定IP后可通过LAN进行登陆

具体步骤:(红色字体部分着重注意,需要进行设置,大部分按照默认设置即可,而且设置的部分进入管理工具软件可以更改)

—- System Admin Account Setup —-

Enter the password for “admin”: password

Confirm the password for “admin”: password

— 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.

Press Enter at any time to skip any dialog. Use ctrl-c at anytime to skip the remaining dialogs.

Would you like to enter the basic configuration dialog (yes/no): y

Create another login account (yes/no) [n]:

Configure read-only SNMP community string (yes/no) [n]:

Configure read-write SNMP community string (yes/no) [n]:

Enter the switch name: Pxx-MDS-x (where xx is your pod number and x is the switch number; for example:P01-MDS-1)

Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]:

Mgmt0 IPv4 address : <10.0.x.y> (where x is your pod number and y is 5 for MDS-1 and 3 for MDS-2)(客户)0.16

Mgmt0 IPv4 netmask : 255.255.255.0

Configure the default gateway? (yes/no) [y]:

IPv4 address of the default gateway : 10.0.x.254 (where x is your pod number)

Configure advanced IP options? (yes/no) [n]:

Enable the telnet service? (yes/no) [y]:

Enable the ssh service? (yes/no) [n]:

Configure the ntp server? (yes/no) [n]:

Configure default switchport interface state (shut/noshut) [shut]: (注意一下)noshut

Configure default switchport trunk mode (on/off/auto) [on]:

Configure default zone policy (permit/deny) [deny]:

Enable full zoneset distribution (yes/no) [n]:

NOTE:初始设定的配置对新的VSAN起作用,即原始VSAN1无这些配置

解决办法:

1 zone default-zone permit VSAN

2 新建 NEW VSAN2 将port转移VSAN2里面,建议创建VSAN2 把端口放置在VSAN2中

2. 交换机配置

2.1. 配置交换机管理地址

switch# config t(按tab命令可以补全的或者 输入命令后空格加?

可以出来命令的使用方法)

switch (config)# switchname switch

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. 配置VSAN

接下来配置VSAN

switch#config t

switch (config)#vsan database

switch(config-vsan-db)# vsan 2

switch(config-vsan-db)#end

2.3. 配置ZONESET

switch#config t

switch (config)#zoneset name set10 vsan 2

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

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

switch#config t

switch (config)#zoneset activate name set10 vsan 2

2.4. 配置ZONE

下面配置ZONE

基本命令如下:

switch#config t

switch(config)#zone name zone_name vsan 2

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

switch(config)# interface fc1/1

switch(config-if)# switchport mode e

switch(config)# interface fc1/2

switch(config-if)# switchport mode e

3. 常用命令

show run显示当前配置

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

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

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

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

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

copy run start保存当前配置

show vsan 查看交换机的vsan信息

show vsan x membership 查看某个vsan下面的端口

show topology 级联成功后查看对端交换机信息

show fcdomain domain-list 查看级联信息

show fcs database 查看本地交换机注册的WWN号

show fcns database 查看级联后整个fabric注册的WWN号

Show interface brief 确认设置trunk的端口已经启用成功

Show wwn switch 查看交换机的WWN号码

4. 常用技巧

4.1. 修改交换机IP地址

建议通过串口线修改

switch#conf t

switch(config)# int mgmt 0

switch(config)-if# ip address <192.168.1.1> <255.255.255.0> 输入修改后的IP 和掩码

switch(config-if)# switchport speed 10/100/100 如果必要,可以指定网口的速率

switch(config)# ip default-gateway <192.168.1.254>

4.2. 解决网口不亮的方法

通过串口连接

switch#conf t

switch(config)# int mgmt 0

switch(config-if)# shutdown 提示是否继续,选择“y”

switch(config-if)# no shut

4.3. 修改用户密码

switch#conf t

switch(config)# username <用户名> password <密码>

4.4. 修改交换机名字

switch#conf t

switch(config)#switchname

4.5. 启动关闭服务

如果你接手的交换机没有开启 TELNET功能,可以参考启停方法如下,其他服务也类似

switch#conf t

switch(config)# telnet server enable 开启

switch(config)# no telnet server enable 关闭

5. 实例交换机级联跨交换机化zone

A交换机端口1,端口2 分别连接B交换机得端口1,端口2

5.1. 首先初始化按照1初始化两台交换机

在每个交换机上创建VSAN2,把端口1-48加入到vsan2 中

(config)# vsan database 进入

(config-vsan-db)# vsan 2 name VSAN2 创建名字为VSAN2的vsan

(config-vsan-db)# vsan 2 interface fc 1/1 – 48 将光纤口绑定在vsan2上

(config-vsan-db)# exit 退出config-vsan-db模式

查看VSAN2中的端口信息

show vsan 2 membership

是否两个交换机得VSAN2中加入了1-48个端口(可以根据需要加端口)

5.2. 交换机开启mode E

在两个交换机上开启端口模式E,关闭TRUNK(只是级联不是跨交换机跨VSAN化zoneTRUNK可以关闭)根据可需要选择开启的端口,这里是开启fc1/1,fc1/2

switch#config t

switch(config)# interface fc1/1

switch(config-if)# switchport mode e

switch(config-if)# switchport trunk mode off

switch(config)# interface fc1/2

switch(config-if)# switchport mode e

switch(config-if)# switchport trunk mode off

switch(config-if)# show int brief

5.3. 查看是否级联成功

输入

switch#show fcdomain domain-list

local和Principal 在一行的是主交换机,出现如下的提示是级联成功了

查看交换机的WWN号码并记录

switch#show wwn switch

或者用

switch#show fcs database

端口1和端口2启用mode e 所以fc1/1上的号码就是对端的交换机的WWN号码记录下来

20:00:00:05:73:ba:21:f0

20:00:00:05:73:e5:fb:d8

这两个就是交换机的WWN号码

其中的fc1/5是我们的连接的设备的WWN号码也需要记录

21:00:00:24:ff:00:2e:f3

50:06:0e:80:05:8a:ee:00

5.4. 配置zone及zoneset并激活

在主交换机上(输入switch#show fcdomain domain-list

local和Principal 在一行的是主交换机)配置zone

这个地方有两种配置方式,

一种是配置端口在一个zone里面,

一种是配置设备号在一个zone里面

配置端口在一个zone里面,

switch#config t

switch(config)#zone name zone5_name vsan 2

switch(config)#member interface fc1/5 swwn 20:00:00:05:73:ba:21:f0

switch(config)#member interface fc1/5 swwn 20:00:00:05:73:e5:fb:d8

进入zoneset

switch (config)#zoneset name set10 vsan 2

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

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

switch#config t

switch (config)#zoneset activate name set10 vsan 2

switch#show zone

switch#show zoneset

去另一台交换机查看是否也同步出现了相关的zone及zoneset的信息。

如果一样那就已经配置成功了

配置连接的设备号在一个zone里面(当设备更换端口的时候不需要配置还是可以通信的),

switch#config t

switch(config)#zone name zone5_name vsan 2

switch(config)#member pwwn 21:00:00:24:ff:00:2e:f3

switch(config)#member pwwn 50:06:0e:80:05:8a:ee:00

进入zoneset

switch (config)#zoneset name set10 vsan 2

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

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

switch#config t

switch (config)#zoneset activate name set10 vsan 2

switch#show zone

switch#show zoneset

去另一台交换机查看是否也同步出现了相关的zone及zoneset的信息。