马二.docx

上传人:b****5 文档编号:29843156 上传时间:2023-07-27 格式:DOCX 页数:13 大小:57.98KB
下载 相关 举报
马二.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

马二

网络工程设计与系统集成课程设计

 

学院:

宁夏大学新华学院

班级:

08及网络工程班

姓名:

马寅睿

学号:

12008247369

 

一、局域网技术

局域网(LAN)是指在某一区域内由多台计算机互联成的计算机组。

一般是方圆几千米以内。

局域网可以实现文件管理、软件共享、打印机共享、工作组内的日程安排、电子邮件和传真通信服务等功能。

局域网是封闭型的,可以由办公室观众的两台计算机组成,也可以由一个公司的上千台计算组成。

所用到的硬件及知识点:

该实验用到3台路由器、5台交换机、16台PC机。

VLAN划分,TRUNK,RIPV2.

1、网络结构图

二:

具体配置

(1)PC机的配置

注:

PC1、PC2、PC3、PC4、PC5、PC6、PC7、PC8、PC9、PC10、PC11、PC12、PC13、PC14、PC15配置相同

(2)交换机配置

交换机Switch1:

Switch>enable

Switch#vlandatabase

%Warning:

ItisrecommendedtoconfigureVLANfromconfigmode,

asVLANdatabasemodeisbeingdeprecated.Pleaseconsultuser

documentationforconfiguringVTP/VLANinconfigmode.

Switch(vlan)#vlan10

VLAN10added:

Name:

VLAN0010

Switch(vlan)#vlan20

VLAN20added:

Name:

VLAN0020

Switch(vlan)#vlan30

VLAN30added:

Name:

VLAN0030

Switch(vlan)#vlan40

VLAN40added:

Name:

VLAN0040

Switch(vlan)#exit

APPLYcompleted.

Exiting....

Switch#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#intfa0/1

Switch(config-if)#switchportaccessvlan10

Switch(config-if)#intfa0/2

Switch(config-if)#switchportaccessvlan20

Switch(config-if)#intfa0/3

Switch(config-if)#switchportaccessvlan30

Switch(config-if)#intfa0/4

Switch(config-if)#switchportaccessvlan40

Switch(config-if)#intfa0/24

Switch(config-if)#switchportmodetrunk

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/24,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/24,changedstatetoup

交换机Switch2:

Switch>enable

Switch#vlandatabase

%Warning:

ItisrecommendedtoconfigureVLANfromconfigmode,

asVLANdatabasemodeisbeingdeprecated.Pleaseconsultuser

documentationforconfiguringVTP/VLANinconfigmode.

Switch(vlan)#vlan10

VLAN10added:

Name:

VLAN0010

Switch(vlan)#vlan20

VLAN20added:

Name:

VLAN0020

Switch(vlan)#vlan30

VLAN30added:

Name:

VLAN0030

Switch(vlan)#vlan40

VLAN40added:

Name:

VLAN0040

Switch(vlan)#exit

APPLYcompleted.

Exiting....

Switch#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#intfa0/1

Switch(config-if)#switchportaccessvlan10

Switch(config-if)#intfa0/2

Switch(config-if)#switchportaccessvlan20

Switch(config-if)#intfa0/3

Switch(config-if)#switchportaccessvlan30

Switch(config-if)#intfa0/4

Switch(config-if)#switchportaccessvlan40

Switch(config-if)#intfa0/21

Switch(config-if)#switchportmodetrunk

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/21,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/21,changedstatetoup

Switch(config-if)#intfa0/22

Switch(config-if)#switchportmodetrunk

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/22,changedstatetodown

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/22,changedstatetoup

Switch(config-if)#intfa0/23

Switch(config-if)#switchportmodetrunk

Switch(config-if)#intfa0/24

Switch(config-if)#switchportmodetrunk

交换机Switch3:

Switch>enable

Switch#vlandatabase

%Warning:

ItisrecommendedtoconfigureVLANfromconfigmode,

asVLANdatabasemodeisbeingdeprecated.Pleaseconsultuser

documentationforconfiguringVTP/VLANinconfigmode.

Switch(vlan)#vlan10

VLAN10added:

Name:

VLAN0010

Switch(vlan)#vlan20

VLAN20added:

Name:

VLAN0020

Switch(vlan)#vlan30

VLAN30added:

Name:

VLAN0030

Switch(vlan)#vlan40

VLAN40added:

Name:

VLAN0040

Switch(vlan)#exit

APPLYcompleted.

Exiting....

Switch#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#intfa0/1

Switch(config-if)#switchportaccessvlan10

Switch(config-if)#intfa0/2

Switch(config-if)#switchportaccessvlan20

Switch(config-if)#intfa0/3

Switch(config-if)#switchportaccessvlan30

Switch(config-if)#intfa0/4

Switch(config-if)#switchportaccessvlan40

Switch(config-if)#intfa0/24

Switch(config-if)#switchportmodetrunk

交换机Switch4:

Switch>enable

Switch#vlandatabase

%Warning:

ItisrecommendedtoconfigureVLANfromconfigmode,

asVLANdatabasemodeisbeingdeprecated.Pleaseconsultuser

documentationforconfiguringVTP/VLANinconfigmode.

Switch(vlan)#vlan10

VLAN10added:

Name:

VLAN0010

Switch(vlan)#vlan20

VLAN20added:

Name:

VLAN0020

Switch(vlan)#vlan30

VLAN30added:

Name:

VLAN0030

Switch(vlan)#vlan40

VLAN40added:

Name:

VLAN0040

Switch(vlan)#exit

APPLYcompleted.

Exiting....

Switch#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#intfa0/1

Switch(config-if)#switchportaccessvlan10

Switch(config-if)#intfa0/2

Switch(config-if)#switchportaccessvlan20

Switch(config-if)#intfa0/3

Switch(config-if)#switchportaccessvlan30

Switch(config-if)#

Switch(config-if)#intfa0/4

Switch(config-if)#switchportaccessvlan40

Switch(config-if)#intfa0/23

Switch(config-if)#switchportmodetrunk

Switch(config-if)#intfa0/24

Switch(config-if)#switchportmodetrunk

路由器配置Router1

Router>enable

Router#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#intfa0/0

Router(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

Router(config-if)#intfa0/0.1

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.1,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.1,changedstatetoupRouter(config-subif)#en

Router(config-subif)#encapsulationdot1q10

Router(config-subif)#ipaddr192.168.61.1255.255.255.0

Router(config-subif)#noshutdown

Router(config-subif)#intfa0/0.2

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.2,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.2,changedstatetoupRouter(config-subif)#en

Router(config-subif)#encapsulationdot1q20

Router(config-subif)#ipaddr202.201.61.1255.255.255.0

Router(config-subif)#noshutdown

Router(config-subif)#intfa0/0.3

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.3,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.3,changedstatetoupRouter(config-subif)#en

Router(config-subif)#encapsulationdot1q30

Router(config-subif)#ipaddr128.10.61.1255.255.255.0

Router(config-subif)#noshutdown

Router(config-subif)#intfa0/0.4

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.4,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.4,changedstatetoupRouter(config-subif)#en

Router(config-subif)#encapsulationdot1q40

Router(config-subif)#ipaddr10.1.61.1255.255.255.0

Router(config-subif)#noshutdown

Router(config-subif)#exit

Router(config)#ints0/0/0

Router(config-if)#ipaddr158.1.61.2255.255.255.0

Router(config-if)#clockrate56000

Router(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial0/0/0,changedstatetodown

路由器Router2

Router>enable

Router#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#ints0/0/0

Router(config-if)#ipaddr158.1.61.3255.255.255.0

Router(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceSerial0/0/0,changedstatetoup

Router(config-if)#

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/0/0,changedstatetoup

Router(config-if)#iproute158.1.61.0255.255.255.0fa0/0

交换机Switch0

Switch>enable

Switch#vlandatabase

%Warning:

ItisrecommendedtoconfigureVLANfromconfigmode,

asVLANdatabasemodeisbeingdeprecated.Pleaseconsultuser

documentationforconfiguringVTP/VLANinconfigmode.

Switch(vlan)#vlan50

VLAN50added:

Name:

VLAN0050

Switch(vlan)#exit

APPLYcompleted.

Exiting....

Switch#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#intfa0/1

Switch(config-if)#switchportaccessvlan50

Switch(config-if)#exit

Switch(config)#intfa0/24

Switch(config-if)#switchportmodetrunk

路由器Router0

Router>enable

Router#configt

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#intfa0/0

Router(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

Router(config-if)#intfa0/0.1

%LINK-5-CHANGED:

InterfaceFastEthernet0/0.1,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0.1,changedstatetoupRouter(config-subif)#en

Router(config-subif)#encapsulationdot1q50

Router(config-subif)#intfa0/1

Router(config-if)#ipaddr10.3.61.2255.255.255.0

Router(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceFastEthernet0/1,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/1,changedstatetoup

四、测试

(1)同一VLAN之间的测试

PC9(202.201.61.2)和PC11(10.1.61.2)之间的测试

(2)不同网段之间的测试

1、PC15(10.1.61.5)和PC4(192.168.61.2)

注:

其它的测试如上图所示,均可Ping通。

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

当前位置:首页 > 求职职场 > 社交礼仪

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

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