文档信息:
版权说明
关于本手册的版权归属
本技术文档所有权利归北京中科大洋科技发展股份有限公司所有。未经北京中科大洋科技发展股份有限公司的书面许可,任何其他个人或组织均不得以任何形式将本文档的详细数据和说明转载、复制、编辑或发布使用于其他任何场合;也不得把其中任何形式的资讯散发给其他方。非本公司的,其他第三方不可把这些信息在其他的服务器或文档中作镜像复制或保存。凡有意转载或使用本文档信息资料都属于违法行为,中科大洋科技发展有限公司有权追究其法律责任。
北京中科大洋科技发展股份有限公司
DELL PowerConnect 5524交换机配置手册
目录
版权说明 (2)
DELL POWERCONNECT 5524交换机配置手册 (3)
1.背景描述 (4)
2.此配置手册使用范围 (4)
3.DELL 55XX系列交换机登陆初始配置 (4)
3.1.使用CONSOLE口登陆方式 (4)
3.2.基础命令 (6)
4.创建VLAN (8)
4.1.创建一个基于端口的V LAN (8)
4.2.将一个端口退出V LAN (10)
4.3.删除一个V LAN (10)
5.配置链路聚合 (11)
5.1.创建一个静态链路聚合 (11)
5.2.创建一个LACP动态链路聚合 (12)
6.开启端口FLOWCONTROL 、SPANNING-TREE、和PORT-FAST (12)
6.1.开启或者关闭F LOWCONTROL功能 (12)
6.2.开启或者关闭PORT-FAST功能 (13)
7.ISCSI模式 (13)
8.保存设置 (14)
1. 背景描述
DELL 5524交换机为5424交换机的升级产品,配置命令有了较大的改变,本手册根据DELL 5524新版交换机操作系统命令进行配置指导。
2. 此配置手册使用范围
此配置手册使用于DELL PowerConnect 55XX系列交换机,如是其他系列交换机,请先参考操作手册。此配置手册介绍了55XX交换机初始配置,VLAN设置,trunk设置、spanning-tree设置、portfast设置方法。其他功能设置请参考交换机操作手册
3. DELL 55XX系列交换机登陆初始配置
3.1. 使用console口登陆方式
第一步:如图所示,建立本地配置环境,只需将PC机(或终端)的串口通过配置电缆与以太网交换机的Console口连接。
PC
通过Console口搭建本地配置环境
第二步:在PC机上运行终端仿真程序(如Windows 3.X的Terminal或Windows 9X/Windows 2000/Windows XP的超级终端等,以下配置以Windows XP为例),选择与交换机相连的串口,设置终端通信参数:传输速率为9600bit/s、8位数据位、1位停止位、无校验和无流控,如下图所示。
新建连接
连接端口设置
端口通信参数设置
第三步:以太网交换机上电,终端上显示设备自检信息,自检结束后提示用户键入回车,之后将出现命令行提示符(console>),如下图所示。
以太网交换机配置界面
3.2. 基础命令
1) 进入配置模式
console> enable
console#(这时>会变成#)
2) 退出配置模式
console#exit
console>
3) 查看当前交换机版本
console> show version
Unit SW version Boot version HW version ------------------- ------------------- ------------------- -------------------
1 4.0.0.3 1.0.0.1
2 00.00.02
4) 显示当前运行配置
console> enable
console# show running-config
系统会显示当前交换机运行的配置信息
5) 选择一个以太网口进行配置
console> enable
console# configure terminal
console(config)# interface gigabitethernet 1/0/1
这样就进入了交换机的端口1
console(config-if)# flowcontrol on
开启了这个端口的flowcontrol功能
console# show interfaces configuration gigabitethernet 1/0/1
Flow Admin Back Mdix Port Type Duplex Speed Neg control State Pressure Mode -------- ------------ ------ ----- -------- ------- ----- -------- ----
gi1/0/1 1G-Copper Full 1000 Enabled On Up Disabled Auto 系统显示该端口的flowcontrol功能已经开启
6) 选择多个以太网口进行配置
console> enable
console# configure terminal
console(config)# interface range gigabitethernet 1/0/1 – 24
console(config-if-range)#
这样就对于所有24个端口进行配置
console(config-if-range)# flowcontrol on
开启了所有24个端口的flowcontrol功能
4. 创建Vlan
4.1. 创建一个基于端口的Vlan
注意:Vlan ID,DELL交换机的ID 1默认是交换机缺省Vlan,所以当真正需要配置Vlan
时,ID号请从2开始。这里的VlAN是基于端口的配置,高级配置请参考手册。
创建VLAN11和VLAN12,将端口GigabitEthernet 1/0/1 –4放入到VLAN11中,GigabitEthernet 1/0/13 – 16放入到VLAN12中
console> enable
console# configure terminal
console(config)# vlan database
console(config-vlan)# vlan 11
创建VLAN 11
console(config-vlan)# vlan 12
创建VLAN12
console# configure terminal
console(config)# interface vlan 11
console(config-if)# name test1
将VLAN11取名为test1
console(config-if)#exit
console(config)#
退出VLAN11配置
console(config)# interface vlan 12
console(config-if)# name test2
进入VLAN12配置,将VLAN12取名为test2
console(config-vlan)# end
退出到配置模式
console# show vlan
显示当前VLAN
Vlan Name Tagged Ports UnTagged Ports Type Authorization
Dayang Research 第8 页总14 页
---- ------------ ------------------ ------------------ --------- -------------
1 1 gi1/0/1-24, Default Required
te1/0/1-2
11 test1 permanent Required
12 test2 permanent Required
接下来,将规划的端口加入到VLAN中,这里使用range的操作方式,如果是单一的端口,选择一个端口就可以了
首先配置VLAN11
console# configure terminal
console(config)# interface range gigabitethernet 1/0/1 – 4
console(config-if-range)# switchport mode access
console(config-if-range)# switchport access vlan 11
console(config-if-range)#end
console(config)#
配置VLAN12
console# configure terminal
console(config)# interface range gigabitethernet 1/0/13 – 16
console(config-if-range)# switchport mode access
console(config-if-range)# switchport access vlan 12
console(config-if-range)#end
console(config)#
检查配置
console#show vlan
Vlan Name Tagged Ports UnTagged Ports Type Authorization
---- ------------ ------------------ ------------------ --------- -------------
1 1 gi1/0/5-12, Default Required
gi1/0/17-24,
te1/0/1-2
11 test1 gi1/0/1-4 permanent Required
12 test2 gi1/0/13-16 permanent Required
配置完成
4.2. 将一个端口退出Vlan
将端口1从VLAN 11中退出
console# configure terminal
console(config)# interface gigabitethernet 1/0/1
console(config-if)#no switchport access vlan
console(config-if)#end
console#
查看交换机VLAN配置,端口1已经从VLAN 11中退出了
console#show vlan
Vlan Name Tagged Ports UnTagged Ports Type Authorization
---- ------------ ------------------ ------------------ --------- -------------
1 1 gi1/0/1, Default Required
gi1/0/5-12,
gi1/0/17-24,
te1/0/1-2
11 test1 gi1/0/2-4 permanent Required
12 test2 gi1/0/13-16 permanent Required 4.3. 删除一个Vlan
首先要将所有的端口从VLAN中退出,接下来删除VLAN,通过命令可以看到,VLAN11中已经没有端口了
console#show vlan
Vlan Name Tagged Ports UnTagged Ports Type Authorization
---- ------------ ------------------ ------------------ --------- -------------
1 1 gi1/0/1-12, Default Required
gi1/0/17-24,
te1/0/1-2
11 test1 permanent Required
12 test2 gi1/0/13-16 permanent Required
删除VLAN11
console# configure terminal
console(config)#vlan database
console(config-vlan)#no vlan 11
console(config-vlan)#end
console#
查看VLAN配置,VLAN11已经没有了
console#show vlan
Vlan Name Tagged Ports UnTagged Ports Type Authorization
---- ------------ ------------------ ------------------ --------- -------------
1 1 gi1/0/1-12, Default Required
gi1/0/17-24,
te1/0/1-2
12 test2 gi1/0/13-16 permanent Required
5. 配置链路聚合
说明:DELL 5524交换机可以使用手动创建链路聚合,也可以使用LACP协议进行链路聚合。将交换机19-20端口设定为静态链路聚合,将21-22端口设定为LACP动态链路聚合。DELL 55xx系列交换机默认只能创建32个链路聚合组,每个组里最大只能有8个端口。因此静态链路聚合使用组1,而LACP链路聚合使用组2
5.1. 创建一个静态链路聚合
console# configure terminal
console(config)# interface range gigabitethernet 1/0/19-20
console(config-if-range)#channel-group 1 mode on
console(config-if)#end
console#
5.2. 创建一个LACP动态链路聚合
console# configure terminal
console(config)#lacp system-priority 120
console(config)# interface range gigabitethernet 1/0/19-20
console(config-if-range)#lacp port-priority 247
console(config-if-range)#lacp timeout long
console(config-if)#end
console#
设置好了属性,下面开始创建聚合组
console# configure terminal
console(config)# interface range gigabitethernet 1/0/21-22
console(config-if-range)#channel-group 2 mode auto
console(config-if)#end
console#
6. 开启端口Flowcontrol 、Spanning-Tree、和port-fast
说明:Spanning-Tree模式在DELL 5524交换机中默认开启,为RSTP模式。因此这里只讲述开启端口Flowcontrol与port-fast
6.1. 开启或者关闭Flowcontrol功能
以下以配置端口1为举例
console# configure terminal
console(config)# interface gigabitethernet 1/0/1
console(config-if)# flowcontrol on
console(config-if)#end
console#
关闭Flowcontrol则为以下操作
console# configure terminal
console(config)# interface gigabitethernet 1/0/1
console(config-if)# flowcontrol off
console(config-if)#end
console#
注意:致该端口重启。如果是批量端口,请使用range命令
6.2. 开启或者关闭port-fast功能
以下以配置端口1为举例
console# configure terminal
console(config)# interface gigabitethernet 1/0/1
console(config-if)# spanning-tree portfast
console(config-if)#end
console#
关闭port-fast则为以下操作
console# configure terminal
console(config)# interface gigabitethernet 1/0/1
console(config-if)# no spanning-tree portfast
console(config-if)#end
console#
注意:用于链路聚合的端口不能开启port-fast。如果是批量端口,请使用range命令
7. iSCSI模式
DELL 交换机现在具有iSCSI优化配置功能,下面是开启iSCSI模式
console# configure terminal
console(config)#iscsi enable
8. 保存设置
说明:DELL 5524交换机在更改好配置后,需要对当前配置进行保存,否则,在没有保存配置的情况下,交换机断电或者重启之后,更改的配置消息,交换机恢复到出厂值。保存配置操作如下:
console# write memory
Overwrite file [startup-config] ?[Yes/Press any key for no] yes
系统就开始将配置写入到启动配置中,交换机会重启,起用新的配置文件