网络工程实践报告.docx

上传人:b****5 文档编号:8226706 上传时间:2023-01-30 格式:DOCX 页数:13 大小:43.93KB
下载 相关 举报
网络工程实践报告.docx_第1页
第1页 / 共13页
网络工程实践报告.docx_第2页
第2页 / 共13页
网络工程实践报告.docx_第3页
第3页 / 共13页
网络工程实践报告.docx_第4页
第4页 / 共13页
网络工程实践报告.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

网络工程实践报告.docx

《网络工程实践报告.docx》由会员分享,可在线阅读,更多相关《网络工程实践报告.docx(13页珍藏版)》请在冰豆网上搜索。

网络工程实践报告.docx

网络工程实践报告

 

实践课程设计报告

题目网络工程实践

 

一、交换机实验

1、基本配置

(1)交换机各命令操作模式的进入和退出

Switch>(处于用户模式)

Switch>enable14(从用户模式进入特权模式)

Passwordadmin

Switch#

Switch#configureterminal(从特权模式进入全局模式)

Switch(config)#

Switch(config-if)#exit

(2)交换机主机名的配置

Switch(config)#hostnameSA(注:

将主机名配置为“SA”)

SA(config)#

(3)为交换机分配管理IP地址

Switch(config)#interfacevlan1(VLAN1是交换机默认的VLAN)

Switch(config-if)#ipaddress192.168.120.1255.255.255.0

Switch(config-if)#noshutdown

2、VLAN的配置

(1)创建VLAN

Switch(config)#VLAN5(创建VLAN5)

Switch(config-vlan)#nameexmp5(将VLAN5命名为exmp5)

Switch(config)#VLAN10(创建VLAN10)

Switch(config-vlan)#nameexmp10(将VLAN10命名为exmp10)

(2)把交换机端口分配到VLAN中

Switch(config)#interfacefastethernet0/5(进入0/5端口模式)

Switch(config-if)#switchaccessvlan5(把端口0/5分配给VLAN5)

Switch(config)#interfacefastethernet0/10(进入0/10端口模式)

Switch(config-if)#switchaccessvlan10(把端口0/10分配给VLAN10)

我们还可以把连续若干个端口一次分配给某个VLAN:

Switch(config)#interfacerangefastethernet0/2-4

Switch(config-if)#switchaccessvlan5

(3)显示VLAN信息

Switch#showVLAN

(4)删除VLAN

Switch(config)#noVLAN10

3、跨交换机的VLAN

(1)在交换机SA上创建VLAN10和VLAN20,并把0/10端口划分给VLAN10、0/20端口划分给VLAN20

SA(config)#VLAN10

SA(config-vlan)#nameexmp10

SA(config)#VLAN20

SA(config-vlan)#nameexmp20

SA(config)#interfacefastethernet0/10

SA(config-if)#switchaccessvlan10

SA(config)#interfacefastethernet0/20

SA(config-if)#switchaccessvlan20

(2)把交换机SA上与交换机SB相连的0/24端口配置为Trunk端口

SA(config)#interfacefastethernet0/24

SA(config-if)#switchportmodetrunk(把端口0/24配置为Trunk端口)

(3)在交换机SB上创建VLAN10,并把0/10端口划分给VLAN10

SB(config)#VLAN10

SB(config-vlan)#nameexmp10

SB(config)#interfacefastethernet0/10

SB(config-if)#switchaccessvlan10

(4)把交换机SB上与交换机SA相连的端口0/24配置为Trunk端口

SB(config)#interfacefastethernet0/24

SB(config-if)#switchportmodetrunk

(5)验证Trunk端口

SA#showinterfacefastethernet0/24switchport

4、配置生成树协议

(1)在交换机SA上创建VLAN

SA(config)#VLAN10

SA(config-vlan)#nameexmp10

SA(config)#VLAN20

SA(config-vlan)#nameexmp20

SA(config)#interfacefastethernet0/10

SA(config-if)#switchaccessvlan10

SA(config)#interfacefastethernet0/20

SA(config-if)#switchaccessvlan20

(2)在交换机SA上把端口0/23-24配置为Trunk端口

SA(config)#interfacerangefastethernet0/23-24

SA(config-if)#switchportmodetrunk

(3)在交换机SB上创建VLAN10,并把端口0/10划分到VLAN10中

SB(config)#VLAN10

SB(config-vlan)#nameexmp10

SB(config)#interfacefastethernet0/10

SB(config-if)#switchaccessvlan10

(4)在交换机SB上把端口0/23-24配置为Trunk端口

SB(config)#interfacerangefastethernet0/23-24

SB(config-if)#switchportmodetrunk

(5)配置快速生成树协议

在交换机SA上:

SA(config)#spanning-tree

SA(config-if)#spanning-treemoderstp

在交换机SB上:

SB(config)#spanning-tree

SB(config-if)#spanning-treemoderstp

(6)验证快速生成树协议

SA(config)#showspanning-tree

二、路由器实验

1、基本配置

(1)路由器各命令操作模式的进入和退出

Router>(处于用户模式)

Router>enable14(从用户模式进入特权模式)

Password:

admin

Router#

Router#configureterminal(从特权模式进入全局模式)

Router(config)#

Router(config)#interfaceserial1/2(从全局模式进入端口模式)

Router(config-if)#

Router(config-if)#exit(exit是返回上一级模式命令)

Router(config)#

Router(config-if)#end(exit是返回特权模式命令)

Router#

(2)路由器命令的帮助信息

Router>?

(显示当前模式下所有可以执行的命令)

Router(config)#int?

(显示当前模式下所有以int开头的命令)

Router(config-if)#ip?

(显示当前模式下ip命令后可以跟随的参数)

(3)路由器命令的简写与自动补齐

Router(config)#intf1/1

(路由器支持命令简写,其代表interfacefastethernet0/5)

Router(config)#int(按Tab键将自动补齐interface)

Router(config)#interface

(4)路由器RA主机名的配置

Router(config)#hostnameRA(注:

将主机名配置为“RA”)

RA(config)#

(5)为路由器RA的DCE端口分配IP地址、时钟频率和带宽频率

RA(config)#interfaceserial1/2(进入RA的s1/2端口模式)

RA(config-if)#ipaddress192.168.120.100255.255.255.0

RA(config-if)#clockrate64000

(在DCE接口上配置时钟频率为64000,其它端口不用配置)

RA(config-if)#bandwidth512(配置端口的带宽频率为512KB)

RA(config-if)#noshutdown(使端口处于活动状态)

(6)路由器RB端口参数的配置

Router(config)#hostnameRB

RB(config)#

RB(config)#interfaceserial1/3

RB(config-if)#ipaddress192.168.120.101255.255.255.0

RB(config-if)#bandwidth512

RA(config-if)#noshutdown

(7)查看路由器的配置信息

RA#showversion(查看路由器版本信息)

RA#showrunning-config(查看路由器当前生效配置)

RA#showinterfaceSerial1/2(查看端口s1/2配置信息)

RA#showiproute(查看路由器路由信息)

2、静态路由

(1)路由器RA端口参数的配置

RA(config)#interfaceserial1/2

RA(config-if)#ipaddress192.168.120.100255.255.255.0

RA(config-if)#clockrate64000

RA(config-if)#noshutdown

RA(config)#interfacefastethernet1/1

RA(config-if)#ipaddress192.168.121.100255.255.255.0

RA(config-if)#noshutdown

(2)路由器RB端口参数的配置

RB(config)#interfaceserial1/3

RB(config-if)#ipaddress192.168.120.101255.255.255.0

RB(config-if)#noshutdown

RB(config)#interfacefastethernet1/1

RB(config-if)#ipaddress192.168.122.100255.255.255.0

RB(config-if)#noshutdown

(3)在路由器RA上配置静态路由

RA(config)#iproute192.168.122.0255.255.255.0192.168.120.101

或:

RA(config)#iproute192.168.122.0255.255.255.0serial1/2

(4)在路由器RB上配置静态路由

RB(config)#iproute192.168.121.0255.255.255.0192.168.120.100

或:

RA(config)#iproute192.168.121.0255.255.255.0serial1/3

(5)查看路由器上的静态路由信息

RA#showipinterfacebrief

三、综合实践

1、实践题目

网络工程实践

2、实践要求

使用5-6台设备组建连通网络;

画出拓扑图;

进行子网划分,并给网络中的设备分配IP地址;

要包含跨交换机的VLAN;

对交换机和路由器进行必要的配置,使不同的子网之间能够进行通信。

3、网络拓扑结构

SARARB

RC

VLAN10F0/1F1/1S1/2S1/3F1/1S1/4

F0/23F0/23

F0/23F0/23F1/1F0/10

SBRA:

S1/2=192.168.60.1/24SC

RB:

S1/2=192.168.60.2/24

RC:

S1/2=192.168.60.3/24

RA:

F1/1=192.168.10.1/24

RB:

F1/1=192.168.40.1/24

RC:

F1/1=192.168.20.1/24

VLAN10VLAN20VLAN30VLAN10

 

192.168.10.34192.168.10.65192.168.40.54192.168.40.33

 

4、小组成员及分工

SA:

孟坤

SB:

贾琳

SC:

王德卿

RA:

吴鹏超

RB:

冯贻国

RC:

朱宝亮

5、设备的配置信息

设备RA:

设备RB:

设备SC:

SC(config)#

SC(config)#

SC(config)#vlan10

2010-05-0613:

36:

51@5-CONFIG:

Configuredfromoutband

SC(config-vlan)#nameexmp10

2010-05-0613:

37:

04@5-CONFIG:

Configuredfromoutband

SC(config-vlan)#exit

2010-05-0613:

37:

20@5-CONFIG:

Configuredfromoutband

SC(config)#vlan20

2010-05-0613:

37:

26@5-CONFIG:

Configuredfromoutband

SC(config-vlan)#nameexmp20

2010-05-0613:

37:

35@5-CONFIG:

Configuredfromoutband

SC(config-vlan)#exit

2010-05-0613:

37:

43@5-CONFIG:

Configuredfromoutband

SC(config)#interfacefastethernet0/20

2010-05-0613:

38:

43@5-CONFIG:

Configuredfromoutband

SC(config-if)#switchaccessvlan10

2010-05-0613:

39:

09@5-CONFIG:

Configuredfromoutband

SC(config-if)#interfacefastethernet0/10

2010-05-0613:

39:

35@5-CONFIG:

Configuredfromoutband

SC(config-if)#switchaccessvlan20

2010-05-0613:

39:

55@5-CONFIG:

Configuredfromoutband

SC(config-if)#exit

2010-05-0613:

40:

02@5-CONFIG:

Configuredfromoutband

SC(config)#interfacerangefastethernet0/23-24

2010-05-0613:

40:

40@5-CONFIG:

Configuredfromoutband

SC(config-if-range)#switchportmodetrunk

2010-05-0613:

41:

18@5-CONFIG:

Configuredfromoutband

SC(config-if-range)#exit

2010-05-0613:

42:

28@5-CONFIG:

Configuredfromoutband

SC(config)#spanning-tree

2010-05-0613:

42:

45@5-CONFIG:

Configuredfromoutband

SC(config)#spanning-treemoderstp

2010-05-0613:

43:

09@5-CONFIG:

Configuredfromoutband

SC(config)#interfacevlan10

2010-05-0613:

43:

35@5-CONFIG:

Configuredfromoutband

SC(config-if)#ipaddress192.168.40.33255.255.255.0

2010-05-0613:

44:

04@5-CONFIG:

Configuredfromoutband

SC(config-if)#noshutdown

2010-05-0613:

44:

24@5-CONFIG:

Configuredfromoutband

SC(config-if)#exit

2010-05-0613:

44:

30@5-CONFIG:

Configuredfromoutband

SC(config)#interfacevlan20

2010-05-0613:

44:

43@5-CONFIG:

Configuredfromoutband

SC(config-if)#ipaddress192.168.40.54255.255.255.0

2010-05-0613:

45:

07@5-CONFIG:

Configuredfromoutband

SC(config-if)#exit

2010-05-0613:

46:

08@5-CONFIG:

Configuredfromoutband

SC(config)#

SC(config)#end

设备4:

设备5:

设备6:

6、SC的配置结果

(showrun)

SC#showrunning-config

Systemsoftwareversion:

1.66(3)BuildSep 72006Rel

Buildingconfiguration...

Currentconfiguration:

1020bytes

!

version1.0

!

hostnameSC

vlan1

!

vlan10

 nameexmp10

!

vlan30

 nameexmp20

!

enablesecretlevel145%Y>H.Y*TQ^C,tZ[VT

enablesecretlevel155(Zwj9=G17r7R:

>H.Vpu_;C,t[pU0

!

spanning-treemoderstp

spanning-tree

interfacefastEthernet0/1

 switchportmodetrunk

!

interfacefastEthernet0/2

 switchportmodetrunk

!

interfacefastEthernet0/3

 switchportmodetrunk

!

interfacefastEthernet0/4

 switchportmodetrunk

!

interfacefastEthernet0/5

 switchportmodetrunk

!

interfacefastEthernet0/6

 switchportmodetrunk

!

interfacefastEthernet0/7

 switchportmodetrunk

!

interfacefastEthernet0/8

 switchportmodetrunk

!

interfacefastEthernet0/9

 switchportmodetrunk

!

interfacefastEthernet0/10

 switchportmodetrunk

!

interfacefastEthernet0/20

 switchportaccessvlan10

!

interfacevlan10

 noshutdown

 ipaddress192.168.40.33255.255.255.0

!

interfacevlan30

 ipaddress192.168.40.54255.255.255.0

!

end

四、实践总结

通过两周的时间来对网络的认识,我对网络知识有了初步对交换机和路由器的了解和认识,了解了交换机与路由器主要功能的区别和之间的联系。

对于交换机:

学会交换机的基本连接和配置方法,了解了交换机在网络互连中的作用;学会局域网互连、局域网与广域网互连的方法,了解了构建小型计算机网络的基本知识,并且熟悉真实环境下交换机使用和熟悉交换机的配置与管理方法。

对于路由器:

学会路由器的基本连接和配置方法,了解了路由器在网络互连中的作用;学会了网互连、局域网与广域网互连的方法,了解了建小型计算机网络的基本知识;熟悉了该实践中的路由器特性;和掌握华为路由器基本配置方法。

通过Console口配置路由器:

通过Console口配置QuidwayR系列中低端路由器和掌握Console口方式配置路由器。

当然交换机的种类很多分类也不少,例如有两层交换机和三层交换机,而在两层交换机中有大致分为了六类,有时间的原因本次的时间我们不可能对它们的认识很深,这需要我们在课下自己动手操作,我觉得本次实践一个人的力量是不够的这需要团队的合作,以及对我们以后的工作会有很大的帮助。

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

当前位置:首页 > 高等教育 > 工学

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

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