brocade 300光端交换机zone划分方法教程

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了brocade 300光端交换机zone划分方法教程相关的知识,希望对你有一定的参考价值。

参考技术A

  交换机的主要功能包括物理编址、网络拓扑结构、错误校验、帧序列以及流控。交换机还具备了一些新的功能,如对VLAN(虚拟局域网)的支持、对链路汇聚的支持,甚至有的还具有防火墙的功能。对于brocade的光端交换机,划分zone的原理和过程是怎样的呢。下面一起看看!

  方法步骤

  当然图形界面划分也很简单

  Fabric OS (WOLFB300SWA)

  Fabos Version 6.4.2a

  WOLFB300SWA login: admin

  Password:

  -----------------------------------------------------------------

  WOLFB300SWA:admin>

  WOLFB300SWA:admin>

  WOLFB300SWA:admin>

  WOLFB300SWA:admin> cfgshow

  Defined configuration:

  cfg: WOLFB300SWA

  P750lp1_hba1_HDS2300_0a

  zone: P750lp1_hba1_HDS2300_0a

  1,0; 1,2

  Effective configuration:

  cfg: WOLFB300SWA

  zone: P750lp1_hba1_HDS2300_0a

  1,0

  1,2

  WOLFB300SWA:admin> zonecreate "P750lp1_hba1_HDS2300_0a","1,0;1,3"

  WOLFB300SWA:admin> cfg

  cfgactvshow cfgcreate cfgenable cfgsave cfgsize

  cfgadd cfgdelete cfgmcdtmode cfgsaveactivetodefined cfgtransabort

  cfgclear cfgdisable cfgremove cfgshow cfgtransshow

  WOLFB300SWA:admin> cfgadd

  error: Usage: cfgadd "arg1", "arg2"

  WOLFB300SWA:admin> cfgadd "P750lp1_hba1_HDS2300_0a","WOLFB300SWA"

  "P750lp1_hba1_HDS2300_0a" wrong type

  WOLFB300SWA:admin> cfgadd "WOLFB300SWA","P750lp1_hba1_HDS2300_0a"

  WOLFB300SWA:admin> cfgenable WOLFB300SWA

  You are about to enable a new zoning configuration.

  This action will replace the old zoning configuration with the

  current configuration selected. If the update includes changes

  to one or more traffic isolation zones, the update may result in

  localized disruption to traffic on ports associated with

  the traffic isolation zone changes

  Do you want to enable 'WOLFB300SWA' configuration (yes, y, no, n): [no] yes

  zone config "WOLFB300SWA" is in effect

  Updating flash ...

  WOLFB300SWA:admin> cfgsave

  You are about to save the Defined zoning configuration. This

  action will only save the changes on Defined configuration.

  Any changes made on the Effective configuration will not

  take effect until it is re-enabled.

  Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] yes

  Nothing changed: nothing to save, returning ...

  WOLFB300SWA:admin> zoneshow

  Defined configuration:

  cfg: WOLFB300SWA

  P750lp1_hba1_HDS2300_0a; P750lp1_hba1_HDS2300_0a

  zone: P750lp1_hba1_HDS2300_0a

  1,0; 1,3

  zone: P750lp1_hba1_HDS2300_0a

  1,0; 1,2

  Effective configuration:

  cfg: WOLFB300SWA

  zone: P750lp1_hba1_HDS2300_0a

  1,0

  1,3

  zone: P750lp1_hba1_HDS2300_0a

  1,0

  1,2

  WOLFB300SWA:admin> cfg

  cfgactvshow cfgcreate cfgenable cfgsave cfgsize

  cfgadd cfgdelete cfgmcdtmode cfgsaveactivetodefined cfgtransabort

  cfgclear cfgdisable cfgremove cfgshow cfgtransshow

  WOLFB300SWA:admin> cfgremove "WOLFB300SWA","P750lp1_hba1_HDS2300_0a"

  WOLFB300SWA:admin> zonedelete "P750lp1_hba1_HDS2300_0a"

  WOLFB300SWA:admin> zonecreate "P750_hba1_HDS2300_0a","1,0;1,3"

  WOLFB300SWA:admin> cfgadd "WOLFB300SWA","P750_hba1_HDS2300_0a"

  WOLFB300SWA:admin> cfgenable WOLFB300SWA

  You are about to enable a new zoning configuration.

  This action will replace the old zoning configuration with the

  current configuration selected. If the update includes changes

  to one or more traffic isolation zones, the update may result in

  localized disruption to traffic on ports associated with

  the traffic isolation zone changes

  Do you want to enable 'WOLFB300SWA' configuration (yes, y, no, n): [no] yes

  zone config "WOLFB300SWA" is in effect

  Updating flash ...

  WOLFB300SWA:admin> cfgsave

  You are about to save the Defined zoning configuration. This

  action will only save the changes on Defined configuration.

  Any changes made on the Effective configuration will not

  take effect until it is re-enabled.

  Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] yes

  Nothing changed: nothing to save, returning ...

  NB300SWA:admin> zoneshow

  Defined configuration:

  cfg: WOLFB300SWA

  P750lp1_hba1_HDS2300_0a; P750_hba1_HDS2300_0a

  zone: P750_hba1_HDS2300_0a

  1,0; 1,3

  zone: P750lp1_hba1_HDS2300_0a

  1,0; 1,2

  Effective configuration:

  cfg: WOLFB300SWA

  zone: P750_hba1_HDS2300_0a

  1,0

  1,3

  zone: P750lp1_hba1_HDS2300_0a

  1,0

  1,2

  WOLFB300SWA:admin>

  WOLFB300SWA:admin> zonecreate "P750_hba1_HDS2300_0a","1,0;1,3"

  WOLFB300SWA:admin> cfgadd "WOLFB300SWA","P750_hba1_HDS2300_0a"

  WOLFB300SWA:admin> cfgenable WOLFB300SWA

  WOLFB300SWA:admin> cfgsave

  创建zone主要步骤如下:

  WOLFB300SWA:admin>zonecreate “P750lp2_hba2_HDS2300_1b","2,1;2,4"

  WOLFB300SWA:admin>cfgadd “WOLFB300SWB”,” P750lp2_hba2_HDS2300_1b”

  WOLFB300SWB:admin> cfgenable WOLFB300SWB

  WOLFB300SWB:admin> cfgsave

  WOLFB300SWB:admin> cfgshow

  WOLFB300SWB:admin> zoneshow

  补充:交换机基本使用方法

  作为基本核心交换机使用,连接多个有线设备使用:网络结构如下图,基本连接参考上面的【方法/步骤1:基本连接方式 】

  作为网络隔离使用:对于一些功能好的交换机,可以通过模式选择开关选择网络隔离模式,实现网络隔离的作用,可以只允许普通端口和UPlink端口通讯,普通端口之间是相互隔离不可以通讯的

  除了作为核心交换机(中心交换机)使用,还可以作为扩展交换机(接入交换机)来扩展网络

  放在路由器上方,扩展网络供应商的网络线路(用于一条线路多个IP的网络),连接之后不同的路由器用不同的IP连接至公网

  相关阅读:交换机硬件故障常见问题

  电源故障:

  由于外部供电不稳定,或者电源线路老化或者雷击等原因导致电源损坏或者风扇停止,从而不能正常工作。

  由于电源缘故而导致机内其他部件损坏的事情也经常发生。

  如果面板上的POWER指示灯是绿色的,就表示是正常的;如果该指示灯灭了,则说明交换机没有正常供电。

  这类问题很容易发现,也很容易解决,同时也是最容易预防的。

  针对这类故障,首先应该做好外部电源的供应工作,一般通过引入独立的电力线来提供独立的电源,并添加稳压器来避免瞬间高压或低压现象。

  如果条件允许,可以添加UPS(不间断电源)来保证交换机的正常供电,有的UPS提供稳压功能,而有的没有,选择时要注意。

Brocade 6450 配置

简单说一下:



 1. 如果使用Brocade 6450的10G端口作为uplink端口,它是需要license激活才能使用的,具体如何获得license文件可以去查看一下官网http://www.brocade.com/content/html/en/software-licensing-guide/FI_08030_LICENSING/GUID-583666BE-EB5B-4F68-A38B-563792B976F5.html .



2. 下载license文件后,不要对它重命名,否则传到设备上不被识别。具体导入license的步骤:

    一、搭一个tftp服务器,这应该不难,下个tftp软件就行。

    二、把license的.xml文件拷贝到tftp的目录下

    三、在6450上运行 #copy tftp 10.10.0.1 20161220iuoo.xml unit 1

   10.10.0.1 是tftp 服务器的IP, 20161220iuoo.xml 是license文件, unit 1是stack中的unit 1.

假如你的设备不是stack 模式,那”unit 1"可以不输入,直接"copy tftp xxx.xxx.xxx.xxx ****.xml"

导入后运行“show license"查看license是否已激活。

比如:

6th-6450-stack#show license
Index      License Name              Lid          License Type    Status     License Period  License Capacity  
Stack unit 1:
1          ICX6450-10G-LIC-POD       dbxxxxxxiJ  Normal          Active     Unlimited                  2
Stack unit 5:
1          ICX6450-10G-LIC-POD       dbxxxxxxdo  Normal          Active     Unlimited                  2

使用"show pod"查看10G端口状态

6th-6450-stack#show pod

Unit-Id: 1    

PoD-ports    Lic-Available Lic-Used    
1/2/2      Yes             Yes        
1/2/4      Yes             Yes        

Unit-Id: 2    

PoD-ports    Lic-Available Lic-Used    
2/2/2      No              No         
2/2/4      No              No         

Unit-Id: 3    

PoD-ports    Lic-Available Lic-Used    
3/2/2      No              No         
3/2/4      No              No         

Unit-Id: 4    

PoD-ports    Lic-Available Lic-Used    
4/2/2      No              No         
4/2/4      No              No                                     
                                                                  
Unit-Id: 5                                                        
                                                                  
PoD-ports    Lic-Available Lic-Used                               
5/2/2      Yes             Yes                                    
5/2/4      Yes             Yes                                    
                                                                  
6th-6450-stack#



Brocade 6450上创建多端口的channel使用的是lag命令(思科中的port-channel或etherchannel)

#lag "uplink-to-core" dynamic id 1

"uplink-to-core" 一个名称而已 , dynamic 是一种模式,类似于思科交换机中的协商模式,除dynamic之外还有”keep-alive" 和"static"

#ports ethe 1/2/2 ethe 5/2/2

这一行命令是指定哪些端口属于这个channel.

#primary-port  1/2/2

注意指定主端口的时候直接用序号

#deploy

应用

因为之前我在核心交换机上设置连接该stack的port-channel的模式trunk,那在这6450上的lag id 1,它就是个trunk模式。


配置管理IP和接入层端口

#conf t

(config)#vlan 2

(config-vlan2)#tagged ethe 1/2/2 ethe 5/2/2   (stack中哪些端口是uplink)

(config-vlan2)#management-vlan             我用vlan 2作为管理vlan

(config-vlan2)#default-gateway 10.10.2.1 1  注意最后面的“1”

(config-vlan2)#ip address 10.10.2.60 255.255.255.0


因为接入层在我的环境中是vlan 60,配置:

(config)#vlan 60

(config-vlan60)#tagged ethe 1/2/2 ethe 5/2/2

(config-vlan60)#untagged ethe 1/1/1 to 1/1/48

(config-vlan60)#untagged ethe 2/1/1 to 2/1/48

untagged命令是指定哪些端口是接入模式


(config)#ethe 1/1/1 to 1/1/48

(ethe-config)#loop-detection    环路检测

(...-config)#spanning-tree 802-1w admin-edge-port    vlan树的接入口

(....-config)#stp-bpdu-guard

这个bpdu-gruad应该不需要多解释吧,CCNP里有哦。



启用DHCP Snooping

(config)#ip dhcp snooping vlan 2

(config)#ip dhcp snooping vlan 60


设置uplink端口为DHCP trust

(config)#ethe 1/2/2

(config-ethe1/2/2)#dhcp snooping trust



这样基本的配置就都差不多了,查看一下结果:

#show runn


#show lag id 1





















本文出自 “想?不想!” 博客,谢绝转载!

以上是关于brocade 300光端交换机zone划分方法教程的主要内容,如果未能解决你的问题,请参考以下文章

Brocade 300 FC交换机手机诊断日志

用VMware ThinApp解决Brocade光纤交换机无法WEB访问

光纤交换机划分ZONE 的作用、意义是啥?

求助,SAN 交换机划分ZONE的问题

华为光纤交换机划分zone

在光纤交换机中划zone是啥意思啊?