基于eNSP的校园网设计的仿真模拟

摘 要
基于策略的路由是一种比基于目的网络的路由更灵活的数据包路由和转发机制。路由器处理需要转发的数据包,通过路由图决策,路由图确定数据包的下一个路由器转发路径。该设计以校园网为背景,采用多出口周边网络方案,可以缓解CERNET与公网互联不畅的问题,但会导致周边网络路由复杂。
为此,您应该在实施此方案之前规划好您的周边网络路由,并通过掌握该流量在您的周边网络中的转发过程来有效地预留流量。外网只能访问内网记录服务器,内网主机可以自动选择出口访问外网。实验基于典型计算机网络环境对网络功能的要求,使用ENSP模拟器构建整个网络拓扑。在实现网络功能的过程中,策略路由主要用于完成组网设备的配置和最终结果的验证。
关键词:策略路由;网络多出口;校园网络;ENSP;仿真模拟
Abstract
Policy-based routing is a more flexible packet routing and forwarding mechanism than purpose-based routing.The router processes the packets that need forwarding, and the routing graph determines the next router of the packet forwarding path through the routing graph decision.The design takes the campus network as the background and adopts the multi-exit peripheral network scheme, which can alleviate the problem of poor interconnection between CERNET and public network, but will lead to complex surrounding network routing.
To this end, you should plan your peripheral network route before implementing this plan, and effectively reserve the traffic by mastering the forwarding process of the traffic in your peripheral network.The extranet can only access the Intranet record server, and the Intranet host can automatically select exits to access the extranet.Based on the functional requirements of a typical computer network environment, the whole network topology is constructed using the ENSP simulator.In the process of realizing network function, policy route is mainly used to complete the configuration and verification of final results.
Key words: strategic routing; network multi-exit; campus network; ENSP; simulation simulation
目 录
第1章 绪论 3
1.1背景和意义 3
1.2研究综述和主要方法 4
1.2.1地址资源 4
1.2.2路由分析 4
1.2.3路由策略 5
1.2.4优化处理 6
1.3研究目标与内容 7
第2章 基于ENSP的校园网总体设计 9
2.1设计原则 9
2.2需求分析 9
2.3技术选型 9
2.3.1 VLAN 使用VLAN技术主要考虑到以下优势 9
2.3.2 STP生成树技术与HSRP热备份路由协议技术 10
2.3.3以太网捆绑技术 10
2.3.4 OSPF多出口技术 10
2.4设备选型 10
2.4.1核心层选型 10
2.4.2汇聚层 11
2.4.3接入层 11
2.5目标网络拓扑 11
第3章 基于ENSP的校园网的详细IP地址与VLAN的划分 12
3.1 IP地址划分原则 12
3.2 IP地址及主要VLAN划分 12
3.3三层链路地址划分 13
3.4设备命名及loopback地址 14
3.5网管地址划分及所属VLAN划分 15
3.6 DHCP服务器IP地址池划分 16
第4章 基于ENSP的校园网的局域网设计实施方案 17
4.1基本配置命令 17
4.1.1设置交换机的加密使能口令 17
4.1.2设置登录虚拟终端线时的口令 17
4.1.3设置终端线超时时间 17
4.1.4设置禁用IP地址解析特性 18
4.1.5设置启用消息同步特性 18
4.2配置接入层交换机 18
4.2.1设置接入层交换机的管理IP 18
4.2.2配置访问层交换机AccessSwitch1的访问端口 19
4.2.3设置快速端口 19
4.2.4配置访问层交换机AccessSwitch1的主干道端口 19
4.3 配置分布层交换机DistributeSwitch的VTP 20
4.4 核心层交换服务的实现-配置核心层交换机 20
4.4.1核心层上以太网接口捆绑技术 21
4.4.2 HSRP网关冗余技术 21
第5章 基于ENSP的校园网的策略路由实施方案 24
5.1 VLAN三层路由接入方案 24
5.2路由技术的比较与选择 24
5.3多出口OSPF的实施配置 26
第6章 基于ENSP的校园网的广域网Internet与服务器接入实施方案 29
6.1防火墙 29
6.2服务器模块 31
6.3 DHCP的部署 32
第7章 基于ENSP的校园网的仿真模拟实现 33
7.1仿真拓扑 33
7.2 VLAN仿真与测试 33
7.3 STP生成树仿真与测试 34
7.4 以太网捆绑测试 36
7.5网关冗余技术测试 38
7.6路由的仿真与测试 38
7.7 PAT仿真与测试 39
7.8 DHCP服务器测试 39
结 论 41
参考文献 42
致 谢 44

配置代码:
交换机1
sys
 sys sw1
 vlan 10
 quit
 int g0/0/3
   port link-type access
   port defult vlan 10
 int g0/0/4
    port link-type access
    port defult vlan 10
 int g0/0/1
    port link-type trunk
    port trunk allow-pass vlan 10 to 100
 int g0/0/2
    port link-type trunk
    port trunk allow-pass vlan 10 to 100



交换机2:

sys
 sys sw2
 vlan batch 20 30
 int g0/0/3
   port link-type access
   port defult vlan 30
int g0/0/4
   port link-type access
   port defult vlan 20
int g0/0/1
    port link-type trunk
    port trunk allow-pass vlan 10 to 100
   int g0/0/2
    port link-type trunk
    port trunk allow-pass vlan 10 to 100


交换机3:

sys
 sys sw3
 vlan batch 40 50 
int g0/0/5
   port link-type access
   port defult vlan 40
int g0/0/3
   port link-type access
   port defult vlan 50
int g0/0/4
   port link-type access
   port defult vlan 50
int g0/0/1
    port link-type trunk
   port trunk allow-pass vlan 10 to 100
int g0/0/2
    port link-type trunk
    port trunk allow-pass vlan 10 to 100

交换机4:

sys
 sys sw4
 vlan 60
 quit
 int g0/0/3
   port link-type access
   port defult vlan 60
int g0/0/1
    port link-type trunk
    port trunk allow-pass vlan 10 to 100
  int g0/0/2
    port link-type trunk
port trunk allow-pass vlan 10 to 100



交换机5
sys
 sys sw5
 vlan batch 10 20 30 91 92
 int eth-trunk 1
   mode lacp
 quit
 int g0/0/2
   eth-trunk 1
 int g0/0/6
   eth-trunk 1
 quit
 lacp priority 100                      //将优先级配置为100,使改侧成为主动端
 int g0/0/1
   port link-type trunk
   port trunk allow-pass vlan 10 to 100
 int g0/0/3
   port link-type trunk
   port trunk allow-pass vlan 10 to 100
 int eth-trunk 1
   port link-type trunk
   port trunk allow-pass vlan 10 to 100
 int g0/0/4
   port link-type access
   port defult vlan 91
 int g0/0/5
   port link-type access
   port defult vlan 92
 int vlanif 10
   ip address 172.22.10.100 24
 int vlanif 20
ip address 172.22.20.100 24
int vlanif 30 
   ip address 172.22.30.100 24
int vlanif 91
   ip address 172.22.1.1 24
int vlanif 92
   ip address 172.22.2.1 24

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

1 绪 论 1 1.1 校园网的发展 1 1.2 本文研究的意义及目的 1 1.3 校园网规划设计的主要任务 2 1.4论文结构安排 3 2 校园网设计系统需求分析及目标 4 2.1 设计背景及现状 4 2.2 系统需求分析 4 2.3 校园网系统建设目标 5 2.3.1校园网系统高可靠性 5 2.3.2校园网系统高稳定性 5 2.3.3校园网系统可扩展性 6 2.3.4校园网系统可维护性 6 3 校园网总体结构设计 7 3.1 网络设计 7 3.1.1 主干网络设计 8 3.1.2 工作组网络 10 3.2 网络组网技术的选择 10 3.3 网络设计方案描述 11 3.3.1 网络总体规划设计 11 3.3.2 网络拓扑结构 12 3.3.3 网络设备的选择原则 14 3.3.4 主要网络设备配置 14 4 网络操作系统 20 4.1 网络服务器 20 4.1.1 主域服务器 20 4.1.2 INTERNET 服务器 20 4.2 网络操作系统 21 4.2.1 UNIX网络操作系统 22 4.2.2 Windows Server 2003网络操作系统 23 5 应用系统 27 5.1 办公信息管理系统软件 27 5.2 教学管理系统软件 27 5.3 图书管理系统 27 5.4 远程教育系统 27 5.5 校园网通讯服务系统 28 6 综合布线系统设计 29 6.1设计依据 29 6.1.1 系统设计标准 29 6.1.2 安装与设计规范 29 6.2 设计范围及要求 29 6.3布线的设备选择 30 6.4 布线系统设计方案描述 30 6.4.1 工作区子系统设计 30 6.4.2 水平布线子系统设计 31 6.4.3 垂直主干子系统 31 6.4.4 管理子系统 31 6.4.5 设备间子系统设计 31 6.4.6 建筑群主干子系统设计 31 8 结 论 32 致 谢 33 参考文献 34
### ENSP校园网络拓扑设计与配置示例教程 #### 设计目标 在ENSP仿真环境中构建一个典型的校园网结构,满足教学区、办公区以及宿舍区的不同需求。此案例旨在展示如何通过合理规划IP地址分配、VLAN划分等手段实现高效稳定的局域网连接[^1]。 #### 主要设备清单 - 路由器:用于边界路由及不同子网间通信; - 三层交换机:负责核心层数据转发并支持跨VLAN访问控制列表(ACLs)设置; - 接入层二层交换机:提供终端接入服务,可根据实际需要部署多个以覆盖更大范围; - PC主机若干台模拟各类用户端口; #### IP 地址规划表 | 网络名称 | 子网掩码 | 可用IP段 | |--------|--------------|----------------| | 办公室 | 255.255.255.0 | 192.168.1.x | | 教学楼 | 255.255.255.0 | 192.168.2.x | | 宿舍区A | 255.255.255.0 | 192.168.3.x | #### VLAN 划分方案 为了提高网络安全性和管理效率,在本实例中采用基于功能区域的虚拟局域网(VLAN)技术来隔离不同的业务流量: - Office_VLAN (ID=10): 对应于办公室内的所有计算机; - Classroom_VLAN (ID=20): 面向教室内部署的教学资源服务器群组; - Dormitory_VLAN_A (ID=30): 居住于特定公寓的学生个人电脑; #### 实施步骤概览 创建上述提到的各种节点并将它们按照预定逻辑关系相互联接起来形成完整的物理链路架构图之后,则需依次完成如下操作: - **路由器基础参数设定** ```shell Router(config)# interface GigabitEthernet0/0 Router(config-if)# ip address 192.168.1.1 255.255.255.0 Router(config-if)# no shutdown ``` - **启用OSPF动态路由协议以便自动发现邻居并与之共享可达信息** ```shell Router(config)# router ospf 1 Router(config-router)# network 192.168.1.0 0.0.0.255 area 0 ``` - **定义各VLAN接口属性及其对应的第三层寻址信息** ```shell Switch(config)# vlan 10,20,30 Switch(config-vlan)# exit Switch(config)# int range fa0/1 - 24 Switch(config-if-range)# switchport mode access Switch(config-if-range)# switchport access vlan 10 ... //重复以上命令为其他两个VLAN指定成员端口 ``` 最后还需确保防火墙策略允许合法的数据包进出相应安全域,并定期备份整个系统的配置文档以防意外丢失重要资料.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值