09级网络设计性实验.docx

上传人:b****8 文档编号:9138336 上传时间:2023-02-03 格式:DOCX 页数:12 大小:69.78KB
下载 相关 举报
09级网络设计性实验.docx_第1页
第1页 / 共12页
09级网络设计性实验.docx_第2页
第2页 / 共12页
09级网络设计性实验.docx_第3页
第3页 / 共12页
09级网络设计性实验.docx_第4页
第4页 / 共12页
09级网络设计性实验.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

09级网络设计性实验.docx

《09级网络设计性实验.docx》由会员分享,可在线阅读,更多相关《09级网络设计性实验.docx(12页珍藏版)》请在冰豆网上搜索。

09级网络设计性实验.docx

09级网络设计性实验

计算机与信息技术学院设计性实验报告

专业:

计算机科学与技术年级/班级:

09级计科二班2010—2011学年第学1期

课程名称

计算机网络

指导教师

刘春红

本组成员

学号姓名

0908114085胡家友

实验地点

计科楼413

实验时间

2012.12.13

项目名称

校园网内外网间的通信

实验类型

设计性

一、实验目的

通过对网络设备的连通和对拓扑的分析,加深对常见典型局域网拓扑的理解;通过路由建立起网络之间的连接,熟悉交换机、路由器的基本操作命令,了解网络路由的设计与配置。

二、实验仪器或设备

二层、三层交换机各一台,路由器两台,学生实验主机三台

三、总体设计(设计原理、设计方案及流程等)

1、S1划分两个VLAN,VLAN10、VLAN20,其中F0/1-5属于VLAN10,F0/6-10属于VLAN20。

2、Rj路由器和电信端路由器利用V.35直连,采用PPP链路协议进行通信,并且采用PAP方式进行认证。

3、局域网内部三层交换机和路由器间利用RIPv2实现全网互通,路由器连外网配置缺省路由。

4、在Rj路由器上配置动态NAT实现局域网访问互联网。

四、实验步骤(包括主要步骤、代码分析等)

第1步:

配置PC1:

192.168.1.1网关192.168.1.2

PC2:

192.168.2.1网关192.168.2.2

PC3:

200.20.20.2网关200.20.20.1

第2步:

在S1、S2上创建VLAN加相应端口

Switch>en

Switch#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

S1(config)#hostnameS1

S1(config)#vlan10

S1(config-vlan)#exit

S1(config)#vlan20

S1(config-vlan)#exit

S1(config)#intrangef0/1-5

S1(config-if-range)#swmodeacc

S1(config-if-range)#swaccvlan10

S1(config-if-range)#exit

S1(config)#intrangef0/6-10

S1(config-if-range)#swmodeacc

S1(config-if-range)#swaccvlan20

S1(config-if-range)#exit

Switch>en

Switch#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#

Switch(config)#hostnameS2

S2(config)#vlan10

S2(config-vlan)#exit

S2(config)#vlan20

S2(config-vlan)#exit

S2(config)#vlan30

S2(config-vlan)#exit

S2(config)#intrangef0/1-f0/5

S2(config-if-range)#swmodeacc

S2(config-if-range)#swaccvlan10

S2(config-if-range)#exit

S2(config)#intrangef0/6-10

S2(config-if-range)#swmodeacc

S2(config-if-range)#swaccvlan20

S2(config-if-range)#exit

S2(config)#intf0/11

S2(config-if)#swmodeacc

S2(config-if)#swaccvlan30

S2(config-if)#exit

第3步:

为S2上的VLAN设置IP地址

Switch(config)#intvlan10

%LINK-5-CHANGED:

InterfaceVlan10,changedstatetoup

S2(config-if)#ipadd192.168.1.2255.255.255.0

S2(config-if)#nosh

S2(config-if)#exit

S2(config)#intvlan20

%LINK-5-CHANGED:

InterfaceVlan20,changedstatetoup

S2(config-if)#ipadd192.168.2.2255.255.255.0

S2(config-if)#nosh

S2(config-if)#exit

S2(config)#intvlan30

%LINK-5-CHANGED:

InterfaceVlan30,changedstatetoup

S2(config-if)#ipadd192.168.3.2255.255.255.0

S2(config-if)#nosh

S2(config-if)#exit

第4步:

设置交换机trunk口

S1(config)#intf0/24

S1(config-if)#swmotrunk

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/24,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/24,changedstatetoup

S1(config-if)#exit

交换机S2配置同S1.

第5步:

配制路由器各端口的IP地址

配制Risp

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnameRisp

Risp(config)#intf0/0

Risp(config-if)#ipadd200.20.20.1255.255.255.0

Risp(config-if)#nosh

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

Risp(config-if)#exit

Risp(config)#intS1/0

Risp(config-if)#ipadd200.20.21.2255.255.255.0

Risp(config-if)#nosh

Risp(config-if)#exit

配置Rj

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostnameRj

Rj(config)#intf0/0

Rj(config-if)#ipadd192.168.3.1255.255.255.0

Rj(config-if)#nosh

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

Rj(config-if)#exit

Rj(config)#ints1/0

Rj(config-if)#ipadd200.20.21.1255.255.255.0

Rj(config-if)#clockrate64000

%LINK-5-CHANGED:

InterfaceSerial1/0,changedstatetoup

noshutdown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial1/0,changedstatetoup

第6步:

为各个路由以及三层交换机S2配制RIPV2路由协议

Risp(config)#routerrip

Risp(config-router)#ver2

Risp(config-router)#noauto-summary

Risp(config-router)#net200.20.20.1

Risp(config-router)#net200.20.21.0

Risp(config-router)#net200.20.20.1

Risp(config-router)#nonet200.20.20.1

Risp(config-router)#net200.20.20.0

Risp(config-router)#end

Rj(config)#routerrip

Rj(config-router)#ver2

Rj(config-router)#noauto-summary

Rj(config-router)#net192.168.3.0

Rj(config-router)#net200.20.21.0

Rj(config-router)#end

配置Rj的默认路由

Rj(config)#iproute0.0.0.00.0.0.0200.20.21.2

S2(config)#routerrip

S2(config-router)#ver2

S2(config-router)#noauto-summary

S2(config-router)#net192.168.1.0

S2(config-router)#net192.168.2.0

S2(config-router)#net192.168.3.0

S2(config-router)#end

Risp的路由表

Risp#shiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

R192.168.1.0/24[120/2]via200.20.21.1,00:

00:

14,Serial1/0

R192.168.2.0/24[120/2]via200.20.21.1,00:

00:

14,Serial1/0

R192.168.3.0/24[120/1]via200.20.21.1,00:

00:

14,Serial1/0

C200.20.20.0/24isdirectlyconnected,FastEthernet0/0

C200.20.21.0/24isdirectlyconnected,Serial1/0

Rj的路由表

Rj#shiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortis200.20.21.2tonetwork0.0.0.0

R192.168.1.0/24[120/1]via192.168.3.2,00:

00:

25,FastEthernet0/0

R192.168.2.0/24[120/1]via192.168.3.2,00:

00:

25,FastEthernet0/0

C192.168.3.0/24isdirectlyconnected,FastEthernet0/0

R200.20.20.0/24[120/1]via200.20.21.2,00:

00:

01,Serial1/0

C200.20.21.0/24isdirectlyconnected,Serial1/0

S*0.0.0.0/0[1/0]via200.20.21.2

S2的路由表

S2#shiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

C192.168.1.0/24isdirectlyconnected,Vlan10

C192.168.2.0/24isdirectlyconnected,Vlan20

C192.168.3.0/24isdirectlyconnected,Vlan30

R200.20.20.0/24[120/2]via192.168.3.1,00:

00:

12,Vlan30

R200.20.21.0/24[120/1]via192.168.3.1,00:

00:

12,Vlan30

第7步:

用PC1PC2pingPC3

PC1可以ping通PC3

PC2可以ping通PC3

第8步:

在Rj上配置动态内部源地址转换

Rj(config)#ipnatpooljianghua200.20.21.100200.20.21.200net255.255.255.0

Rj(config)#ipnatinsidesourcelist1pooljinghua

Rj(config)#access-list1permit192.168.3.00.0.0.255

Rj(config)#intf0/0

Rj(config-if)#ipnatinside

Rj(config-if)#ints1/0

Rj(config-if)#ipnatoutside

Rj(config-if)#exit

第9步:

Rj与Risp采用PPP链路协议进行通信,并且采用PAP方式进行认证

Rj(config-if)#usernameRisppassjinghua

Rj(config)#ints1/0

Rj(config-if)#encapsulationppp

Rj(config-if)#pppauthenticationpap

Rj(config-if)#ppppapsent-usernameRjpassjinghua

Rj(config-if)#exit

Risp(config)#usernameRjpassjinghua

Risp(config)#ints1/0

Risp(config-if)#encapsulationppp

Risp(config-if)#pppauthenticationpap

Risp(config-if)#ppppapsent-usernameRisppassjinghua

Risp(config-if)#exit

Rj端

%LINK-5-CHANGED:

InterfaceSerial1/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

Serial1/0PAP:

IAUTH-REQid17len15

Serial1/0PAP:

Authenticatingpeer

Serial1/0PAP:

PhaseisFORWARDING,AttemptingForward

Serial1/0LCP:

StateisOpen

Serial1/0PPP:

PhaseisAUTHENTICATING

Serial1/0UsinghostnamefrominterfacePAP

Serial1/0UsingpasswordfrominterfacePAP

Serial1/0PAP:

OAUTH-REQid17len15

Serial1/0PAP:

PhaseisFORWARDING,AttemptingForward

Serial1/0PPP:

PhaseisFORWARDING,AttemptingForward

Serial1/0PhaseisESTABLISHING,FinishLCP

Serial1/0PhaseisUP

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial1/0,changedstatetoup

Risj端

%LINK-5-CHANGED:

InterfaceSerial1/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

Serial1/0LCP:

StateisOpen

Serial1/0PPP:

PhaseisAUTHENTICATING

Serial1/0UsinghostnamefrominterfacePAP

Serial1/0UsingpasswordfrominterfacePAP

Serial1/0PAP:

OAUTH-REQid17len15

Serial1/0PAP:

PhaseisFORWARDING,AttemptingForward

Serial1/0PAP:

IAUTH-REQid17len15

Serial1/0PAP:

Authenticatingpeer

Serial1/0PAP:

PhaseisFORWARDING,AttemptingForward

Serial1/0PPP:

PhaseisFORWARDING,AttemptingForward

Serial1/0PhaseisESTABLISHING,FinishLCP

Serial1/0PhaseisUP

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial1/0,changedstatetoup

第10步:

测试ping通

PC1可以ping通PC3

PC1可以ping通PC3

五、结果分析与总结

通过对网络设备的连通和对拓扑的分析,加深了对常见典型局域网拓扑的理解;通过路由建立起网络之间的连接,熟悉交换机、路由器的基本操作命令,了解了网络路由的设计与配置,达到了实验目的。

 

教师签名:

2011年月日

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1