ImageVerifierCode 换一换
格式:DOCX , 页数:11 ,大小:120.90KB ,
资源ID:5443371      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/5443371.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(组建一个小型局域网.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

组建一个小型局域网.docx

1、组建一个小型局域网实验:组建局域网1、局域网技术 局域网(LAN)是指在某一区域内由多台计算机互联成的计算机组。一般是方圆几千米以内。局域网可以实现文件管理、软件共享、打印机共享、工作组内的日程安排、电子邮件和传真通信服务等功能。局域网是封闭型的,可以由办公室观众的两台计算机组成,也可以由一个公司的上千台计算组成。2、所用到的硬件及知识点:该实验用到4台路由器、3台交换机、5台PC机。VLAN划分,TRUNK,RIPV2.3、拓扑图:(1) PC地址表:设备(主机名)IP地址子网掩码默认网关PC1200.30.40.2255.255.255.0200.30.40.1PC2200.30.50.2

2、255.255.255.0200.30.50.1PC3201.30.60.2255.255.255.0201.30.60.1PC4202.30.61.3255.255.255.0202.30.61.1PC5202.30.70.2255.255.255.0202.30.70.1PC6202.30.70.3255.255.255.0202.30.70.1PC7202.30.71.3255.255.255.0202.30.71.1(2)端口分配交换机交换机号端口所连PC分配VLANS1Fa0/1PC1VLAN 40S1Fa0/2PC2VLAN 50S2Fa0/1PC3VLAN 60S3Fa0/1PC

3、4VLAN 61S4Fa0/1PC5VLAN 70S5Fa0/2PC6VLAN 70S5Fa0/3PC7VLAN 71(3)接口分配表路由器路由器接口地址R1S0/3/0200.0.0.2R2S0/3/0200.0.0.3R2S0/3/1210.0.0.2R3S0/3/0210.0.0.3R3S0/3/1220.0.0.3R4S0/3/0220.0.0.24、局域网具体配置(1)PC机的配置注:PC2、PC3、PC4、PC5、PC6、PC7配置相同(2)设交换机主机名例:Switch1:SwitchenableSwitch#configure terminalSwitch(config)#ho

4、stname s1 /s1为所设置的交换机名称S1(config)#exitRouter 1:RouterenableRouter#configure terminalRouter (config)#hostname R1 /s1为所设置的交换机名称R1(config)#exit注:路由器R2,R3,R4与R1设置相同。交换机S2,S3,S4,S5与S1的设置相同(3)VLAN设置例: S2S2(config)#interface FastEthernet0/2 S2(config-if)#switchport mode trunk /将f0/2转换成trunks2(config-if)#no

5、 shutdowns2(config-if)#exits2(config)# interface FastEthernet0/1s2(config-if)#no shutdowns2(config-if)#exits2(config)#vlan 60 /创建VLAN 60S2(config-vlan)#inter vlan 60s2(config-if)# interface FastEthernet0/1s2(config-if)#switchport access vlan 60 /加入VLAN 60s2(config-if)#no shutdown注:如果交换机与交换机,交换机与路由器相

6、连要强制转换为trunk。若交换机与PC则不需要。S1,S3,S4如s2配置。(4)路由器设置R1:R1(config)# interface FastEthernet0/0R1(config-if)#no shutdownR1(config-if)#exitR1(config)# interface serial0/3/0R1(config)#ip address 200.0.0.2 255.255.255.0 /写入IPR1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface FastEthernet0/0.40R1(c

7、onfig-subif)#encapsulation dot1q 40 /封装子接口到VLAN 40R1(config-subif)#ip address 200.30.40.1 255.255.255.0R1(config-subif)#exitR1(config)#interface FastEthernet0/0.50R1(config-subif)#encapsulation dot1q 50 R1(config-subif)#ip address 200.30.50.1 255.255.255.0R1(config-subif)#exitR2(config)#interface Fa

8、stEthernet0/0.60R2(config-subif)#encapsulation dot1q 60 R2(config-subif)#ip address 201.30.60.1 255.255.255.0R2(config-subif)#exit R3(config)#interface FastEthernet0/0.60R3(config-subif)#encapsulation dot1q 61 R3(config-subif)#ip address 202.30.61.1 255.255.255.0R3(config-subif)#exitR3(config)#inter

9、face FastEthernet0/0.70R3(config-subif)#encapsulation dot1q 70 R3(config-subif)#ip address 202.30.70.1 255.255.255.0R3(config-subif)#exitR3(config)#interface FastEthernet0/0.71R3(config-subif)#encapsulation dot1q 71 R3(config-subif)#ip address 202.30.71.1 255.255.255.0R3(config-subif)#exitR1(config)

10、#router ripR1(config-router)#version 2 /版本R1(config-router)#network 200.0.0.0 /转发的网络R1(config-router)#network 200.30.40.0 R1(config-router)#network 200.30.50.0R1(config-router)#exit注:R2转发的网络R2(config-router)#network 200.0.0.0R2(config-router)#network 210.0.0.0R2(config-router)#network 201.30.60.0R3转

11、发的网络R3(config-router)#network 210.0.0.0R3(config-router)#network 220.0.0.0R3(config-router)#network 202.30.61.0R3(config-router)#network 202.30.70.0R3(config-router)#network 202.30.71.0R4转发的网络R4(config-router)#network 220. 0. 0.0 (5)时钟设置比如R2中的s0/3/0R2(config)# interface serial0/3/0R2(config-if)#ip a

12、ddress 200.0.0.3 255.255.255.0R2(config-if)#clock rate 64000R2(config-if)#no shutdown5、测试PC1为VLAN 40,PC2为VLAN 50,PC3为VLAN 60,PC4为VLAN 61,PC5和PC6同属于VLAN 70,PC7为VLAN 71(1)同一VLAN之间的测试PC5(200.30.70.2)和PC6(200.30.70.3)之间的测试(2)不同网段之间的测试1、PC1(200.30.40.2)和PC2(200.30.50.2)先到相应的网段200.30.50.0,再根据路由表进行转发。2、PC1

13、(200.30.40.2)和PC3(201.30.60.2)先到相应的网段201.30.60.0,再根据路由表进行转发。3、PC6(202.30.70.3)和PC7(202.30.71.3)先到相应的网段202.30.71.0,再根据路由表进行转发。注:其它的测试如上图所示,均可Ping通。5、举例R3中的配置R3enableR3#show runBuilding configuration.Current configuration : 1081 bytes!version 12.4no service timestamps log datetime msecno service times

14、tamps debug datetime msecno service password-encryption!hostname R3!ip name-server 0.0.0.0!interface FastEthernet0/0 no ip address duplex auto speed auto!interface FastEthernet0/0.61 encapsulation dot1Q 61 ip address 202.30.61.1 255.255.255.0!interface FastEthernet0/0.70 encapsulation dot1Q 70 ip ad

15、dress 202.30.70.1 255.255.255.0!interface FastEthernet0/0.71 encapsulation dot1Q 71 ip address 202.30.71.1 255.255.255.0!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial0/2/0 no ip address shutdown!interface Serial0/2/1 no ip address shutdown!interface Serial0

16、/3/0 ip address 210.0.0.3 255.255.255.0!interface Serial0/3/1 ip address 220.0.0.3 255.255.255.0!interface Vlan1 no ip address shutdown!router rip version 2 network 202.30.61.0 network 202.30.70.0 network 202.30.71.0 network 210.0.0.0 network 220.0.0.0!ip classless!line con 0line vty 0 4 login!endS1

17、#show running-configBuilding configuration.Current configuration : 1088 bytes!version 12.1no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname S1!interface FastEthernet0/1 switchport access vlan 40!interface FastEthernet0/2 switchpor

18、t access vlan 50!interface FastEthernet0/3 switchport mode trunk!interface Vlan1 no ip address shutdown!interface Vlan40 no ip address!interface Vlan50 no ip addressline con 0!line vty 0 4 loginline vty 5 15 login!end6、总结与心得本次所做的实验,所运用到的知识均为我们上几个星期所配置过的实验。如RIP、VLAN、子网的划分等等。通过各种路由和交换技术,我们可以组建更为复杂的局域网,本次的实验只是一个简化局域网,但从这次的实验中,我们可以充分的了解到,VLAN技术可以使网段的分配和管理变得更加方便,灵活。本次实验,让我知道,每做一件事要细心,细心再细心,程序要时时检查,因为一个小细节就有可能会使你的程序发生错误,最后严重的还要重新来过。最重要的是,一定要明白程序中的所以代码,并且发生问题,一定尽量自行解决,以加深自己的印象,依赖别人是不能提高自己的。

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

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