计算机网络实训总结报告_第1页
计算机网络实训总结报告_第2页
计算机网络实训总结报告_第3页
计算机网络实训总结报告_第4页
计算机网络实训总结报告_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、计算机网络实训总结报告1 构建小型家庭办公网络新建拨号连接:开始、所有程序、附件、通讯、新建连接向导新建拨号连接:开始、所有程序、附件、通讯、新建连接向导双绞线制作直通双绞线线序( 18 号线):白橙 橙 白绿 蓝 白蓝 绿 白棕 棕交叉双绞线线序( 18 号线):白绿 绿 白橙 蓝 白蓝 橙 白棕 棕IP 配置本地连接、属性、常规、 Internet 协议( TCP/IP ) 连通性测试:开始、运行、 cmd 命令、确定、操作系统命令行窗口C: Documents ang setting Administrator>ping 0回车查看应答信息 双网卡代理服务接入

2、 ADSL操作系统命令行窗口 C: Documents ang setting Administrator> ipconfig/all 查询 IP 地址、子网掩码、默认网关、 DNS 服务地址 构建中小型企业内部网络MAC 地址:交换机有学习该地址的功能MAC 地址是指任何网络结点的物理地址,全球唯一。MAC 地址 PC 查询: ipconfig/allMAC 地址交换机中查询:show mac-address-table或 show interface帧结构:帧目的地址、帧源地址、帧类型、帧数据、帧校验 如果交换机中该表已满, 这时新地址的数据帧发过来的处理: 在各 MAC 地址都 没

3、有过期的情况下实行广播,有过期地址时,替换过期地址,OSI 模型(由高到低):应用、表示、会话、传输、网络、数据链路、物理层 交换机工作在数据链路层,路由器工作在网络层交换机带内管理 开始、程序、附件、通讯、超级终端、新建连接(代表性名称) 、链接到( COM 口)、 COM 属性(还原为默认值) 、进入超级终端初始界面2 Telnet 配置带内管理A 进入全局配置模式Switch>enableSwitch#configSwitch(Config)#B 在群居配置模式下,为交换机设置授权 Telnet用户Switch (Config) # telnet-user dcun (新建连接名称

4、)password 0 (代表明码, 密码时为7) digital (用户设置的密码)Switch( Config) # interface vlan 1Switch( Config-Interface-Vlan1) # ip address 00 验证 PC 的连通性:Switch # ping 0 0应答信息中“!”表示联通“ .”表示失败PC 登陆交换机配置: PC 中单击“开始”、运行,对话框 ”telnet 00”Login:dcun Password:*Switch>交换机的 Web

5、 管理带内管理 全局模式下,为交换机设置授权的 HTTP 用户 Switch( Config) # web-user admin password 0 digital 在 PC 端使用 HTTP 登陆交换机进行 Web 管理 地址栏: http: /00 回车,输入用户名( admin )与口令( digital ) 进入管理界面交换机配置文件管理带内管理使用 Tftpd 32.Exe 文件在交换机中启动配置文件的保存过程Switch # copy startup-config tftp : /0/startup 1 交换机更改后的配置文件传回交换机

6、Switch # copy tftp: /0/startup 1/ startup-config 配置文件回传的查看Switch # show startup-config交换机的配置模式与配置帮助命令Switch >Switch > enableSwitch # configSwitch ( config) # enable password level adminCurrent password :New password: *Confirm new password : *Switch (Config ) # exitSwitch # writeSwit

7、ch # 验证方法: Switch # show running-config 使用 interface 命令进入接口配置模式Switch ( Config) # interface enthernet 0/0/1Switch ( Config-Enthernet 0/0/1 ) #Switch ( Config) # interface vlan 1Switch ( Config-If-Vlan 1 ) # 使用 no 命令配置 enable 口令清除Switch ( Config) # no enable password level adminInput Password : *Swit

8、ch ( Config) # 配置文件的初始化处理Switch # set defaultSwitch # writeSwitch # reload实施生成树协议以避免产生网络环路 生成树协议:网络链路的冗余备份、抑制广播风暴 首先关闭默认开启的生成树协议: Switch ( Config) # no spanning-treeSwitchA ( Config ) # spanning-tree mode stp (实验室: SwitchA( Config ) # spanning-tree) SwitchB( Config) # spanning-tree mode stp 交换机生成树的查

9、询SwitchA # show spanning-tree 反馈信息中关注点:Root Id :32768.00:03:0f:00:5d:50 32768(32768=4096*8 )为交换机的优先级,可改变 00: 03:0f:00:5d:50 为交换机的 MAC 地址 全局命令模式配置命令 ”spanning-tree mst * priority ”改变根交换机 链路聚合提升骨干链路带宽连接 PC 与终端,配置交换机初始环境Switch ( Config) # no spnning-tree /关闭生成树协议 静态配置交换机,实现交换机之间两个端口的静态链路聚合Switch A( Con

10、fig) # port-group 1Switch A( Config) #interface enthernet 0/0/1-2 / 创建链路聚合组Switch A( Config-Port-Range ) # port-group 1 mode onSwitch A( Config-Port-Range ) # exit 连接两台交换机之间的另一条链路,验证链路聚合结果 清空静态配置的链路聚合,网络拓扑回复初始环境Switch A( Config) # no port-group 1 使用动态方式配置链路聚合的端口,连接两端口, PC 验证Switch A( Config) # inter

11、face enthernet 0/0/1-2Switch A( Config-Port-Range ) # port-group 1 mode active 在交换机中验证拦路聚合结果Switch A # show port-group brief实验结论:链路聚合可以有效地解决链路带宽和冗余链路备份即使两台交换机之间存在环路也不会产生广播风暴跨交换机的 vlan 连通连接 PC 和交换机,使用直通双绞线连通两台交换机的24 端口配置交换机的单机 vlan,并加以验证Switch ( Co n fig) # vlan 10Switch(Config- Vlan 10)# switchport

12、interface enthernet 0/0/1-5Switch(Config- Vlan 10)# exitSwitch ( Co n fig) # vlan20Switch(Config- Vlan20)# switchport interface enthernet 0/0/6-10Switch(Config- Vlan 20)# exit 配置交换机之间的连通端口,并且通过 PC 验证是否已经生效Switch ( Co n fig) # interface enthernet 0/0/24 Switch(Config-Enthernet0/0/24 )# switchport mod

13、e trunk Switch(Config-Enthernet0/0/24 )# switchport trunk allowed vlan all Switch(Config-Enthernet0/0/24 )# exit 更改两交换机连接端口的一端,并验证 PC 之间连接效果Switch 1(Config-Enthernet0/0/24 )# switchport trunk native vlan10 讲两交换机之间的连接线缆一端更换为直接连接PC,验证连通效果使用三层交换机实现 vlan 之间互访将三层交换机与 PC连通,并配置相应 vlan,验证vlan之间的连通性Switch 3(

14、Config)# vlan 10Switch 3(Config- Vlan 10 )# switchport interface enthernet 0/0/1Switch 3(Config- Vlan 10 )# exitSwitch 3(Config)# vlan20Switch 3(Config- Vlan20 )# switchport interface enthernet 0/0/2Switch 3(Config- Vlan 20 )# exit配置三层交换机各 vlan之间的三层属性,在PC中默认网关为 vlan的三层IP 地址,再次测试 PC 之间的连通性Switch 3( C

15、onfig-If-Vlan 10 )Switch 3(Config)# interface vlan 10# ip address # no shutdownSwitch 3( Config-If-Vlan 10 )Switch 3(Config-If-Vlan 10 )# exitSwitch 3( Config-If-Vlan 20 )Switch 3(Config)# interface vlan 20# ip address # no shutdownSwitch 3( Config-I

16、f-Vlan 20 )Switch 3(Config-If-Vlan 20 )# exitPC中验证ping命令验证与另一台PC的连通性C : Docume n ts ang setting Administrator>ping 0将两台交换机使用双绞线分别同三层交换机的剩余端口中的两个端口连接 划分二层交换机的 vlanSwitch 1(Config)# vlan 10Switch 1(Config- Vlan 10 )# switchport interface enthernet 0/0/1-5Switch 1(Config- Vlan 10 )# exitS

17、witch 2( Config) # vlan20Switch 2( Config- Vlan20 ) # switchport interface enthernet 0/0/6-10Switch 2( Config- Vlan 20 ) # exit配置 3 层交换机,是它们之间的 vlan 具有统一性Switch 1( Config) # switchport enthernet 0/0/24Switch 1( Config-Enthernet0/0/24 ) # switchport mode trunkSwitch 1( Config-Enthernet0/0/24 ) # swit

18、chport mode trunk allowed vlan allSwitch 1( Config-Enthernet0/0/24 ) # exitSwitch 2( Config) # switchport enthernet 0/0/24Switch 2( Config-Enthernet0/0/24 ) # switchport mode trunkSwitch 2( Config-Enthernet0/0/24 ) # switchport mode trunk allowed vlan all Switch 2( Config-Enthernet0/0/24 ) # exitSwi

19、tch 3( Config) # switchport enthernet 0/0/3-4Switch 3( Config-Enthernet0/0/24 ) # switchport mode trunkSwitch 3( Config-Enthernet0/0/24 ) # switchport mode trunk allowed vlan all Switch 3( Config-Enthernet0/0/24 ) # exit 将 PC 接入到不同的 vlan 中,验证连通如何将三层交换机的 vlan 10 和 vlan 20 的端口删除,画网络物理拓扑Switch 3( Confi

20、g) # vlan 10Switch 3( Config- Vlan 10 ) # no switchport interface enthernet 0/0/1Switch 3( Config- Vlan 10 ) # exitSwitch 3( Config) # vlan20Switch 3( Config- Vlan 20 ) # no switchport interface enthernet 0/0/2Switch 3( Config- Vlan 20 ) # exit 删除三层交换机的某个 vlan 接口 IP 地址,测试连通性的改变Switch 3( Config) # no

21、 interface vlan 10Switch 3( Config) # no interface vlan 20 在 PC 端测试连通性实训结论:利用三层交换机可以实现 vlan 之间的通讯 若三层交换机不承担具体终端任务,可以不添加具体 vlan 端口,但是必须创建相应 vlan , 才可以配置 vlan 三层 IP 地址为终端网关三层交换机的 trunk 端口可以接受来自不同 vlan 的数据,并进行 vlan 重新封装打包Trunk 端口与 IP 地址的可能关系:一对多,多对一端口镜像端口镜像的要求:源与目的端口的速率匹配(源>= 目的端口)端口镜像时,源与目的端口必须在同一个

22、 vlan 内配置交换机恢复出产设置,并连接 3 台 PC 与交换机配置交换机的端口镜像,使 PC1 可以接收 PC2 与 PC3 之间的数据Switch ( Config) # monitor session 1 source interface enthernet 0/0/2-3 both /both 镜像将把端口 2 与 3 的接收和发送的数据都给镜像端口 1Switch ( Config) # monitor session 1 destination interface enthernet 0/0/1 Switch ( Config) #启动 PC1 中的抓包工具,开启 PC2 与

23、PC3 之间的通信过程分析 PC1 抓取的数据,确定是否已经抓捕 PC2 与 PC3 之间的数据 取消交换机的端口镜像配置,重复以上两步,查看结果如何Switch ( Config) # no monitor session 1 source interface enthernet 0/0/2-3 Switch( Config )# no monitor session 1 destination interface enthernet 0/0/1实训结论:端口镜像可以实现从多个端口到某一个端口的镜像 也可多对源和目的之间的镜像熟悉路由器的基本配置方法使用配置线缆连接路由器(Console端口

24、)和管理 PC (COM端口)配置 PC 超级终端,打开路由器命令行管理界面 连接路由器电源线并启动路由器,查看各端口指示灯状态 配置路由器局域网端口地址与PC地址,使用交叉双绞线连接Router # show running-config/判断以太网端口对应的配置名称Router_config # interface f0/0/ interface f0/0 < >interface fastenthernet 0/0 Router_config_ f0/0 # ip address 00 退回特权模式使用 show 命令查看配置

25、结果 Router # show interface f0/0 在 PC 端使用 Telnet 方式登陆路由器命令界面 Router_config # username dcnu password dcnu Router_config # aaa authentication login login_fortelnet local Router_config # line vty 0 4 Router_config_line # login authentication login_fortelnet 由 PC 登陆路由器 C:>telnet 00配置PC的TFTP

26、服务器,在路由器中使用copy命令将配置文件在PC中备份Router # writeRouter # copy flash :startup_config tftp改变PC中的备份的配置文件,使用路由器的copy命令实现配置文件的回传重新启动路由器,查看更改执行情况实训结论:路由器的管理 IP 可以在物理接口上进行,交换机在 vlan 接口 路由器的telnet方式管理默认是不授权的路由器的很多版本不支持 Tab 修补全命令的功能熟悉路由器的配置模式和配置帮助命令配置线缆连接路由器与 PC1 COM 口,交叉线连接路由器快速以太网口与 PC2 在控制台命令行配置带内管理,使另一台 PC 实现带

27、内管理并登陆 配置路由器提示名称并使用 write 命令保存:Router_config # hostname DCNU-Router 使用命令配置路由器的管理账户:Router # configRouter_config # username user 1 password digitalchina /增加用户Router_config # aaa authentication for_login login localRouter_config # line console 0Router_config _line # login authentication for_login/line

28、 console 0 命令是进入当前控制台端口模式启动命令 接下来是在控制台/ 试图登录路由器系统时,进行 for_login 的登录验证 验证配置的管理用户的登陆情况Router_config # enable password digitalchina level 15 退回到普通模式,再次进入特权模式通过路由器实现 vlan 之间的互通连接交换机和 PC ,并确认连通性 配置交换机的 vlan 并划分端口,确认连通性Switch # ConfigSwitch ( Config) # vlan 10Switch ( Config- Vlan 10)# switchport interfac

29、e enthernet 0/0/1Switch ( Config- Vlan 10)# exitSwitch ( Config) # vlan20Switch ( Config- Vlan20 ) # switchport interface enthernet 0/0/2Switch ( Config- Vlan 20)# exit 连接交换机和路由器,通过端口物理状态确认物理连通性 配置交换机的级联端口为 trunk 端口,并配置起相应的 native vlan 值Switch ( Config) # switchport enthernet 0/0/24SwitchConfig-Enth

30、ernet0/0/24 )# switchport mode trunkSwitch ( Config-Enthernet0/0/24 )# switchport mode trunk native vlan 10Switch ( Config-Enthernet0/0/24 )# switchport mode trunk allowed vlan allSwitch ( Config-Enthernet0/0/24 ) # exit两台 PC 网卡与交换机使用双绞线连接路由器控制线缆将其中一台PC的COM 口与路由器console连接配置超级终端、路由器的网络端口 IP 与两台 PC 的网

31、卡 IP 地址 双绞线与交换机与路由器局域网端口连接,验证连通性Router A # ping 0 /ping PC 地址将 PC 的默认网关配置为同组路由器的局域网口地址使用路由器串口背对背线缆连接两台路由器的串行接口配置 V35MT 一端的串行端口Router- A-config # interface serial0/2Router- A-config _s0/2 # ip address Router- A-config _s0/2 # encapsulation HDLCRouter- A-config _s0/

32、2 # no shutdown配置 V35FC 一端的串行接口Router- A-config # interface serial0/2Router- A-config _s 0/2 # ip address Router- A-config _s0/2 # encapsulation HDLCRouter- A-config # interface serial0/2Router- A-config _s0/2 # ip address Router- A-config _s0/2 # en

33、capsulation HDLCRouter- A-config _s0/2 # physical-layer speed 64000/配置 dce 时钟频率Router- A-config _s0/2 # no shutdown使用show命令来验证串口的连通性,ping命令来验证Router- A # show interface serial 0/2Router- A_config # ip route / .Router- A_config # exitRouter- B_config # ip route

34、 / .Router- B_config # exit从各自的内网 1 和内网 2 的 PC 验证网络的整体连通性实训结论:路由器在网络中实施要在单条链路连通后逐步完成整体连通性 企业内网与外网的连通至少需要经过不同的两个网段 任何节点的默认网关地址一定是与自己地址在相同的网络广域网连接方概述专线网络 PPP 封装连接路由器广域网串行接口与 V35 线缆,并记录路由器所连接的线缆类型 路由器加电,通过 PC 超级终端进入路由,查看逻辑配置名称,进入全局模 式路遇同步串口配置模式, 由V35线缆类型在PC类型连线一侧配物

35、理时钟 / DCE 设备,配置时钟信号Router-A _config # interface s0/2 Router-A _config_s0/2 #physical-layer speed 64000 配置两台路由器的串口封装类型为PPP,查看端口/ 一下两个路由器上的 serial 0/2接口都要做RouterA _config_s0/2 # encapsulation ppp RouterB_config_s0/2 # encapsulation ppp 配置两台路由器的串口 PPP封装PAP方式的验证/在全局模式下配置验证方法列表RouterA _config # aaa encapsulation ppp test localRouterA _config # username RouterB password digitalcianBRouterB _config # aaa encapsulation ppp test localRouterB _

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论