网络配置设计说明书

网络配置设计说明书
网络配置设计说明书

湖南软件职业技术学院中小型园区网设

计与配置

目录

一项目要求 (3)

(一):背景描述 (3)

(二):项目情况 (3)

二、项目需求分析 (4)

(一):项目需求概括 (4)

(二):项目建设拓补 (5)

三、项目方案的具体设计 (6)

(一):IP地址的规划 (6)

(二):三层交换机基础配置 (7)

(三):路由器相关配置 (9)

(四):各部门访问权限设置 (11)

(五):各硬件的相关配置文件附录 (12)

(六):基于linux环境下的服务器配置 (28)

三、项目总结 (30)

一项目要求

(一):背景描述

某企业计划建设自己的企业园区网络,希望通过这个新建的网络,提供一个安全、可靠、可扩展、高效的网络环境,将两个办公地点连接到一起,使企业内能够方便快捷的实现网络资源共享、全网接入Internet等目标,同时实现公司内部的信息保密隔离,以及对于公网的安全访问。为了确保这些关键应用系统的正常运行、安全和发展,网络必须具备如下的特性:

1、采用先进的网络通信技术完成企业网络的建设,连接2个相距较远的办公地点

2、为了提高数据的传输效率,在整个企业网络内控制广播域的范围

3、在整个企业集团内实现资源共享,并保证骨干网络的高可靠性

4、企业内部网络中实现高效的路由选择

5、在企业网络出口对数据流量进行一定的控制

6、能够使用一个公网IP接入Internet

(二):项目情况

该企业的具体环境如下:

1、企业具有2个办公地点,且相距较远,公司总共大约有200台主机。

2、A办公地点具有的部门较多,例如业务部、财务部、综合部等,为主要的办公场所,因此这部分的交换网络对可用性和可靠性要求较高

3、B办公地点只有较少办公人员,但是Internet的接入点在这里

4、公司只申请到了一个公网IP地址,供企业内网接入使用

5、公司内部使用私网地址

二、项目需求分析

(一):项目需求概括

?需求1:在接入层采用三层交换机,并且要采取一定方式分隔广播域

分析1:在接入层交换机上划分VLAN可以实现对广播域的分隔划分业务部VLAN10、财务部VLAN20、综合部VLAN30,并分配接口

?需求二:核心交换机采用高性能的三层交换机,且采用双核心互为备份的形势,接入层交换机分别通过2条上行链路连接到2台核心交换机,由三层交换机实现VLAN 之间的路由

?分析二

交换机之间的链路配置为Trunk链路

三层交换机上采用SVI方式(switch virtual interface)实现VLAN之间的路由

?需求三:2台核心交换机之间也采用双链路连接,并提高核心交换机之间的链路带宽

?分析三

在2台三层交换机之间配置端口聚合,以提高带宽

?需求四:接入交换机的access端口上实现对允许的连接数量的控制,以提高网络的安全性

?分析四

采用端口安全的方式实现

?需求五:三层交换机配置路由接口,与RA、RB之间实现全网互通

?分析五

两台三层交换机上配置路由接口,连接A办公地点的路由器RA

RA和RB分别配置接口IP地址

在三层交换机的路由接口和RA,以及RB的内网接口上启用RIP路由协议,实现全网互通

?需求六:RA和B办公地点的路由器RB之间通过广域网链路连接,并提供一定的安全性

?分析六

RA和RB的广域网接口上配置PPP(点到点)协议,并用PAP认证提高安全性

?需求七:RB配置静态路由连接到Internet

?分析七

两台三层交换上配置缺省路由,指向RA

RA上配置缺省路由指向RB

RB上配置缺省路由指向连接到互联网的下一跳地址

?需求八:在RB上用一个公网IP地址实现企业内网到互联网的访问

?分析八

用NAT(网络地址转换)方式,实现企业内网仅用一个公网IP地址到互联网的访问

?需求九:在S1上对内网到外网的访问进行一定控制,要求不允许财务部访问互联网,业务部只能访问WWW和FTP服务,而综合部只能访问WWW服务,其余访问不受控制

?分析九

通过ACL(访问控制列表)实现

?需求十:在R1配置PPP拨号协议,要求通过拨号才能接入internet。

?需求十一:将交换机SW A设为服务器模式,SWB为客户机模式

通过VTP实现

(二):项目建设拓补

三、项目方案的具体设计(一):IP地址的规划

【试验设备】

路由器2811 3台

三层交换机3560-24PS 2台

PC机9台

直连/交叉线若干

DCE串口线2条

(二):三层交换机基础配置

第一步:将S1交换机VTP模式设置为服务器,口令为123456,域为s602112,并创建vnal 10 vlan 20 vlan 30,将端口1-2划分到vlan 10,3-4划分到vlan 20 5-6划分到vlan 30

第二步:把两台交换机SW-A、SW-B之间的F0/24、F0/23端口配置为聚合端口AggregatePort 1,并把AggregatePort 1配置为Trunk模式。此时对前期的VLAN、Trunk、聚合端口等的配置进行验证。

第三步:在交换机的access链路上实现端口安全,最大连接数量为4个,当违例产生时,讲关闭端口炳发送一个Trap通知。

SA:

SA(config)#interface range f0/1 - 3

SA(config-if-range)#switchport port-security maximum 4

SW-A(config-if-range)#

SB:

SB(config)#

SB(config)#interface range fastEthernet 0/1 - 3

SB(config-if-range)#switchport port-security maximum 4

SB(config-if-range)#

第四步:在三层交换机上开启路由功能,并对各网段进行宣告,关闭自动汇总,启用版本2

S1 :

s1(config)#ip routing

s1(config)#router rip

s1(config-router)#version 2

s1(config-router)#no auto-summary

s1(config-router)#network 192.168.1.0

s1(config-router)#network 192.168.20.0

s1(config-router)#network 192.168.30.0

S2:

S2(config)#ip routing

S2(config)#router rip

S2(config-router)#version 2

S2(config-router)#no auto-summary

S2(config-router)#network 192.168.2.0

S2(config-router)#network 192.168.20.0

S2(config-router)#network 192.168.30.0

第五步:配置三层交换机上的路由器端口IP地址

(三):路由器相关配置

第一步:为三台路由器各相应端口配置IP地址。

第二步:分别为路由器RA 的s0/0/0 及RB的s0/0/1 配置时钟频率为64000

RA:

ra(config)#int s0/0/0

ra(config-if)#clock rate 64000

RB:

rb(config)#int s0/0/1

ra(config-if)#clock rate 64000

第三步:根据需求配置各路由器上的静态路由或动态路由

RA:

ra(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0

ra(config)#router rip

ra(config-router)#version 2

ra(config-router)#no auto-summary

ra(config-router)#network 13.0.0.0

ra(config-router)#network 192.168.1.0

RB:

rb(config)#ip route 0.0.0.0 0.0.0.0 s0/0/1

rb(config)#router rip

rb(config-router)#version 2

rb(config-router)#no auto-summary

rb(config-router)#network 23.0.0.0

rb(config-router)#network 192.168.2.0

第四步:在R1上创建三个上网帐户,分别为gs1、gs2、密码为2013,2014并开启R1 RA RB三台路由器的PPP协议PAP认证。

R1:

r1(config)#username gs1 password 2013

r1(config)#username gs2 password 2014

r1(config)#int s0/0/0

r1(config-if)#encapsulation ppp

r1(config-if)#ppp authentication pap

r1(config-if)#exit

r1(config)#int s0/0/1

r1(config-if)#encapsulation ppp

r1(config-if)#ppp authentication pap

r1(config-if)#exit

RA:

ra(config)#int s0/0/0

ra(config-if)#encapsulation ppp

ra(config-if)#ppp pap sent-username gs1 password 2013

ra(config-if)#exit

RB:

rb(config)#int s0/0/1

rb(config-if)#encapsulation ppp

ra(config-if)#ppp pap sent-username gs2 password 2014

ra(config-if)#exit

第五步:利用NAT地址转换,使内网地址转换成公网址址访问服务器。

rb(config)#int s0/0/1

rb(config-if)#ip nat outside

rb(config-if)#exit

rb(config)#int f0/0

rb(config-if)#ip nat inside

(四):各部门访问权限设置

在交换机S1上通过ACL控制不允许财务部访问互联网,业务部只能访问WWW和FTP服务,而综合部只能访问WWW服务,

其余访问不受控制

rb(config)#access-list 100 deny tcp host 192.168.3.2 host 201.1.1.1 eq 80 rb(config)#access-list 100 permit ip host 192.168.3.2 any

rb(config)#access-list 100 permit ip any any

rb(config)#int f0/0

rb(config-if)#ip access-group 100 in

rb(config-if)#exit

(五):各硬件的相关配置文件附录

R1:

r1#sh running-config

Building configuration...

Current configuration : 875 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname r1

!

!

!

!

!

!

!

!

username gs1 password 0 2013

username gs2 password 0 2014

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

interface FastEthernet0/0

ip address 201.1.1.254 255.255.255.0 duplex auto

speed auto

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 13.1.1.254 255.255.255.0 encapsulation ppp

ppp authentication pap

!

interface Serial0/0/1

ip address 23.1.1.254 255.255.255.0 encapsulation ppp

ppp authentication pap

!

interface Vlan1

no ip address

shutdown

!

router rip

version 2

network 13.0.0.0

network 23.0.0.0

network 201.1.1.0

no auto-summary

!

ip classless

!

!

!

no cdp run

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

RA:

ra#sh running-config

Building configuration...

Current configuration : 855 bytes

!

version 12.4

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption

!

hostname ra

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

interface FastEthernet0/0

ip address 192.168.1.254 255.255.255.0 duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.2.254 255.255.255.0 duplex auto

speed auto

!

interface Serial0/0/0

ip address 13.1.1.1 255.255.255.0 encapsulation ppp

ppp pap sent-username gs1 password 0 2013 clock rate 64000

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router rip

version 2

network 13.0.0.0

network 192.168.1.0

network 192.168.2.0

no auto-summary

!

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0/0/0

!

!

!

no cdp run

!

!

!

!

!

line con 0

!

!

line vty 0 4

login

!

!

!

end

RB:

rb#sh running-config

Building configuration...

Current configuration : 1284 bytes

!

version 12.4

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption

!

hostname rb

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

interface FastEthernet0/0

ip address 192.168.3.254 255.255.255.0 ip access-group 100 in

ip nat inside

speed auto

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

!

interface Serial0/0/0

no ip address

ip access-group 101 out

shutdown

!

interface Serial0/0/1

ip address 23.1.1.1 255.255.255.0

encapsulation ppp

ppp pap sent-username gs2 password 0 2014

ip nat outside

clock rate 64000

!

interface Vlan1

no ip address

shutdown

!

router rip

version 2

network 23.0.0.0

network 192.168.2.0

network 192.168.3.0

no auto-summary

!

ip nat inside source list 1 interface Serial0/0/1 overload

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0/0/1

!

!

access-list 1 permit any

access-list 100 deny tcp host 192.168.3.2 host 201.1.1.1 eq www access-list 100 permit ip host 192.168.3.2 any

access-list 100 permit ip any any

access-list 101 deny tcp host 192.168.3.3 host 201.1.1.1 eq ftp access-list 101 permit ip host 192.168.3.3 any

access-list 101 permit ip any any

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

S1

s1#sh running-config

Building configuration...

Current configuration : 1829 bytes

!

version 12.2

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption

!

hostname s1

!

!

!

!

!

ip routing

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst !

!

!

!

interface FastEthernet0/1 switchport access vlan 10 switchport mode access !

interface FastEthernet0/2 switchport access vlan 10 switchport mode access !

interface FastEthernet0/3 switchport access vlan 20 switchport mode access !

interface FastEthernet0/4 switchport access vlan 20 switchport mode access !

interface FastEthernet0/5 switchport access vlan 30 switchport mode access !

interface FastEthernet0/6 switchport access vlan 30 switchport mode access !

interface FastEthernet0/7 !

interface FastEthernet0/8 !

interface FastEthernet0/9 !

interface FastEthernet0/10 !

interface FastEthernet0/11 !

interface FastEthernet0/12 !

interface FastEthernet0/13

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

switchport mode trunk

!

interface FastEthernet0/23

switchport mode trunk

!

interface FastEthernet0/24

no switchport

ip address 192.168.1.1 255.255.255.0 duplex auto

speed auto

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan10

ip address 192.168.10.254 255.255.255.0 !

interface Vlan20

ip address 192.168.20.254 255.255.255.0 !

interface Vlan30

相关主题
相关文档
最新文档