DCRS-7500系列核心路由交换机
快速安装指南
神州数码(上海)网络有限公司
目录
第一章安装 (3)
第二章安装三层功能许可 (5)
第三章基本参数设置 (9)
第四章配置虚拟网络(VLAN) (12)
第五章配置路由接口 (15)
第六章路由设置 (16)
第七章访问策略(ACCESS POLICY) (18)
第八章热备份 (19)
第九章组播 (20)
第十章其他功能 (21)
第一章安装
1.第一次打开包装
包装明细:
1。交换机一台
2。电源线一根
3。机箱安装配件一套
4。CD-ROM(包括说明书)
5。保修卡
2.安装调试环境:
1。一台网络工作站(安装有RJ-45接口网卡),运行超级终端程序
2。一条直通EIA/TIA DB-9 串行(F/F)电缆.
3。一条直通EIA/568B RJ-45电缆。
3.用户环境要求:
1。电源、机柜必须有良好的接地。
2。提供 220 V 10A-15A 电源。
3。工作环境温度必须低于40摄氏度。
4。确信交换机的前、后、侧面的通风口处没有堵塞。
5。确信交换机所有的未安装模块的空插槽都有挡板遮护。
4.模块安装:
1。必须带防静电手镯,防静电手镯必须良好接地。
2。模块支持热插拔。
3。下电安装模块,交换机重新启动后可以自动识别新模块。
4。在交换机运行中,在原来插槽插拔新类型的模块时,需要重新设置。
module
然后运行write memor y 存储
reload 重新启动
5。在交换机运行中,在空插槽安装模块时,不需要以上设置。
5.进行初始化配置:
1。一台PC机,并运行终端仿真程序,设置串口为以下参数:
Baud: 9600 bps
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
按“回车键”,即可进入配置界面:
DCRS-7504>
这时你进入到了基本配置界面(EXEC at the User level),你仅仅可以察看一部分系统配置和参数。
键入:
DCRS7504>enable 回车
可以进入特权用户配置界面(EXEC at the Privileged level),缺省没有密码,但是建议用户设置。
DCRS-7504#
在这个界面下,用户可以察看系统参数,存储配置,重新启动交换机等。
键入:
DCRS-7504# config t 回车
DCRS-7504 (config)#
可以进入配置模式(The configuration level),在这个模式下可以配置交换机的大部分参数。
在配置模式下,可以设置特权用户的类型和口令。
1。设置超级用户口令(可以进行任何配置)
DCRS-7504 (config)# enable super-user-password
注意: 你必须首先设置超级用户的口令才可以设置另外的用户类型。
2。设置仅配置端口用户口令
DCRS-7504 (config)# enable port-config-password
3。设置只读用户口令
DCRS-7504 (config)# enable read-only-password
6. 设置交换机的IP地址:
为了能够在远程管理该交换机,需要为其配置网管IP地址(在三层模式下,需要配置IP 子网)。
在二层模式下:
DCRS-7504> enable
DCRS-7504# config t
DCRS-7504 (config)# ip address 192.168.1.2 255.255.255.0 设置IP地址。
DCRS-7504 (config)# ip default-gateway 192.168.1.1 配置缺省网关
在三层模式下:
DCRS-7504> enable
DCRS-7504# config t
DCRS-7504 (config)# int e 1/5
DCRS-7504 (config-if-1/5)# ip address 192.168.1.1 255.255.255.0
在基本配置模式下用ping 192.168.1.1 可以验证配置是否成功。
DCRS-7504I> ping 192.168.1.1
然后用户可以通过:Telnet、Web、网管软件进行配置。
下面我们将分几个章节论述该交换机的主要功能的配置,详细的配置和原理请查阅我们的用户使用手册。
第二章安装三层功能许可1.首先按照图2-1安装三层功能许可芯片
图 2-1 2.进入PC的超级终端,设置参数如下:
Baud: 9600 bps
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
3.升级三层软件代码
SW-DCRS-7504>
SW-DCRS-7504>en
进入超级管理模式
No password has been assigned yet...
出厂时DCRS-7500没有开机密码
SW-DCRS-7504#sh ver
显示DCRS-7500软硬件版本
SW: Version 07.5.01T51 Digital China Ltd.
Compiled on Dec 27 2001 at 04:08:49 labeled as D2S07501
(2059268 bytes) from Primary d2s07501.bin
现在启动的是主FLASH软件d2s07501.bin (神州数码二层交换系统版本 07.5.01) DCRS-7504
HW: DCRS-7504 Router, SYSIF version 21
硬件版本:DCRS-7504 路由交换机,版本21
==========================================================================
SL 1: MRS-7500-M4GS Fiber Management Module, SYSIF 2, ACTIVE
插槽1:CPU管理模块-7500-4端口千兆多模光纤交换路由模块
Serial #: , CH2301994
2048 KB BRAM, SMC version 1, ICBM version 21
128 KB PRAM(128K+0K) and 2048*1 CAM entries for DMA 0, version 0209
128 KB PRAM(128K+0K) and shared CAM entries for DMA 1, version 0209
==========================================================================
SL 2: MRS-7500-24TX Copper Switch Module
插槽2:24端口10/100Mbps 双绞线交换路由模块
Serial #: Non-exist.
2048 KB BRAM, SMC version 2, ICBM version 21
128 KB PRAM(128K+0K) and 2048*1 CAM entries for DMA 4, version 0808
128 KB PRAM(128K+0K) and shared CAM entries for DMA 5, version 0808
128 KB PRAM(128K+0K) and shared CAM entries for DMA 6, version 0808
==========================================================================
Active management module:
240 MHz Power PC processor 603 (version 7/1201) 66 MHz bus
512 KB boot flash memory
8192 KB code flash memory
128 MB DRAM
The system uptime is 9 seconds
The system : started=warm start reloaded=by "reload"
SW-DCRS-7504#sh flash
显示主辅FLASH软件版本情况
Active management module:
Code Flash Type: AMD 29F032B, Size: 64 * 65536 = 4194304, Unit: 2
Boot Flash Type: AMD 29F040, Size: 8 * 65536 = 524288
Compressed Pri Code size = 2059268, Version 07.5.01T51 (d2s07501.bin)
主FLASH d2s07501.bin二层交换代码
Compressed Sec Code size = 2059268, Version 07.5.01T51 (d2s07501.bin)
辅FLASH d2s07501.bin二层交换代码
Maximum Code Image Size Supported: 3866112 (0x003afe00)
Boot Image size = 148856, Version 07.02.02 (m2b07202.bin)
启动代码版本07.02.02
SW-DCRS-7504#sh run
显示当前配置文件
Current configuration:
!
ver 07.5.01T51
module 1 fi-4-port-gig-management-module
module 2 fi-24-port-copper-module
!
end
SW-DCRS-7504#conf t
进入终端配置模式
SW-DCRS-7504(config)#ip address 200.1.1.155/24
为二层交换机配置管理 IP 地址
SW-DCRS-7504(config)#exit
退出终端配置模式
SW-DCRS-7504#copy tftp flash 200.1.1.156 d2r07501.bin prim
拷贝tftp 服务器(IP 地址200.1.1.156)上的文件d2r07501.bin(三层软件代码)到主FLASH。
拼写:拷贝从tftp到flash tftp-server ip 要拷贝的文件名主或辅FLASH
SW-DCRS-7504#Flash Erase (first 2 Meg)-------------------------------
Flash Memory Write (8192 bytes per dot) ................................ Flash Erase (2 Meg more, Normal process) --------------------------
Flash Memory Write (8192 bytes per dot) ..............................
TFTP to Flash Done.
拷贝完成。
SW-DCRS-7504#reload
重新启动
Are you sure? (enter 'y' or 'n'): y
确认是否重新启动 yes
Running Config data has been changed. Do you want to continue
the reload without saving the running config? (enter 'y' or 'n'): y
提示当前的配置文件已经被修改,问是否不存储就重新启动?yes
显示启动信息
DCRS-7504>
DCRS-7504>en
进入超级管理模式
No password has been assigned yet...
出厂时DCRS-7500没有开机密码
DCRS-7504#sh ver 察看软件版本已经升级
SW: Version 07.5.01T53 Digital China Ltd.
Compiled on Dec 27 2001 at 04:36:30 labeled as D2R07501
(3491139 bytes) from Primary d2r07501.bin
启动主FLASH软件版本为d2r07501.bin(神州数码三层交换软件代码版本 07.5.01) DCRS-7504
HW: DCRS-7504 Router, SYSIF version 21
==========================================================================
注意:当交换机的软件代码由二层转变为三层以后原来为二层代码设置的管理IP会丢
失,需要重新设置基于三层IP地址!
第三章基本参数设置
1. 设置IP地址:
DCRS-7504>
DCRS-7504>en进入超级管理模式
DCRS-7504#conf t
DCRS-7504(config)#sh run
Current configuration:
!
ver 07.5.01T53
module 1 fi-4-port-gig-management-module
module 2 fi-24-port-copper-module
!
end
指定端口2/21为管理端口并设置IP地址
DCRS-7504(config)#interface e 2/21
DCRS-7504(config-if-e100-2/21)#ip address 200.1.1.155/24
DCRS-7504(config-if-e100-2/21)#exit
2. 配置基本参数
注意:为了更好的使用DCRS-7504,我们需要修改部分系统配置参数:DCRS-7504(config)#system-max multicast-route 256
Please save configuration and reload
修改该项目后需要重新启动
DCRS-7504(config)#system-max ip-filter-port 64
Please save configuration and reload
DCRS-7504(config)#system-max ip-filter-sys 256
Please save configuration and reload
DCRS-7504(config)#system-max l3-vlan 128
Please save configuration and reload
DCRS-7504(config)#system-max ip-static-route 256
Please save configuration and reload
DCRS-7504(config)#system-max vlan 512
Please save configuration and reload
DCRS-7504(config)#system-mx virtual-interface 512
Please save configuration and reload
DCRS-7504(config)#ip dont-use-acl
DCRS-7500(config)# system-max subnet-per-interface 64
DCRS-7500(config)# write memory
DCRS-7500(config)# exit
DCRS-7500# reload
DCRS-7500(config)# system-max subnet-per-system 512
DCRS-7500(config)# write memory
DCRS-7500(config)# exit
DCRS-7500# reload
3. 设置开机密码:
DCRS-7504(config)#enable super-user-password dcrs7504
4.设置Telnet登录密码:
DCRS-7504(config)#enable telnet password dcrs7504
设置Web界面管理登录密码:
注意Web界面管理缺省用户/密码是:
只读:用户名:get
密码:public
读写:用户名: set
密码:由下面命令指定
5. 设置Web管理界面可读写密码:
DCRS-7504(config)#snmp-server community dcrs7504 rw
由于Web管理界面容易受到攻击,因此配置完成以后,推荐关闭Web 管理。
DCRS-7504(config)#no web-management
当需要配置时再打开
DCRS-7504(config)#web-management
6.存储配置:
DCRS-7504(config)#exit
DCRS-7504#wr mem
DCRS-7504#.Write startup-config in progress.
正在存储
.Write startup-config done.
存储完毕
DCRS-7504#reload
重新启动
Are you sure? (enter 'y' or 'n'): y Halt and reboot
至此DCRS-7504的初始化配置完毕。
第四章配置虚拟网络(VLAN)
该设备支持以下的VLAN类型:
1。二层基于端口的 VLAN s(port vlan) - 设置物理端口的集合,隔绝二层广播域。
2。基于三层协议的 VLANs (protocol vlan)- 在基于端口VLAN下的子接口,用来隔绝指定协议的三层广播域。
3。基于IP 子网 VLANs (ip sub-net)- 在基于端口VLAN下的子接口,用来隔绝指定IP 子网的广播域。
4。基于IPX 网络的 VLANs(ipx network) - 在基于端口VLAN下的子接口,用来隔绝指定IPX网络的广播域。
注意: 基于协议的 VLANs 是不同的从 IP sub-net, IPX network。
一个端口基础的VLAN 不能同时包含一个 IP sub-net, IPX network VLAN 和一个基于相同协议的基于协议的VLAN 。例如:一个基于端口的VLAN 不能同时包含一个基于IP 协议的 VLAN and 一个基于IP sub-net的VLAN。
基于端口的VLAN配置:
缺省配置中交换机的所有端口都属于Default VLAN ,VLAN ID为1。
当配置新的VLAN时,相应的端口会自动从Default VLAN中被排除,加入到新的VLAN 中。
如果需要一个或多个端口同时属于多个Port-Base VLAN,需要启用IEEE802.1Q协议并在公共端口上加上802.1Q标记(Tag)。
交换机的Spanning-Tree(生成树),缺省是基于VLAN的,可以在不同的VLAN中启用或禁止。
DCRS-7504>en
Password:
输入开机密码
DCRS-7504#sh run
察看当前配置
Current configuration:
!
ver 07.5.01T53
ip dont-use-acl
!
module 1 fi-4-port-gig-management-module
module 2 fi-24-port-copper-module
!
system-max multicast-route 256
system-max ip-filter-port 64
system-max ip-filter-sys 256
system-max l3-vlan 128
system-max ip-static-route 256
system-max vlan 512
system-max virtual-interface 512
!
enable telnet password .....
enable super-user-password .....
snmp-server community ..... rw
interface ethernet 2/21
ip address 200.1.1.155 255.255.255.0
!
end
VLAN2 Teacher VLAN3 Student
1 Tag 图例
2 3 4 5 6 7 8
建立VLAN:
DCRS-7504(config)#vlan 2 name teacher by port
设置VID(VLAN ID)为2,名称为teacher 的基于端口的VLAN
DCRS-7504(config-vlan-2)#tagged e 2/1
设置端口2/1为使用IEEE802.1Q 标记的端口(一般用作多个VLAN 的公用端口) 使端口2/1属于VID 2
DCRS-7504(config-vlan-2)#untagged e 2/2 to 2/4
配置端口 2/2 到 2/4 为普通端口 VID为2
DCRS-7504(config-vlan-2)#exit
DCRS-7504(config)#vlan 3 name student by port
设置VID 为3,名称为student 的基于端口的VLAN
DCRS-7504(config-vlan-3)#tagged e 2/1
设置端口2/1为使用IEEE802.1Q标记的端口(一般用作多个VLAN的公用端口)使端口2/1属于VID 3
DCRS-7504(config-vlan-3)#untagged e 2/5 to 2/8
配置端口 2/5 到 2/8 为普通端口 VID 为 3
DCRS-7504(config-vlan-3)#exit
第五章配置路由接口
有两种路由接口:基于VLAN的和基于端口的。
基于端口的路由接口设置(仅支持三层路由交换):
DCRS-7504(config)#interface e 2/21
DCRS-7504(config-if-e100-2/21)#ip address 200.1.1.155/24 DCRS-7504(config-if-e100-2/21)#route-only
DCRS-7504(config-if-e100-2/21)#exit
基于VLAN的路由接口设置:
DCRS-7504(config)#vlan 2
进入VLAN 2
DCRS-7504(config-vlan-2)#router-interface ve 2
为VLAN 2 建立路由接口ve2
DCRS-7504(config-vlan-2)#exit
DCRS-7504(config)#vlan 3
进入VLAN 3
DCRS-7504(config-vlan-3)#router-interface ve 3
为VLAN 3 建立路由接口ve3
DCRS-7504(config-vlan-3)#exit
为虚拟路由接口配置IP地址
DCRS-7504(config)#int ve 2
进入路由接口2
DCRS-7504(config-vif-2)#ip address 192.168.2.1/24
配置IP地址
DCRS-7504(config-vif-2)#exit
DCRS-7504(config)#int ve 3
进入路由接口3
DCRS-7504(config-vif-3)#ip address 192.168.3.1/24
配置IP地址
DCRS-7504(config-vif-3)#exit
第六章路由设置
DCRS-7504支持静态路由、RIP、OSPF
配置静态路由协议:
DCRS-7504(config)#ip route 10.0.2.0 255.255.255.0 10.0.255.3
配置动态路由协议:
配置RIP协议:
打开基本RIP路由需要以下三步:
1. 在全局配置模式打开 RIP
2. 为每个路由接口指定IP 地址和掩码。
3. 打开端口上的路由协议。
DCRS-7504(config)# router rip
DCRS-7504(config-rip-router)# interface ve2
DCRS-7504(config-vif-2)# ip addr 192.168.2.0 255.255.255.0
DCRS-7504(config-vif-3)# int ve 3
DCRS-7504(config-vif-3)# ip addr 192.168.3.0 255.255.255.0 DCRS-7504(config-vif-3)# ip rip v2-only
DCRS-7504(config-if-18)# exit
DCRS-7504(config)# wr mem
配置OSPF协议:
有4个基本步骤:
1) 在全局模式下打开 OSPF
2) 定义 IP 地址和掩码到接口
3) 定义一个或多个 OSPF 区域
4) 指定接口到一个区域
DCRS-7504(config)#router ospf
打开ospf 动态路由协议
DCRS-7504(config-ospf-router)#area 0.0.0.0
配置区域
DCRS-7504(config-ospf-router)# redistribution connection
路由重分配
DCRS-7504(config-ospf-router)#exit
DCRS-7504(config)#int ve 2
进入需要传输ospf协议的路由接口
DCRS-7504(config-vif-2)#ip ospf area 0.0.0.0
配置ve 2接口连接ospf 区域0.0.0.0
配置ve 3 使用ospf
DCRS-7504(config)#int ve 3
DCRS-7504(config-vif-3)#ip ospf area 0.0.0.0 DCRS-7504(config-vif-3)#exit
第七章访问策略(ACCESS POLICY)
在三层模式下DCRS-7504仅能使用访问策略,因此必须使用以下命令指定:
DCRS-7504(config)# ip dont-use-acl
DCRS-7504(config)# exit
DCRS-7504# wr mem
DCRS-7504# reload
访问策略拼写:
建立系统访问策略
ip access-policy
在接口上应用访问策略
ip access-policy-group
下面举例说明访问策略的使用:
建立一个单向访问的应用,192.168.2.0网段可以访问192.168.3.0的网段,但是192.168.3.0的网段不能访问192.168.2.0的网段。
另外,这两个网段都可以访问其他的网段。
在配置模式下建立访问策略列表:
DCRS-7504(config)#ip access-policy 2 deny 192.168.2.0 255.255.255.0 192.168.3.0 255.255.255.0 tcp established
DCRS-7504(config)#ip access-policy 3 permit any any
将访问策略列表应用到虚拟接口:
DCRS-7504(config)#int ve 2
DCRS-7504(config-vif-2)#ip access-policy-group in 2 to 3
在路由接口ve2上应用访问策略2和3。
DCRS-7504(config-vif-2)#exit
DCRS-7504(config)#wr mem
存储配置
DCRS-7504(config)#.Write startup-config in progress.
.Write startup-config done.
DCRS-7504(config)#exit
DCRS-7504#reload
Are you sure? (enter 'y' or 'n'): y
Halt and reboot
第八章热备份
采用VRRP –虚拟路由冗余协议 -RFC2338
Master:
DCRS-7504(config)#router vrrp
DCRS-7504(config)#int e2/6
DCRS-7504(config-if-e100-2/6)#ip address 192.53.5.1/24
DCRS-7504(config-if-e100-2/6)#ip vrrp vrid 1
DCRS-7504(config-if-e100-2/6-vrid-1)#owner track-priority 20
DCRS-7504(config-if-e100-2/6-vrid-1)#track-port e 2/4
DCRS-7504(config-if-e100-2/6-vrid-1)#ip address 192.53.5.1
DCRS-7504(config-if-e100-2/6-vrid-1)#activate
VRRP router 1 for this interface is activating
DCRS-7504(config-if-e100-2/6)#
Backup:
DCRS-7504(config)#router vrrp
DCRS-7504(config)#int e 2/5
DCRS-7504(config-if-e100-2/5)#ip address 192.53.5.3/24
DCRS-7504(config-if-e100-2/5)#ip vrrp vrid 1
DCRS-7504(config-if-e100-2/5-vrid-1)#backup priority 100 track-priority 19 DCRS-7504(config-if-e100-2/5-vrid-1)#track-port e 2/2
DCRS-7504(config-if-e100-2/5-vrid-1)#ip address 192.53.5.1
DCRS-7504(config-if-e100-2/5-vrid-1)#activate
VRRP router 1 for this interface is activating
DCRS-7504(config-if-e100-2/5)#
第九章组播
DCRS-7504支持组播路由协议:PIM-SM、PIM-DM、DVMRP
1.PIM-DM (协议无关组播协议——密集型)
DCRS-7504(config)#ip multicast-routing
DCRS-7504(config)#router pim
PIM enabled for next power cycle.
Please save configuration to flash and reboot. DCRS-7504(config-pim-router)#exit
DCRS-7504(config)#int ve 2
DCRS-7504(config-vif-2)#ip pim
DCRS-7504(config-vif-2)#exit
DCRS-7504(config)#exit
DCRS-7504#wr mem
DCRS-7504#.Write startup-config in progress.
.Write startup-config done.
DCRS-7504#reload
2.PIM-SM(协议无关组播协议-稀疏型)
DCRS-7504(config)#ip multicast-routing
DCRS-7504(config)#router pim
PIM enabled for next power cycle.
Please save configuration to flash and reboot. DCRS-7504(config-pim-router)#exit
DCRS-7504(config)#int ve 2
DCRS-7504(config-vif-2)#ip pim-sparse
DCRS-7504(config-vif-2)#exit
DCRS-7504(config)#exit
DCRS-7504#wr mem
DCRS-7504#.Write startup-config in progress.
.Write startup-config done.
DCRS-7504#reload
3.DVMRP (距离矢量组播路由协议)
DCRS-7504(config)#ip multicast-routing
DCRS-7504(config)#router dvmrp
DVMRP enabled for next power cycle.
Please save configuration to flash and reboot. DCRS-7504(config-dvmrp-router)#exit
DCRS-7504(config)#int ve 3
DCRS-7504(config-vif-3)#ip dvmrp
DCRS-7504(config-vif-3)#exit
DCRS-7504(config)#exit
DCRS-7504#wr mem
DCRS-7504#.Write startup-config in progress.
.Write startup-config done.
DCRS-7504#reload