计算机网络课程设计报告组建校园局域网总体要求:校园网的建设是现代教育发展的必然趋势,建设校园网不仅能够更加合理有效地利用学校现有的各种资源,而且为学校未来的不断发展奠定了基础,使之能够适合信息时代的要求。
校园网络的建设及其与Internet的互联,已经成为教育领域信息化建设的当务之急。
假设学校有100台计算机,请规划各个部门,便于管理。
同时提供学校发布信息的Web服务器,提供http,ftp,DNS,Email,DHCP需求分析规划部门如下:设计原则:1,其中、学生宿舍的网和教学楼的网得分在不同的VLAN。
防止宿舍的学生上教学楼的网,影响带宽。
2,为了以后学校的计算机扩展容量,每个楼分配一个路由器。
3,为了防止网络堵塞时,能选择其他路径。
不用单臂路由形式。
4,在办公楼的财务科和教务科不能通讯。
但是布置在同一个交换机上。
解决方案设计设备选型路由器:3台交换机:4台PC机:很多台电缆线:若干米双绞线:若干米网钳:一把测网器:一个综合布线设计在核心路由部分。
选择Serial线。
同时三个路由器呈三角状相接。
配置路由,防止网络堵塞时,路由自动选择路径。
在各个子系统,即各个楼层之间,应选用光纤,防止线缆老化,同时更有利于数据传送,但光纤价格稍微偏高。
在各个终端设备与交换机连接。
选择普通网线,又能满足联网要求,同时价格较低。
拓扑图IP地址划分路由器设置路由器1的配置Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.--给接口F0/0分配IP地址为192.168.1.1Router(config)#interface fastEthernet0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exit--给Serial2/0分配IP地址为192.168.12.1。
同时设置时钟速率Router(config)#interface Serial2/0Router(config-if)#ip address 192.168.12.1 255.255.255.0Router(config-if)#clock rate 9600Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial2/0, changed state to down给接口Serial3/0分配IP地址为192.168.13.1 同时设置时钟速率Router(config)#interface Serial3/0Router(config-if)#ip address 192.168.13.1 255.255.255.0Router(config-if)#clock rate 9600Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial3/0, changed state to down其他路由接口也是如此照上面的代码设置。
配置核心路由协议配置好接口IP地址后。
配置核心路由协议。
EIGRP 不等价路由协议。
即第一路径堵塞,走第二路径发送数据包。
路由器1Router(config)#router eigrp 100Router(config-router)#net 192.168.1.0Router(config-router)#net 192.168.12.0Router(config-router)#net 192.168.13.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.12.2 (Serial2/0) is up: new adjacency%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.13.2 (Serial3/0) is up: new adjacency路由器2Router(config)#router eigrp 100Router(config-router)#net 192.168.12.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.12.1 (Serial2/0) is up: new adjacencyRouter(config-router)#net 192.168.23.0Router(config-router)#net 192.168.21.0Router(config-router)#net 192.168.22.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.23.2 (FastEthernet0/0) is up: new adjacency路由器3Router(config)#router eigrp 100Router(config-router)#net 192.168.13.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.13.1 (Serial2/0) is up: new adjacencyRouter(config-router)#net 192.168.23.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 192.168.23.1 (FastEthernet0/0) is up: new adjacencyRouter(config-router)#net 192.168.3.0查看是否建立Neighborh关系路由器1Router#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO QSeq(sec) (ms) CntNum0 192.168.12.2 Se2/0 12 00:07:20 40 1000 0 91 192.168.13.2 Se3/0 10 00:05:03 40 1000 0 11 Router#路由器2Router#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num0 192.168.12.1 Se2/0 11 00:08:59 40 1000 0 31 192.168.23.2 Fa0/0 13 00:05:52 40 1000 0 12 Router#路由器3Router#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num0 192.168.13.1 Se2/0 12 00:07:20 40 1000 0 41 192.168.23.1 Fa0/0 14 00:06:30 40 1000 0 10 Router#查看路由器1的路由表Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, FastEthernet0/0C 192.168.12.0/24 is directly connected, Serial2/0C 192.168.13.0/24 is directly connected, Serial3/0D 192.168.23.0/24 [90/20514560] via 192.168.12.2, 00:00:16, Serial2/0[90/20514560] via 192.168.13.2, 00:00:16, Serial3/0 Router#Router#show ip eigrp topologyIP-EIGRP Topology Table for AS 100Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,r - Reply statusP 192.168.1.0/24, 1 successors, FD is 28160via Connected, FastEthernet0/0P 192.168.12.0/24, 1 successors, FD is 20512000via Connected, Serial2/0P 192.168.23.0/24, 2 successors, FD is 20514560via 192.168.12.2 (20514560/28160), Serial2/0via 192.168.13.2 (20514560/28160), Serial3/0P 192.168.13.0/24, 1 successors, FD is 20512000via Connected, Serial3/0Router#修改路由器1不等价路由表,网络堵塞时走第二路径。