实验3 交换机基本配置新_第1页
实验3 交换机基本配置新_第2页
实验3 交换机基本配置新_第3页
实验3 交换机基本配置新_第4页
实验3 交换机基本配置新_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

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

文档简介

1、实验3交换机基本配置3.1实验目的理解虚拟LAN(VLAN)基本配置;掌握一般交换机按端口划分VLAN的配置方法;掌握Tag VLAN配置方法。3.2实验知识点1、交换机的六种模式:用户模式Switch特权模式Switch#全局配置模式Switch(config)#端口模式Switch(config-if)#Vlan 配置模式 Switch(config-vlan)Line 模式 switch(config-line)2、了解交换机命令行进入特权模式(en)进入全局配置模式(conf t)进入交换机端口视图模式(int f0/1)返回到上级模式(exit)从全局以下模式返回到特权模式(end)

2、帮助信息(如?、co?、copy?)命令简写(如conf t)命令自动补全(Tab)快捷键(ctrl+c中断测试,ctrl+z退回到特权视图)Reload重启。(在特权模式下)修改交换机名称(hostname X)3.3实验要求交换机基本配置的实验拓扑图如图3-1所示。Switch_2960 2台;PC 4 台;直连线。FO/2490Y4TT192. 168. 1.2192. 168. 1.3PCIPC2PC3PC43-1实验拓扑图其中:将PC1、PC2、PC3、PC4的IP地址分别设置为:192.168.1.2、 192.168.1.3、192.168.1.4、192.168.1.5 ,子网

3、掩码和网关都 为:255.255.255.0 和 192.168.1.1。3.4实验内容:交换机配置如下:Switch1SwitchenSwitch#conf tSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#inter fa 0/1Switch(config-if)#switch access vlan 2Switch(config-if)#exitSwitch(config)#inter fa 0/2Switch(config-i

4、f)#switch access vlan 3Switch(config-if)#exitSwitch(config)#inter fa 0/24Switch(config-if)#switch mode trunkSwitch(config-if)#endSwitch#show vlanSwitch2SwitchenSwitch#conf tSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#int fa 0/1Switch(confi

5、g-if)#switch access vlan 2Switch(config-if)#exitSwitch(config)#int fa 0/2Switch(config-if)#switch access vlan 3Switch(config-if)#exitSwitch(config)#int fa 0/24Switch(config-if)#switch mode trunkSwitch(config-if)#endSwitch#show vlan测试:PC1 ping PC2 结果?(截图)PC1 ping PC3 结果?(截图)思考问题:交换机有多少种模式?交换机有6种模式;1、

6、普通用户模式开机直接进入普通用户模式,在该模式下我们只能查询交换机的一些基础信 息,如版本号(show version)等。2、特权用户模式在普通用户模式下输入enable命令即可进入特权用户模式,在该模式下我 们可以查看交换机的配置信息和调试信息等等。3、全局配置模式在特权用户模式下输入cterminal命令即可进入全局配置模式,在该模式下 主要完成全局参数的配置,具体配置以后介绍。4、接口配置模式在全局配置模式下输入interface interface-list即可进入接口配置模式, 在该模式下主要完成接口参数的配置,具体配置以后介绍。5、vlan配置模式在全局配置模式下输入vlan v

7、lan-number即可进入vlan配置模式,在该配 置模式下可以完成Vlan的一些相关配置。6、恢复交换机的缺省配置在实验开始时,为了不让实验受交换机以前的配置影响,常常需要先恢复交 换机的缺省配置。在特权用户模式下顺序使用erase,restet命令即可恢复交换 机的缺省配置。为了方便管理,交换机需开通telnet功能,请问如何配置交换机? (截图)1、配置交换机管理ip地址Switch(config)#interface vlan 1默认情况下交换机所有端口都处于vlan 1当中Switch(config-if)#ip address 192.168.1.1 255.255.255.0配

8、置交换机管理IP地址SwitchenSwitch#conf tEnter configuration ccmmandsp one per line- End with CNTL/Z.Switch(config)#interface vlan 1Switch(config-if)#ip address 192.1GB.1.1 255-255-255.0Switch(config-if)#no shutdown2、设置进入特权模式的密码设置Switch(config)#enable password 123456Switch(config)#line console ?3、通过console端口连

9、接设备的密码设置Switch(config)#line console 0Switch(config-line)#password asdf备的密码Switch(config-line)#loginSwitch(config-line)#exitSwitch(config)#line vty ?4、telnet远程登录密码Switch(config)#line vty 0 4Switch(config-line)#password abc123设置进入特权模式的密码设置通过console端口连接设设置telnet远程登录密码Switch(config-line)#loginSwitch(con

10、fig-line)#end1;O Upi. U-L LJUU-X LJ-I1 _L上J. L L JL HLZfef V J-idJenable password 12345S Switch(ccnfig)#line console? console Switch(ccnfig)#line console 0 Switch(ccnfig-line)sword asdf Switch(config-line)#lcgin Switch(config-line) Switch(ccnfig)#line vty? vty Switch(config)#line vty 0 4 Switch(ccnf

11、ig-line)#password abcl23 Switch tconfig-line)#lcgin5、查看配置情况Current conziguration : IOS6 bytes I version 12.2 no service time stands log datetime msec no service time stands debug datetime msec no service password-encrjrption I hostname Switch I enable password 123456 ! I I interface FastEthernetO/1

12、I interface FastEthernetO/2LUcnnecticn tc1JZ _ 1 bt: _ 1 1 closed By zcreign POtelnet 192.168.1.1Trying 192.18.1.1 .OpenUser Access VerificationPassword:SwitchenPassword:Swi t dh# show miming-configBuilding configurationCurrent configuration : 1086 bytes rversion 12.2no service timestairs log datetime msec no s e rri ce time stands debug date time maec no service pas sword- encrypt i on rhostname Switch renable password 123456int b rface Fas tE

温馨提示

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

评论

0/150

提交评论