OPEN3000网络设备配置手册(Cisco) 下载本文

内容发布更新时间 : 2024/5/27 22:09:37星期一 下面是文章的全部内容请认真阅读。

OPEN3000 网络设备

(Cisco 版) 配置手册

丁未名

国电南瑞科技股份有限公司

二零零六年一月

目 录

1 2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3 4 5

Open3000系统组成结构 ........................................................................................................ 3 Open3000系统后台部分网络交换机配置 ............................................................................ 3 基本配置............................................................................................................................... 3 VLan设置 ............................................................................................................................ 4 端口设置............................................................................................................................... 4 FEC/GEC配置: ................................................................................................................ 5 SNMP配置: ...................................................................................................................... 5 HSRP配置 ........................................................................................................................... 5 其他 ...................................................................................................................................... 6 Open3000系统前置分网络交换机配置 ................................................................................ 6 实时数据库中与网络设备监控相关的表的填写 ................................................................... 7 PC工作站结点的网卡配置 .................................................................................................... 7

1 Open3000系统组成结构

Open3000系统中后台部分网络采用双以太网结构如下图所示,两台交换机相互级连,互为备份,保证了系统的可靠性。Open3000系统支持各种档次的交换机,以Cisco交换机为例,一般采用Cisco3550、3560、3750、4500等系列交换机。在Open3000系统中需要配置VLan、EthernetChannel等交换机基本功能;对于高档次交换机如Cisco 4500系列交换机,根据用户的需求,可以配置HSRP等交换机功能。Open3000系统中前置部分网络结构和后台部分类似,交换机型号一般为Cisco2950、3550、3560,连接中只是没有将两前置交换机连接的FEC/GEC。本手册以Cisco4506交换机为例,说明Open3000系统中交换机的配置过程和所使用的配置命令。

switch1

FEC/GEC

switch2

node1 node2

2 Open3000系统后台部分网络交换机配置

在进行配置前要注意交换机之间不要用网线连接,包括两台主交换机之间的连接以及连接院网,等配置完成后再进行连接。

2.1 基本配置

基本配置需要完成以下设置: 交换机机器名:

sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. switch(config)#hostname sw1 设置enable密码为cisco: sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#enable secret cisco 禁止命令解析:

sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#no ip domain-lookup

设置允许telnet登陆交换机,登陆密码为cisco: sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#line vty 0 15

sw1(config-line)#password cisco sw1(config-line)#login

2.2 VLan设置

进行vtp工作模式的设置,将vtp置于透明工作模式: sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#vtp mode transparent

在VLan接口上配置地址(主/辅地址),主地址是该交换机所在网段的地址,一般sw1主机号部分设为设为252,sw2主机号部分设为设为253;辅地址是该交换机所在网段网络号部分最后一位加6,主机号部分设为254:

sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#interface vlan 1

sw1(config-if)#ip address 168.10.101.252 255.255.0.0

sw1(config-if)#ip address 168.16.101.254 255.255.0.0 secondary sw1(config-if)#no shutdown

2.3 端口设置

对连接主机(服务器或工作站)的端口进行设置,主机连接到交换机后可以迅速的联通网络,下面的例子把第2个板上第1个端口设置为访问端口并启用速端口工作模式:

sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#interface FastEthernet 2/1 sw1(config-if)#switchport mode access sw1(config-if)#spanning-tree portfast

如果需要批量设置端口,如第2个板上第1到48口都做这样的设置 sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#interface range FastEthernet 2/1 - 48 sw1(config-if-ran)#switchport mode access sw1(config-if-ran)#spanning-tree portfast

2.4 FEC/GEC配置:

创建port-channel虚拟接口;

设置port-channel虚拟接口属性;

把物理端口加入port-channel虚拟接口形成FEC/GEC。

下面的命令先创建了1个port-channel虚拟接口1;然后将该接口trunk封装方式设置为802.1Q,工作方式设置为trunk;最后把引擎板上的两个千兆trunk的封装方式设置为802.1Q,工作方式设置为trunk并把他们加入刚才创建的port-channel 1中形成GEC。

sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#interface port-channel 1

sw1(config-if)#switchport trunk encapsulation dot1q sw1(config-if)#switchport mode trunk

sw1(config-if)#interface range GigabitEthernet1/1 - 2

sw1(config-if-range)#switchport trunk encapsulation dot1q sw1(config-if-range)#switchport mode trunk sw1(config-if-range)#channel-group 1 mode on

2.5 SNMP配置:

启用SNMP;

定义SNMP trap发送的信息类型 (linkup/linkdown); 定义SNMP trap发送的目的主机 (public/scada/fes)。

下面的命令先起用了sw1上的snmp agent,它的通信字串为public,访问方式为ro(只读);然后定制了该交换机上发送的trap消息类型为linkup linkdown(链路通断);最后定义了发送到的目的地的主机的IP地址(168.10.101.1),端口(udp端口10162),以及用于标识哪台交换机发出的标签(主机名sw1)。

sw1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. sw1(config)#snmp-server community public ro

sw1(config)#snmp-server enable traps snmp linkup linkdown sw1(config)#snmp-server host 168.10.101.1 sw1 udp-port 10162 sw1(config)#snmp-server host 168.10.101.2 sw1 udp-port 10162 sw1(config)#snmp-server host 168.10.101.3 sw1 udp-port 10162 sw1(config)#snmp-server host 168.10.101.4 sw1 udp-port 10162

2.6 HSRP配置

此部分配置只在用户有需求的情况下才需要做。 定义HSRP组;