组建一个小型局域网

  • 格式:docx
  • 大小:245.29 KB
  • 文档页数:9

下载文档原格式

  / 9
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

组建一个小型局域网集团标准化工作小组 #Q8QGGQT-GX8G08Q8-GNQGJ8-MHHGN#

实验:组建局域网

1、局域网技术

局域网(LAN)是指在某一区域内由多台计算机互联成的计算机组。一般是方圆几千米以内。局域网可以实现文件管理、软件共享、打印机共享、工作组内的日程安排、电子邮件和传真通信服务等功能。局域网是封闭型的,可以由办公室观众的两台计算机组成,也可以由一个公司的上千台计算组成。

2、所用到的硬件及知识点:该实验用到4台路由器、3台交换机、5台PC 机。VLAN划分,TRUNK,RIPV2.

3、拓扑图:

(1) PC地址表:

(2)端口分配-交换机

(3)接口分配表-路由器

4、局域网具体配置

(1)PC机的配置

注:PC2、PC3、PC4、PC5、PC6、PC7配置相同

(2)设交换机主机名

例:

Switch1:

Switch>enable

Switch#configure terminal

Switch(config)#hostname s1 0.

(5)时钟设置

比如R2中的s0/3/0

R2(config)#interface serial0/3/0

R2(config-if)#ip address

R2(config-if)#clock rate 64000

R2(config-if)#no shutdown

5、测试

PC1为VLAN 40,PC2为VLAN 50,PC3为VLAN 60,PC4为VLAN 61,PC5和PC6同属于VLAN 70,PC7为VLAN 71

(1)同一VLAN之间的测试

PC5()和PC6()之间的测试

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

1、PC1()和PC2()

先到相应的网段0,再根据路由表进行转发。

2、PC1()和PC3()

先到相应的网段,再根据路由表进行转发。3、PC6()和PC7()

先到相应的网段0,再根据路由表进行转发。注:其它的测试如上图所示,均可Ping通。5、举例R3中的配置

R3>enable

R3#show run

Building configuration...

Current configuration : 1081 bytes

!

version

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption

!

hostname R3

!

!

interface FastEthernet0/0 no ip address

duplex auto

speed auto

!

interface FastEthernet0/ encapsulation dot1Q 61 !

interface FastEthernet0/ encapsulation dot1Q 70 !

interface FastEthernet0/ encapsulation dot1Q 71 !

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/3/0 !

interface Serial0/3/1 !

interface Vlan1

no ip address

shutdown

!

router rip

version 2

!

ip classless

line con 0

line vty 0 4

login

!

end

S1#show running-config

Building configuration...

Current configuration : 1088 bytes

!

version

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption

!

hostname S1

!

interface FastEthernet0/1

switchport access vlan 40

!

interface FastEthernet0/2

switchport access vlan 50

interface FastEthernet0/3 switchport mode trunk

!

interface Vlan1

no ip address

shutdown

!

interface Vlan40

no ip address

!

interface Vlan50

no ip address

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

end

6、总结与心得