组建一个小型局域网Word格式.docx

上传人:b****3 文档编号:14434751 上传时间:2022-10-22 格式:DOCX 页数:12 大小:138.60KB
下载 相关 举报
组建一个小型局域网Word格式.docx_第1页
第1页 / 共12页
组建一个小型局域网Word格式.docx_第2页
第2页 / 共12页
组建一个小型局域网Word格式.docx_第3页
第3页 / 共12页
组建一个小型局域网Word格式.docx_第4页
第4页 / 共12页
组建一个小型局域网Word格式.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

组建一个小型局域网Word格式.docx

《组建一个小型局域网Word格式.docx》由会员分享,可在线阅读,更多相关《组建一个小型局域网Word格式.docx(12页珍藏版)》请在冰豆网上搜索。

组建一个小型局域网Word格式.docx

默认网关

PC1

200.30.40.2

255.255.255.0

200.30.40.1

PC2

200.30.50.2

200.30.50.1

PC3

201.30.60.2

201.30.60.1

PC4

202.30.61.3

202.30.61.1

PC5

202.30.70.2

202.30.70.1

PC6

202.30.70.3

PC7

202.30.71.3

202.30.71.1

(2)端口分配-交换机

交换机号

端口

所连PC

分配VLAN

S1

Fa0/1

VLAN40

Fa0/2

VLAN50

S2

VLAN60

S3

VLAN61

S4

VLAN70

S5

Fa0/3

VLAN71

S2(config-if)#switchportmodetrunk//将f0/2转换成trunk

s2(config-if)#noshutdown

s2(config-if)#exit

s2(config)#interfaceFastEthernet0/1

s2(config)#vlan60//创建VLAN60

S2(config-vlan)#intervlan60

s2(config-if)#interfaceFastEthernet0/1

s2(config-if)#switchportaccessvlan60//加入VLAN60

注:

如果交换机与交换机,交换机与路由器相连要强制转换为trunk。

若交换机与PC则不需要。

S1,S3,S4如s2配置。

(4)路由器设置

R1:

R1(config)#interfaceFastEthernet0/0

R1(config-if)#noshutdown

R1(config-if)#exit

R1(config)#interfaceserial0/3/0

R1(config)#ipaddress200.0.0.2255.255.255.0//写入IP

R1(config)#interfaceFastEthernet0/0.40

R1(config-subif)#encapsulationdot1q40//封装子接口到VLAN40

R1(config-subif)#ipaddress200.30.40.1255.255.255.0

R1(config-subif)#exit

R1(config)#interfaceFastEthernet0/0.50

R1(config-subif)#encapsulationdot1q50

R1(config-subif)#ipaddress200.30.50.1255.255.255.0

R2(config)#interfaceFastEthernet0/0.60

R2(config-subif)#encapsulationdot1q60

R2(config-subif)#ipaddress201.30.60.1255.255.255.0

R2(config-subif)#exitR3(config)#interfaceFastEthernet0/0.60

R3(config-subif)#encapsulationdot1q61

R3(config-subif)#ipaddress202.30.61.1255.255.255.0

R3(config-subif)#exit

R3(config)#interfaceFastEthernet0/0.70

R3(config-subif)#encapsulationdot1q70

R3(config-subif)#ipaddress202.30.70.1255.255.255.0

R3(config)#interfaceFastEthernet0/0.71

R3(config-subif)#encapsulationdot1q71

R3(config-subif)#ipaddress202.30.71.1255.255.255.0

R1(config)#routerrip

R1(config-router)#version2//版本

R1(config-router)#network200.0.0.0//转发的网络

R1(config-router)#network200.30.40.0

R1(config-router)#network200.30.50.0

R1(config-router)#exit

R2转发的网络

R2(config-router)#network200.0.0.0

R2(config-router)#network210.0.0.0

R2(config-router)#network201.30.60.0

R3转发的网络

R3(config-router)#network210.0.0.0

R3(config-router)#network220.0.0.0

R3(config-router)#network202.30.61.0

R3(config-router)#network202.30.70.0

R3(config-router)#network202.30.71.0

R4转发的网络

R4(config-router)#network220.0.0.0

(5)时钟设置

比如R2中的s0/3/0

R2(config)#interfaceserial0/3/0

R2(config-if)#ipaddress200.0.0.3255.255.255.0

R2(config-if)#clockrate64000

R2(config-if)#noshutdown

5、测试

PC1为VLAN40,PC2为VLAN50,PC3为VLAN60,PC4为VLAN61,PC5和PC6同属于VLAN70,PC7为VLAN71

(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(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中的配置

R3>

enable

R3#showrun

Buildingconfiguration...

Currentconfiguration:

1081bytes

!

version12.4

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

hostnameR3

ipname-server0.0.0.0

interfaceFastEthernet0/0

noipaddress

duplexauto

speedauto

interfaceFastEthernet0/0.61

encapsulationdot1Q61

ipaddress202.30.61.1255.255.255.0

interfaceFastEthernet0/0.70

encapsulationdot1Q70

ipaddress202.30.70.1255.255.255.0

interfaceFastEthernet0/0.71

encapsulationdot1Q71

ipaddress202.30.71.1255.255.255.0

interfaceFastEthernet0/1

shutdown

interfaceSerial0/2/0

interfaceSerial0/2/1

interfaceSerial0/3/0

ipaddress210.0.0.3255.255.255.0

interfaceSerial0/3/1

ipaddress220.0.0.3255.255.255.0

interfaceVlan1

routerrip

version2

network202.30.61.0

network202.30.70.0

network202.30.71.0

network210.0.0.0

network220.0.0.0

ipclassless

linecon0

linevty04

login

end

S1#showrunning-config

1088bytes

version12.1

noservicetimesta

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

当前位置:首页 > 总结汇报

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

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