计算机网络 期末实训 eNSP 校园网

【计算机网络】中小型校园网构建与配置 设计和实现一个综合的网络应用系统,使个人用户能够通过内部无线网络访问外部的Web服务器,并允许外部用户访问内网上的Web服务器。该拓扑结构包括了路由器、交换机、内部无线网络设备、Web服务器等组成。通过合理的拓扑设计,实现了内部用户和外部用户之间的连接。在路由器R0上配置静态NAT,并通过外网上的主机访问内网上的Web服务器,以测试其可访问性:通过配置路由器的静态NAT功能,实现了外部用户通过外网主机访问内网Web服务器的功能。这种配置也提高了内部网络的安全性。 VLAN划分与配置:通过对交换机的VLAN进 阅读详情
AI摘要

本文介绍了一个基于eNSP的小型校园网规划设计与实施过程,涵盖VLAN划分、IP地址规划、DHCP中继与服务器配置、静态路由与RIP动态路由部署。通过ACL实现学生区与办公区的安全隔离,并配置NAT使内网用户访问互联网,确保Web和FTP服务器的资源共享。

eNSP 综合实训 小型校园网 计算机网络期末实训 01 搭建拓扑

 

 

1.设计任务

构建一个小型校园网络,涵盖以下设备与区域:

  • 学生宿舍区:50台计算机
  • 办公楼区:30台计算机(细分为财务部门、人事部门及其他科室)
  • 图书馆:10台计算机
  • 教学楼:30台计算机
  • 服务器集群:2台服务器,分别用于FTP服务和Web服务
    该网络通过一台路由器连接至外部互联网及内部服务器。

2.需求分析

  • 内部通信:确保同一部门内的所有终端能够通过二层交换直接通信;不同部门之间则需经由三层路由实现互连。
  • 路由协议选择:采用静态路由配置结合RIP动态路由协议来优化数据传输路径。
  • 公网访问权限:为校内所有用户提供私有IP地址分配,并保证他们能够无障碍地访问互联网资源。
  • 资源共享机制:全体用户均应能轻松访问到Web服务器与FTP文件存储中心,促进信息共享。
  • 安全隔离措施:特别指出,来自学生宿舍、图书馆以及教学楼的流量不应被允许直接触及到人事或财务相关的敏感系统。
  • IP地址管理:对于关键基础设施如服务器等,采取固定IP地址策略;而对于普通用户,则利用DHCP自动分配动态IP地址。

3.网络规划/设计

3.1 VLAN(虚拟局域网)规划

  • 在学生宿舍、图书馆以及教学楼这三个区域内各自部署一对主机-客户端模型,以此验证并保障这些区域内的二层通讯畅通无阻。
  • 对于办公楼区域,计划安装三个独立的交换机单元,每个单元下同样配置一对主机-客户端组合,旨在测试其内部二层网络的正常运作。
  • 通过引入一台高性能聚合交换机作为核心节点,不仅实现跨楼层间(即第三层)的数据流转,同时也严格执行了对特定部门(例如人事处、财务处)的访问限制政策。

3.2 IP地址规划

以下为IP地址规划

 

3.3 功能部署规划

校园网整体部署

4.具体配置

4.1 配置VLAN--在接入交换机上配置

分别在LSW1-LSW6上配置VLAN,然后配置入口类型为access,将主机默认vlan设置成配置的vlan,并且将出口设置为trunk类型,设置出口的vlan为默认预设的vlan

LSW1

undo info-center enable
vlan batch 10
 
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 10
q

interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 10

q
q
save

LSW2

undo info-center enable
vlan batch 20
 
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 20
q

interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 20

q
q
save

LSW3

undo info-center enable
vlan batch 30
 
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 30
q

interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 30

q
q
save

LSW4

undo info-center enable
vlan batch 40
 
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 40
q

interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 40

q
q
save

LSW5

undo info-center enable
vlan batch 50
 
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 50
q

interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 50

q
q
save

LSW6

undo info-center enable
vlan batch 60
 
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 60
q

interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 60

q
q
save

4.2 在路由器上配置VLAN10、50、60

在AR1路由器上配置VLAN10、50、60,以实现学生宿舍、图书馆和教学楼之间可以进行部门间的三层访问。

首先,批量创建VLAN10、50、60,设置接口类型为access,将默认VLAN设置成预设的VLAN,然后将出口类型设置为trunk,将默认VLAN设置成预设,使其通过。

同时创建一个VLAN100,目的是为了给办公楼进行使用。

AR1

vlan batch 10 50 60 100

interface Ethernet 0/0/7
port link-type trunk
port trunk allow-pass vlan 10
quit

interface Ethernet 0/0/6
port link-type trunk
port trunk allow-pass vlan 100
quit

interface Ethernet 0/0/5
port link-type trunk
port trunk allow-pass vlan 50
quit

interface Ethernet 0/0/4
port link-type trunk
port trunk allow-pass vlan 60
quit

4.3 配置VLAN10、50、60路由--路由器

给学生宿舍、图书馆、教学楼配置路由,启用DHCP服务,他们所属网络的电脑能够动态获取IP,并且使得学生宿舍、图书馆、教学楼之间可以相互ping通。

AR1

# 启用DHCP服务
dhcp enable  

# 进入VLAN接口10的配置模式
interface vlanif 10  
ip address 192.168.1.1 24
# 选择通过接口分配IP地址。这通常意味着当设备请求IP地址时,它会从该接口的地址池中获取一个地址。
dhcp select interface  
quit

interface vlanif 50
ip address 192.168.5.1 24
dhcp select interface
quit

interface vlanif 60
ip address 192.168.6.1 24
dhcp select interface
quit

配置后,将学生宿舍、图书馆和教学楼下的电脑IP设置为DHCP模式,等待一会儿,它们下面的电脑就可以获取到IP,并且可以相互ping通

 

4.4 在汇聚交换机LSW7上创建VLAN

在LSW7上批量创建VLAN20、30、40、100,将LSW7上与LSW2、LSW3、LSW4交换机连接的接口类型配置为trunk,并依次设置VLAN设置为20、30、40。

LSW7

vlan batch 20 30 40 100

interface GigabitEthernet 0/0/23
port link-type trunk
port trunk allow-pass vlan 20
quit

interface GigabitEthernet 0/0/22
port link-type trunk
port trunk allow-pass vlan 30
quit

interface GigabitEthernet 0/0/21
port link-type trunk
port trunk allow-pass vlan 40
quit

interface GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan 100
quit

4.5 在汇聚交换机LSW7上配置路由

在三个VLANIF中分别配置每一个路由地址

LSW7

interface vlanif 20
ip address 192.168.2.1 24
quit

interface vlanif 30
ip address 192.168.3.1 24
quit

interface vlanif 40
ip address 192.168.4.1 24
quit

interface vlanif 100
ip address 192.168.100.1 24
quit

# 配置RIP路由协议,版本为100
rip 100  
# 为四个网络段(即VLAN接口对应的IP地址范围)添加路由信息
network 192.168.2.0
network 192.168.3.0
network 192.168.4.0
network 192.168.100.0
quit

4.6 配置DHCP中继

在LSW7上配置DHCP中继,在LSW7上使能DHCP功能,然后在LSW7上,使能DHCP relay功能并且指定中继到的DHCP服务器地址。

LSW7

dhcp enable

interface vlanif 20
# 将VLAN接口20配置为DHCP中继模式。这意味着该接口将转发来自客户端的DHCP请求到指定的DHCP服务器。
dhcp select relay
# 指定VLAN接口20的DHCP中继服务器IP地址为192.168.100.2。这意味着当VLAN接口20接收到DHCP请求时,它会将请求转发到这个IP地址的DHCP服务器。
dhcp relay server-ip 192.168.100.2
quit

interface vlanif 30
dhcp select relay
dhcp relay server-ip 192.168.100.2
quit

interface vlanif 40
dhcp select relay
dhcp relay server-ip 192.168.100.2
quit

4.7 配置DHCP服务器

在DHCP服务器上AR1上使能DHCP功能,然后分别配置全局地址池pool2、pool3、pool4。进入连接下方LSW7的VLANIF 100接口,并且使能全局地址池功能。

AR1

dhcp enable

# 进入名为"pool2"的IP池配置模式。
ip  pool pool2
# 定义"pool2"的IP地址范围为192.168.2.0至192.168.2.255。
network 192.168.2.0 mask 255.255.255.0
  gateway-list 192.168.2.1
  quit

ip  pool pool3
network 192.168.3.0 mask 255.255.255.0
  gateway-list 192.168.3.1
  quit

ip  pool pool4
network 192.168.4.0 mask 255.255.255.0
  gateway-list 192.168.4.1
  quit

interface vlanif 100
# 将VLAN接口100配置为全局模式,这意味着该接口将直接从DHCP服务器获取IP地址,而不是使用之前配置的IP池。
dhcp select global
quit

interface vlanif 100
ip address 192.168.100.2 24
quit

rip 100
network 192.168.100.0
network 192.168.1.0
network 192.168.5.0
network 192.168.6.0
quit

4.8 配置学生宿舍、图书馆和教学楼不能访问人事处、财务处和其他科室

通过配置ACL,使得学生宿舍、图书馆和教学楼不能访问人事处、财务处和其他科室。

配置一个acl3000,将具体的地址制定为规则,然后在LSW7的接口下应用其规则。

LSW7

acl 3000
rule 1 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.2.1 0.0.0.255
rule 2 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.3.1 0.0.0.255
rule 3 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.4.1 0.0.0.255
rule 4 deny ip source 192.168.5.1 0.0.0.255 destination 192.168.2.1 0.0.0.255
rule 5 deny ip source 192.168.5.1 0.0.0.255 destination 192.168.3.1 0.0.0.255
rule 6 deny ip source 192.168.5.1 0.0.0.255 destination 192.168.4.1 0.0.0.255
rule 7 deny ip source 192.168.6.1 0.0.0.255 destination 192.168.2.1 0.0.0.255
rule 8 deny ip source 192.168.6.1 0.0.0.255 destination 192.168.3.1 0.0.0.255
rule 9 deny ip source 192.168.6.1 0.0.0.255 destination 192.168.4.1 0.0.0.255
quit
interface vlanif100
traffic-filter outbound acl 3000
quit

 

4.9 实现资源共享

实现资源共享,使得所有用户均可通过校园网访问Web/FTP服务器,也是Server1,IP网关为200.1.1.1。

首先需要在AR1上将直连路由加入其中

AR1

#然后在AR1路由器和Web/FTP服务器连接的路由上配置VLAN,并且在VLANIF中配置网络地址。将配置的地址加入rip当中进行广播。
vlan batch 1000
interface Ethernet 0/0/2
port link-type access
port default vlan 1000
quit
interface vlanif 1000
ip address 200.1.1.1 24
quit
rip 100
network 200.1.1.0
quit

测试PC1、PC2 ping 100.1.1.2,FTP服务器访问性

 

 

 

4.10 配置NAT

配置NAT需要配置先配置不同的地址组,分配不同的地址。然后配置不同的acl,分配不同的acl,最后早AR1的interface GigabitEthernet0/0/1上将不同的IP地址组和不同的acl相对应起来。此外。还需要在LSW7上配置一个静态路由。

LSW7

ip route-static 0.0.0.0 0.0.0.0 192.168.100.2

AR1

# 在AR1的GigabitEthernet 0/0/1接口上配置一个IP地址
interface G0/0/1
ip address 150.1.1.1 24
quit

# AR 1和AR2分别配置连通对方的静态地址
ip route-static 0.0.0.0 0.0.0.0 150.1.1.2

# 创建一个NAT地址组1,包含IP地址范围从150.1.1.100到150.1.1.200。
nat address-group 1 150.1.1.100 150.1.1.200
nat address-group 2 150.2.1.100 150.2.1.200
nat address-group 3 150.3.1.100 150.3.1.200
nat address-group 4 150.4.1.100 150.4.1.200
nat address-group 5 150.5.1.100 150.5.1.200
nat address-group 6 150.6.1.100 150.6.1.200

# 在ACL 2001中添加一条规则,允许源地址为从192.168.1.2到192.168.1.255的范围。
acl 2001
rule permit source 192.168.1.2 0.0.0.255
quit
acl 2002
rule permit source 192.168.2.2 0.0.0.255
quit
acl 2003
rule permit source 192.168.3.2 0.0.0.255
quit
acl 2004
rule permit source 192.168.4.2 0.0.0.255
quit
acl 2005
rule permit source 192.168.5.2 0.0.0.255
quit
acl 2006
rule permit source 192.168.6.2 0.0.0.255
quit

interface GigabitEthernet0/0/1
# 配置出站NAT,将匹配ACL 2001的流量转换为NAT地址组1中的地址,并使用no-pat(无端口地址转换)选项。
nat outbound 2001 address-group 1 no-pat
nat outbound 2002 address-group 2 no-pat
nat outbound 2003 address-group 3 no-pat
nat outbound 2004 address-group 4 no-pat
nat outbound 2005 address-group 5 no-pat
nat outbound 2006 address-group 6 no-pat
quit

AR2

# 在AR2路由器上配置VLAN,并且将接口类型设置为access。默认VALN设置为预设的200
vlan batch 200
interface Ethernet 0/0/7
port link-type access
port default vlan 200
quit

# 在AR2上配置VLANIF中的地址,并且给GigabitEthernet 0/0/1配置一个IP地址
interface vlanif 200
ip address 100.1.1.1 24
quit
interface G0/0/1
ip address 150.1.1.2 24
quit

# AR 1和AR2分别配置连通对方的静态地址
ip route-static 0.0.0.0 0.0.0.0 150.1.1.1

设置外网电脑

 

 

 

5.各设备配置总览

LSW1

#
sysname Huawei
#
undo info-center enable
#
vlan batch 10
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/5
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/6
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/8
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/9
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/10
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/11
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/12
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/13
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/14
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/15
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/16
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/17
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/18
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/19
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/20
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/21
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

LSW2

#
sysname Huawei
#
undo info-center enable
#
vlan batch 20
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/5
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/6
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/8
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/9
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/10
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/11
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/12
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/13
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/14
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/15
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/16
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/17
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/18
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/19
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/20
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/21
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

LSW3

#
sysname Huawei
#
undo info-center enable
#
vlan batch 30
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/5
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/6
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/8
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/9
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/10
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/11
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/12
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/13
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/14
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/15
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/16
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/17
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/18
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/19
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/20
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/21
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

LSW4

#
sysname Huawei
#
undo info-center enable
#
vlan batch 40
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/5
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/6
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/8
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/9
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/10
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/11
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/12
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/13
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/14
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/15
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/16
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/17
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/18
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/19
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/20
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/21
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

LSW5

#
sysname Huawei
#
undo info-center enable
#
vlan batch 50
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/5
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/6
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/8
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/9
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/10
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/11
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/12
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/13
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/14
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/15
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/16
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/17
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/18
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/19
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/20
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/21
 port link-type access
 port default vlan 50
#
interface Ethernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 50
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

LSW6

#
sysname Huawei
#
undo info-center enable
#
vlan batch 60
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/5
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/6
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/8
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/9
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/10
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/11
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/12
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/13
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/14
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/15
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/16
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/17
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/18
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/19
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/20
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/21
 port link-type access
 port default vlan 60
#
interface Ethernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 60
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

LSW7

#
sysname Huawei
#
vlan batch 20 30 40 100
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
acl number 3000
 rule 1 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
 rule 2 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
 rule 3 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.4.0 0.0.0.255
 rule 4 deny ip source 192.168.5.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
 rule 5 deny ip source 192.168.5.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
 rule 6 deny ip source 192.168.5.0 0.0.0.255 destination 192.168.4.0 0.0.0.255
 rule 7 deny ip source 192.168.6.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
 rule 8 deny ip source 192.168.6.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
 rule 9 deny ip source 192.168.6.0 0.0.0.255 destination 192.168.4.0 0.0.0.255
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif20
 ip address 192.168.2.1 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 192.168.100.2
#
interface Vlanif30
 ip address 192.168.3.1 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 192.168.100.2
#
interface Vlanif40
 ip address 192.168.4.1 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 192.168.100.2
#
interface Vlanif100
 ip address 192.168.100.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
 port link-type trunk
 port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/22
 port link-type trunk
 port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/23
 port link-type trunk
 port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/24
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface NULL0
#
rip 100
 network 192.168.2.0
 network 192.168.3.0
 network 192.168.4.0
 network 192.168.100.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2
#
traffic-filter outbound acl 3000
#
user-interface con 0
user-interface vty 0 4
#
return

AR1

[V200R003C00]
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
vlan batch 10 50 60 100 1000
#
 set cpu-usage threshold 80 restore 75
#
dhcp enable
#
acl number 2001  
 rule 5 permit source 192.168.1.0 0.0.0.255 
acl number 2002  
 rule 5 permit source 192.168.2.0 0.0.0.255 
acl number 2003  
 rule 5 permit source 192.168.3.0 0.0.0.255 
acl number 2004  
 rule 5 permit source 192.168.4.0 0.0.0.255 
acl number 2005  
 rule 5 permit source 192.168.5.0 0.0.0.255 
acl number 2006  
 rule 5 permit source 192.168.6.0 0.0.0.255 
#
ip pool pool2
 gateway-list 192.168.2.1 
 network 192.168.2.0 mask 255.255.255.0 
#
ip pool pool3
 gateway-list 192.168.3.1 
 network 192.168.3.0 mask 255.255.255.0 
#
ip pool pool4
 gateway-list 192.168.4.1 
 network 192.168.4.0 mask 255.255.255.0 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
 nat address-group 1 150.1.1.100 150.1.1.200
 nat address-group 2 150.2.1.100 150.2.1.200
 nat address-group 3 150.3.1.100 150.3.1.200
 nat address-group 4 150.4.1.100 150.4.1.200
 nat address-group 5 150.5.1.100 150.5.1.200
 nat address-group 6 150.6.1.100 150.6.1.200
#
interface Vlanif10
 ip address 192.168.1.1 255.255.255.0 
 dhcp select interface
#
interface Vlanif50
 ip address 192.168.5.1 255.255.255.0 
 dhcp select interface
#
interface Vlanif60
 ip address 192.168.6.1 255.255.255.0 
 dhcp select interface
#
interface Vlanif100
 ip address 192.168.100.2 255.255.255.0 
 dhcp select global
#
interface Vlanif1000
 ip address 200.1.1.1 255.255.255.0 
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 1000
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 60
#
interface Ethernet0/0/5
 port link-type trunk
 port trunk allow-pass vlan 50
#
interface Ethernet0/0/6
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface Ethernet0/0/7
 port link-type trunk
 port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
 ip address 150.1.1.1 255.255.255.0 
 nat outbound 2001 address-group 1 no-pat
 nat outbound 2002 address-group 2 no-pat
 nat outbound 2003 address-group 3 no-pat
 nat outbound 2004 address-group 4 no-pat
 nat outbound 2005 address-group 5 no-pat
 nat outbound 2006 address-group 6 no-pat
#
interface NULL0
#
rip 100
 network 192.168.100.0
 network 192.168.1.0
 network 192.168.5.0
 network 192.168.6.0
 network 200.1.1.0
#
ip route-static 0.0.0.0 0.0.0.0 150.1.1.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

AR2

[V200R003C00]
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
vlan batch 200
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface Vlanif200
 ip address 100.1.1.1 255.255.255.0 
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
 port link-type access
 port default vlan 200
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
 ip address 150.1.1.2 255.255.255.0 
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 150.1.1.1
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

PC1-PC6

IP设置为自动获取

 

PC7

 

Server1

 

Cloud1

 

 

校园网网络规划与设计——计算机网络实践报告 深入理解网络工程的三层层次设计模型;掌握网络拓扑结构设计、网络地址规划与设计、综合布线设计等技术;3. 可以对各种网络设备进行规划、设计、安装、连接与设置,掌握小型校园网络设计和组建方法硬件环境:笔记本电脑软件环境:Cisco Packet Tracer。 阅读详情

相关推荐

eNSP校园网拓扑实战:VLAN、DHCP、OSPF与VRRP配置指南

园区网通常以三层架构组织,VLAN用于划分广播域,VLANIF承担跨网段网关,DHCP下发终端地址,OSPF打通内网路由,VRRP提供网关冗余。掌握这些基础机制后,网络技术期末设计和校园网拓扑复现就不再只是画图,而是能沿地址规划表完成Trunk放行、地址池、路由与NAT配置,并通过ping和display命令逐层验证。对于课程设计学生和想练手的开发者,一套可导入eNSP、带配置备份与测试截图的校园网拓扑模板,既能照做复现,也便于排障和二次开发。围绕某中学场景的eNSP工程与配置样例,正适合作为从原理到工程落

weixin_34094282的博客 25

小型校园网设计方案(思科方案).rar

小型校园网设计方案(思科方案).rar

基于eNsp的校园网拓扑设计与VLAN/DHCP/NAT配置实践

网络拓扑设计本质是把业务需求映射为可验证的二层隔离、三层转发与出口访问控制。VLAN通过广播域划分控制广播风暴和部门边界,VLANIF承担网关实现跨网段转发,DHCP统一地址下发降低手工配置冲突,NAT与ACL则在出口完成私网地址转换和访问边界收敛。对教学、办公、公共无线等场景而言,这种分层设计能同时兼顾可管理性、安全性与扩展性,也是校园网课程设计和eNsp仿真实验的高频考核点。围绕某中学三类业务网段、管理VLAN独立、出口NAT与ACL策略、无线AC旁挂及AP上线,方案给出了从地址规划、trunk放通到验

weixin_32705179的博客 236

小型校园网的设计与组建实验报告.docx

某大学分为总校和分校,为该校设计校园网,总校有一个局域网共20台计算机,分校由VLAN划分为两个局域网,分别有10台计算机。该校被分配了一个C类网段210.100.10.0,总校和分校各有一台路由器及一台交换机。请进行网络设计,将总校和分校各个局域网连接起来。 根据要求,设计IP地址分配表,设计网络结构,画出网络拓扑图。 根据设计搭建网络结构。 配置网络设备,完成网络调试。 提示:1)使用IP子网掩码的原理设计IP地址分配表。 2)用到的设备为两台路由器,以及两台交换机。

eNSP网络拓扑期末设计:VLAN、VRRP与OSPF配置复现

计算机网络课程设计常以拓扑仿真验证VLAN、VRRP、OSPF、NAT等基础网络技术。VLAN通过划分广播域降低广播流量并强化安全边界,VRRP提供网关冗余,OSPF实现动态路由互通,NAT完成私网访问公网地址转换。把这些技术放进可复现的eNSP拓扑中,有助于理解地址规划、二层接入、三层网关与出口路由的协同关系,也便于排查同VLAN不通、跨VLAN中断和路由缺失等问题。该资料围绕某中学网络拓扑设计,整理拓扑底稿、地址规划与配置思路,适合网络技术课程设计、期末大作业和答辩演示,先复现再调参,逐步掌握VLAN、

weixin_33178839的博客 254

eNsp校园网课程设计:VLAN/VRRP/OSPF/NAT配置与排错

校园网设计通常从二层隔离、三层转发和出口转换三条主线展开:VLAN划分广播域,Trunk承载多VLAN,MSTP与VRRP共同解决链路冗余和网关冗余,OSPF负责路由收敛,NAT/ACL控制出口访问与安全。把这些基础机制落到eNsp网络拓扑中,价值不在于单条命令,而在于形成可验证的分层配置链路:接入、汇聚、核心、出口逐层对齐,DHCP中继和无线旁挂再补齐终端接入。面向计算机网络课程设计、小型园区网交付和面试作品集,一套包含.topo工程、逐台配置脚本与设计说明的中学网络拓扑资源,能帮助学习者从VLAN规划、

weixin_29895109的博客 243

完整版 第6单元:实训-小型校园网网络解决方案的设计与实施.docx

亲测好用,挺不错的资源,大家快来下载吧!挺有用的!需要的话可以来下载哦!第6单元:实训-小型校园网网络解决方案的设计与实施 设计一个完整的网络解决方案的设计,并在模拟器上模拟实施。

网络技术期末设计.rar拆解:从拓扑搭建到NAT配置的完整实训指南

VLAN划分与NAT配置是网络工程实训中的核心技能,前者通过逻辑隔离实现部门间安全通信,后者解决内网访问外网的地址转换问题。在模拟器环境中,掌握Trunk放行、SVI网关配置及ACL匹配规则,能快速构建可验证的小型网络系统。这类技能广泛应用于课程设计、企业网络调试及故障排查场景。本文围绕网络技术期末设计.rar,拆解拓扑搭建、地址规划、配置脚本与测试记录的全流程,提供可复用的实训模板与避坑指南。

weixin_30536861的博客 188

小型校园网的设计与组建

小型校园网的设计与组建1. 实验说明2. 设计思路原文链接 1. 实验说明 某大学分为总校和分校,为该校设计校园网,总校有一个局域网共20台计算机,分校由VLAN划分为两个局域网,分别有10台计算机。该校被分配了一个C类网段210.100.10.0,总校和分校各有一台路由器及一台交换机。请进行网络设计,将总校和分校各个局域网连接起来。 根据要求,设计IP地址分配表,设计网络结构,画出网络拓扑图。 根据设计搭建网络结构。 配置网络设备,完成网络调试。 提示:1)使用IP子网掩码的原理设计IP地址分配表。 2)

爱吃鱼的博客 1万+

ENSP校园网组网实战:从VLAN规划到静态路由的完整配置指南

在园区网络设计中,VLAN划分与IP地址规划是构建稳定通信基础的核心环节。通过将终端按区域归类,结合带宽估算确定子网规模,再借助三层交换机上的VLANIF接口实现网关部署,即可完成逻辑隔离与三层互通的并行架构。静态路由则负责打通内网区域间及出口链路的数据转发,配合汇聚层trunk放行与核心层默认路由配置,形成完整的数据通路。这一套方法论不仅适用于高校校园网场景,也可复用于企业园区、多分支办公等常见组网需求。本文以华为ENSP模拟器为平台,梳理从终端统计、地址规划、VLAN映射到路由调试的落地流程,并通过IC

weixin_33805992的博客 441

eNSP校园网实战:OSPF多区域+DHCP+ACL全链路可运行工程

校园网络设计是计算机网络课程的核心实践环节,涉及路由协议原理、动态地址分配与访问控制策略等基础技术。OSPF多区域划分通过骨干区(Area 0)与非骨干区实现路由隔离与LSDB优化,提升扩展性与安全性;DHCP服务则基于VLAN接口提供自动化IP管理,结合Option 138确保DNS精准下发;ACL访问控制支持基于时间与源/目的的精细化策略,是网络安全防护的工程落地关键。这些能力广泛应用于高校课设、毕业设计及仿真实验平台构建。本文提供一套经eNSP 1.3.00.100全环境验证的高分校园网源码工程,涵盖

weixin_30768881的博客 272

校园网规划与设计方案

目录 第一章校园网概述 1.1 项目背景及现状 1.2 建设目标 第二章校园网设计原则 2.1 网络系统概述 2.2 网络设计原则 2.3 网络组网技术的选择 2.4 以太网技术 2.4.1 以太网介质访问控制技术 2.4.2 以太网标准 2.4.3 快速以太网 2.4.4 千兆以太网 2.5 与Internet接入设计 第三章校园网络总体结构设计 3.1 网络设计方案描述 3.1.1 网络总体规划设计 3.1.2 校园自然情况 3

qq_61141142的博客 1万+

高校校园网三层架构设计与高分毕设落地实践

校园网络架构是计算机网络课程的核心实践场景,其本质是通过分层模型实现流量隔离、故障收敛与策略管控。三层架构(接入-汇聚-核心)作为经典网络设计范式,依托VLAN划分实现二层隔离,借助OSPF区域化路由保障路径收敛,结合VRRP双机热备提升出口可靠性,并以ACL+QoS完成精细化策略控制。这类方案不仅契合《计算机网络》教材中关于IP子网、路由协议与访问控制的基础原理,更在eNSP仿真环境中具备可验证、可调试、可答辩的工程属性。尤其适合本科毕设与课程设计,覆盖VLAN规划、OSPF配置、VRRP切换、ACL审计

weixin_34199764的博客 237

第6单元:实训-小型校园网网络解决方案的设计与实施.docx

设计一个完整的网络解决方案的设计,并在模拟器上模拟实施。(只是实训,并无相关代码)

eNSP校园网实战工程:OSPF多区域+VRRP热备+防火墙策略全链路解析

校园网络设计是计算机网络课程的核心实践环节,涉及拓扑规划、路由协议(如OSPF)、冗余机制(如VRRP)、安全策略(ACL/防火墙)及QoS保障等关键技术。其本质是将IP子网划分、三层转发原理与真实设备配置能力相结合的系统工程。掌握eNSP仿真平台的工程加载、配置调试与故障排查能力,是完成毕业设计、课程大作业并实现‘配得通、讲得清、改得稳’的关键前提。本文以高分通过的大型校园网eNSP工程为载体,深入拆解OSPF多区域Stub优化、VRRP+Track联动检测、DHCP Snooping防攻击等硬核设计,覆

weixin_31742871的博客 220

eNSP校园网毕设高分方案:业务流驱动的三层架构设计

校园网络设计不仅是设备互联,更是对教学、办公、宿舍、安防等多类业务流量的系统性建模。其核心原理在于将VLAN划分、ACL策略、QoS保障与DHCP/DNS服务部署,统一锚定于真实业务需求——如教务系统直连免NAT、宿舍区P2P端口封禁、实验室MAC+IP强绑定、监控流独立带宽保障。这种业务流驱动的设计方法,显著提升网络可靠性、安全性和可维护性,广泛应用于高校毕业设计、网络工程实训及中小型园区网规划。本文即基于eNSP平台,提供一套结构完整、配置可验证、答辩有支撑的企业级教学实现。

weixin_33417488的博客 261

第6单元:实训-小型校园网网络解决方案的设计与实施

第6单元:实训-小型校园网网络解决方案的设计与实施 设计一个完整的网络解决方案的设计,并在模拟器上模拟实施。

基于eNSP的大型校园网络拓扑设计与实现

网络仿真与规划是网络工程师和计算机专业学生必须掌握的实践技能。通过模拟器构建复杂的园区网络,不仅需要理解三层架构、VLAN划分、OSPF动态路由等基本原理,更要关注设备配置、链路冗余与安全策略的落地。eNSP作为华为官方网络仿真平台,能够在无硬件环境下复现真实校园网的层次化设计,涵盖汇聚层网关终结、核心层路由转发、出口NAT以及无线AC管理。本文围绕校园网络拓扑的项目化实现,剖析从IP规划到防火墙策略的完整配置流程,并总结模拟器常见故障排查与工程文档组织方法,帮助读者打造一个可运行、可演示、可答辩的高分毕设

weixin_32183107的博客 255
上一篇: 【运维】【期末实训】网站简易搭建模拟
下一篇: eNSP 01 eNSP软件安装教程
大陈AI
博客等级 码龄2年 2033粉丝 138原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大陈AI

谢谢你的认可~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值