1、计算机网络课程设计报告校园网构建方案的设计和实现XX 大学计算机科学与技术学院计算机网络课程设计报告校园网构建方案的设计和实现专业班级: 学生姓名: 学 号 : 指导教师: 日 期:一设计任务及要求1.任务:某高校现有三个地理位置分离的分校区,每个校区入网信息点有 2000 多个,现准备通过教科网接入因特网。而从教科网只申请到 4 个C 类网络(222.191.1.0-222.191.4.0),为了安全,要求每个分校区的学生公寓子网和教师子网不在同一个广播域。同时,学校有若干台应用服务器,同时对内和对外提供 web 等网络服务。设计网络构建方案并实施该校园网络。2.要求:(1) 根据具体情况,
2、完成需求分析(2) 列出实验所需设备,完成网络拓扑结构图(3) 完成各项设备的具体配置(4) 调试运行二基本思路及相关理论1.基本思路:(1) 由于每个校区入网信息点有 2000 多个,C 类网络无法满足该数量级的主机地址需求, 因此在三个校区以及服务器区中使用 B 类私网地址 172.16.0.0。(2) 由于校园网内使用的是私网地址,所以需要在边界路由器上配置网络地址转换(NAT),校园网内主机访问外网时使用动态地址转换,内网服务器使用静态地址转换来给外网提供服务。(3) 由于每个校区入网信息点有 2000 多个,若手动为每台主机配置 ip 地址,那么工程量是极大的,而且主机的添加与删除对
3、网络的影响也较大。为了解决这一问题,并且便于网络管理,需要配置 DHCP 服务。(4) 任务要求每个分校区的学生公寓子网和教师子网不在同一个广播域,那么使用 VLAN 技术来满足这一要求,创建两个 VLAN,分别是 VlanStudent 和 VlanTeacher。(5) 使用三层交换机来实现 VlanStudent 和 VlanTeacher 之间的通信,使用路由器来实现不同校区之间的通信。(6) 配置 DNS 服务器给校园网内的 WEB Server 和 FTP Server 提供域名解析,给用户提供人性化的服务。2.相关理论:(1) ip 的层次结构、寻址方案以及每种类别的 ip 地址
4、所能提供的最大主机数(2) 子网划分的原理及步骤(3) 可变长子网掩码(VLSM)对 ip 地址利用率的最大化(4) vlan 技术分隔广播域(5) 三层交换机实现 VLAN 间路由(6) 动态路由协议 OSPF 实现路由汇聚,提供不同校区间的路由(7)使用命令 default-information originate 来向 OSPF 域中注入默认路由(8)主机跨网段请求 DNS 服务的实现三方案设计(网络设备和拓扑结构)四网络的具体配置(1)三个校区以及服务器区的接入层交换机提供足够多的以太网接口,使用默认配置即可。(2)汇聚层交换机的配置a. 校区一的三层交换机的配置如下: Buildi
5、ng configuration.Current configuration : 1868 bytes!version 12.2no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname Switch!ip dhcp excluded-address 172.16.3.254 ip dhcp excluded-address 172.16.7.254!ip dhcp pool VlanStudentnetwork
6、 172.16.0.0 255.255.252.0default-router 172.16.3.254dns-server 172.16.48.30 ip dhcp pool VlanTeachernetwork 172.16.4.0 255.255.252.0default-router 172.16.7.254dns-server 172.16.48.30 ip routing!interface FastEthernet0/1 no switchportno ip address duplex auto speed auto shutdown!interface FastEtherne
7、t0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!inter
8、face 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 no switchportip address 172.16.48.1 255.255.255.252duplex auto
9、 speed auto!interface FastEthernet0/23 switchport access vlan 3 switchport mode access!interface FastEthernet0/24 switchport access vlan 2 switchport mode access!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 no ip address shutdown!interface Vlan2ip address 172.16.3.254 25
10、5.255.252.0!interface Vlan3ip address 172.16.7.254 255.255.252.0!router ospf 100log-adjacency-changesnetwork 172.16.0.0 0.0.3.255 area 0network 172.16.4.0 0.0.3.255 area 0network 172.16.48.0 0.0.0.3 area 0!ip classless!line con 0line vty 0 4 login!endb. 校区二的三层交换机的配置如下: Building configuration.Current
11、 configuration : 1888 bytes!version 12.2no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname Switch!ip dhcp excluded-address 172.16.23.254 ip dhcp excluded-address 172.16.19.254!ip dhcp pool VlanStudentnetwork 172.16.16.0 255.255.2
12、52.0default-router 172.16.19.254dns-server 172.16.48.30 ip dhcp pool VlanTeachernetwork 172.16.20.0 255.255.252.0default-router 172.16.23.254dns-server 172.16.48.30 ip routing!no ip domain-lookup!interface FastEthernet0/1 no switchportno ip address duplex auto speed auto!interface FastEthernet0/2!in
13、terface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface Fa
14、stEthernet0/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 no switchportip address 172.16.48.5 255.255.255.252duplex auto speed
15、auto!interface FastEthernet0/23 switchport access vlan 3 switchport mode access!interface FastEthernet0/24 switchport access vlan 2 switchport mode access!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 no ip address shutdown!interface Vlan2ip address 172.16.19.254 255.255.
16、252.0!interface Vlan3ip address 172.16.23.254 255.255.252.0!router ospf 100log-adjacency-changesnetwork172.16.16.00.0.3.255 area 0network172.16.20.00.0.3.255 area 0network172.16.48.40.0.0.3 area 0!ip classless!line con 0line vty 0 4 login!endc. 校区三的三层交换机的配置如下: Current configuration : 1888 bytes!vers
17、ion 12.2no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname Switch!ip dhcp excluded-address 172.16.35.254 ip dhcp excluded-address 172.16.39.254!ip dhcp pool VlanStudentnetwork 172.16.32.0 255.255.252.0default-router 172.16.35.254
18、dns-server 172.16.48.30 ip dhcp pool VlanTeachernetwork 172.16.36.0 255.255.252.0default-router 172.16.39.254dns-server 172.16.48.30 ip routing!no ip domain-lookup!interface FastEthernet0/1 no switchportno ip address duplex auto speed auto!interface FastEthernet0/2!interface FastEthernet0/3!interfac
19、e FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!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 FastEth
20、ernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22 no switchportip address 172.16.48.9 255.255.255.252duplex auto speed auto!interface FastEthernet0/23
21、switchport access vlan 3 switchport mode access!interface FastEthernet0/24 switchport access vlan 2 switchport mode access!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 no ip address shutdown!interface Vlan2ip address 172.16.35.254 255.255.252.0!interface Vlan3ip address
22、172.16.39.254 255.255.252.0!router ospf 100log-adjacency-changesnetwork172.16.32.00.0.3.255 area 0network172.16.36.00.0.3.255 area 0network172.16.48.80.0.0.3 area 0!ip classless!line con 0line vty 0 4 login!end(3)核心层路由器的配置 a.与校区一相连的路由器 Router1 Building configuration.Current configuration : 825 bytes
23、!version 12.4no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname Router!no ip domain-lookup!interface FastEthernet0/0ip address 172.16.48.2 255.255.255.252duplex auto speed auto!interface FastEthernet0/1 no ip addressduplex auto s
24、peed auto shutdown!interface Serial0/0/0ip address 172.16.48.26 255.255.255.252clock rate 4000000!interface Serial0/0/1ip address 172.16.48.21 255.255.255.252!interface Vlan1 no ip address shutdown!router ospf 100log-adjacency-changesnetwork 172.16.48.0 0.0.0.3 area 0network 172.16.48.20 0.0.0.3 are
25、a 0network 172.16.48.24 0.0.0.3 area 0!ip classless!line con 0exec-timeout 0 0 logging synchronous line vty 0 4login!endb. 与校区二相连的路由器 Router2 Building configuration.Current configuration : 825 bytes!version 12.4no service timestamps log datetime msec no service timestamps debug datetime msec no serv
26、ice password-encryption!hostname Router!no ip domain-lookup!interface FastEthernet0/0ip address 172.16.48.6 255.255.255.252duplex auto speed auto!interface FastEthernet0/1 no ip addressduplex auto speed auto shutdown!interface Serial0/0/0ip address 172.16.48.25 255.255.255.252!interface Serial0/0/1i
27、p address 172.16.48.13 255.255.255.252clock rate 4000000!interface Vlan1 no ip address shutdown!router ospf 100log-adjacency-changesnetwork 172.16.48.4 0.0.0.3 area 0network 172.16.48.24 0.0.0.3 area 0network 172.16.48.12 0.0.0.3 area 0!ip classless!line con 0exec-timeout 0 0 logging synchronous lin
28、e vty 0 4login!endc. 与校区三相连的路由器 Router3 Building configuration.Current configuration : 806 bytes!version 12.4no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname Router!no ip domain-lookup!interface FastEthernet0/0ip address 172.16
29、.48.10 255.255.255.252duplex auto speed auto!interface FastEthernet0/1 no ip addressduplex auto speed auto shutdown!interface Serial0/0/0ip address 172.16.48.17 255.255.255.252!interface Serial0/0/1ip address 172.16.48.14 255.255.255.252!interface Vlan1 no ip address shutdown!router ospf 100log-adja
30、cency-changesnetwork 172.16.48.8 0.0.0.3 area 0network 172.16.48.12 0.0.0.3 area 0network 172.16.48.16 0.0.0.3 area 0!ip classless!line con 0exec-timeout 0 0 logging synchronous line vty 0 4login!endd. 校园网的出口路由器 Router4 Building configuration.Current configuration : 1836 bytes!version 12.4no service timestamps log datetime msec no service timestamps debug datet
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1