




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
先把这个学会吧,再去搞哪个,会容易入手,是一样的结构。思科的命令和这不同,我这有路由模拟器要的话告诉我你的邮箱我发给你。SWITCH笔记1. Switch command2. Switch setup3. Vlan setup4. VLAN TRUNK5. Switch interface setup6. SHOW command7. Cisco catalyst 2950交换机的密码恢复8. VTP9. STP10. 三层交换11. 12. 13. 14. 15. Switch commandSwitch en 进入特权模式Switch # conf t 进入全局配置模式Switch(config)# interface interface-num 进入接口Switch(config)# hostname name 给交换机命名Switch(config)# enable password password 设置明文密码Switch(config)# enable secret password 设置加密的启用秘密口令。如果设置则取代明文口令Switch # copy running-config startup-config Switch # write 保存设置保存设置Switch # erase startup-config 恢复交换机出厂值置顶Switch setupswitch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# no shutswitch(config-if)# exitswitch(config)# ip default-gateway ip-addressswitch(config)# ip domain-name domain-nameswitch(config)# ip name-server IP-address 交换机上设置远程访问,用于交换机管理配置IP地址开起端口退出设置缺省网关域名服务(自身用)域名服务地址(自身用)文档顶端Vlan setup Switch # vlan database switch(vlan)# vlan vlan-id name vlan-name switch(vlan)# exit switch # config teriminal 创建VLAN(全局配置模式下)创建vlan推出启用 switch # config t switch(config)# vlan vlan-id switch(config-vlan)# name vlan-name switch(config-vlan)# exit 创建VLAN(VLAN数据库中)命名推出生效Switch # config teriminalswitch(config)# interface interface-num switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-idswitch(config-if)# endswitch # show running-config interface inter-idswitch # show interface inter-id switch port 给VLAN添加端口进入要分配的端口定义二层端口把端口分配给某一VLAN退出验证端口的VLAN号验证端口的管理模式和VLAN情况switch#config teriminalswitch(config)#interface range f0/1 - 10 switch(config-if)#switchport access vlan vlan-idswitch(config-if)#endswitch#show vlan briefswitch#show vlan vlan-id 添加多个端口到一个VLAN选择多个端口加入VLAN查看验证VLAN查看指定VLANSwitch # config tswitch(config)# no vlan vlan-idswitch(config)# end 删除VLAN switch(config)# ip http sever 启用HTTP访问文档顶端VLAN TRUNKswitch(config)# interface interface mod/port switch(config-if)# switchport mode trunk switch(config-if)# switchport trunk encapsulation isl|dotlq| 配置VLAN中继线switch(config)# interface interface-idswitch(config-if)# switchport mode dynamic desirable/auto 进入端口设置设置接口为中继动态协商模式,desirable或autoswitch(config-if)#switchport trunk allowed vlan none 阻止所有VLAN通过switch(config-if)#switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list 从TRUNK中删除VLAN,阻止通过在TRUNK中添加VLAN,允许通过文档顶端Switch interface setupSwitch # config tSwitch(config)# interface inter-idswitch(config-if)# duplex auto|full|halfswitch(config-if)# speed10|100|auto 交换机上设置端口速度switch(config-if)# description description-string 交换机的端口描述文档顶端SHOW commandSwitch # show version Switch # show running-config 列出当前运行配置信息Switch # show startup-config Switch # show interface interface-num 产看借口信息Switch # show cdp neighborswitch # show cdp neighbor detailswitch # show cdp trafficswitch # show cdp interface interface-numswitch # show cdp entry 显示直连的相邻设备及其详细信息显示IP地址和IOS版本和类型,并且包括show cdp neighbor命令显示的所有信息显示设备发送和接收的CDP分组数以及任何出错信息显示接口的CDP配置信息显示所有入口项的细节Switch # show interface vlan 1 查看交换机有关IP协议的配置信息Switch # show mac-address-table aging-time 查看MAC地址表超时时间Switch # show mac-address-table 查看整个MAC地址表Switch # show interface f0/0 switchport 查看端口模式Switch # show vlan brief 查看VLAN信息Switch # show vtp status 查看VTP状态信息Switch # show spanning-treee 查看生成树信息Switch # show spanning-treee vlan vlan-id detail 查看某个VLAN的生成书详细信息Switch # show ip cef 产看FIB表Switch # show adjacency detail 产看邻接关系表 文档顶端Cisco catalyst 2950交换机的密码恢复1. 拔下交换机的电源线。 2. 用手按住交换机的MODE键,插上电源线。 3. 出现“SWITCH:”后,松开MODE SWITCH:4. 在SWITCH:后执行“flash_init”命令,初始化 SWITCH:flash_init5. 查看FLASH中的文件。 Switch:dir flash6. 把“config.text”文件改名为“config.old”文件。 switch:rename flash:config.text flash:config.old7. 执行“boot”命令,启动交换机 8. 进入特权模式查看FLASH的文件 switch#show flash9. 把文件config.old改为config.text。 switch:rename flash:config.old flash:config.text10. 把config.text考入系统的running-config。 switch#copy flash config.text system:running-config11. 加入配置模式重新设置密码并存盘。 文档顶端VTPSwitch(config)# vtp domain domain-name 设置VTP域名Switch(config)# vtp mode server|client|transparent 设置VTP模式Switch(config)# vtp password password 设置VTP密码Switch(config)# vtp pruning 配置VTP修剪Switch(config)# vtp version 2 配置VTP运行版本为2文档顶端STPSwitch(config)# spanning-tree vlan vlan-list 启用生成树Switch(config)# spanning-tree vlan vlan-list root primary|secondary 配置交换机为根网桥Switch(config)# spanning-tree vlan vlan-list priority Bridge-priority 修改交换机的优先级Switch(config)#spanning-tree vlan vlan-list vlan-list cost cost 修改端口路径成本Switch(config)# spanning-tree vlan vlan-list vlan-list port-priority priority 修改端口优先级Switch(config)# spanning-tree uplinkfast 配置上行速链路Switch(config)# spanning-tree portfast 配置速端口 文档顶端三层交换switch(config)# switch(config)# interface vlan vlan-idswitch(config-if)# ip address ip-address subnek-maskswitch(config-if)# no shutdown 配置VLAN IP地址switch(config-if)# no switchport 配置接口为三层模式switch(config)# interface interface-idSwitch(c
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2030中国复方樟脑酊行业需求动态及投资策略研究报告
- 2025-2030中国塑料再生机市场需求预测与投资效益研究报告
- 儿童恶性肿瘤护理查房
- 汽车软件创新创业项目商业计划书
- 咖啡主题音乐节票务平台创新创业项目商业计划书
- 社交媒体内容过滤工具创新创业项目商业计划书
- 电商平台促销活动合规性审查创新创业项目商业计划书
- 虚拟形象时尚搭配服务创新创业项目商业计划书
- 电信数据湖与应用创新创业项目商业计划书
- 医院健康教育工作开展实施方案
- 2023年湖北孝感市安陆市属国有企业招聘笔试参考题库附带答案详解
- 单个军人队列动作教案
- 妊娠期肝内胆汁淤积症的护理
- 户外健身器材报价清单表
- GB/T 41837-2022温泉服务温泉水质要求
- MA控台基本知识和技巧
- 东芝空调用户使用手册
- BVI公司法全文(英文版)
- 住房公积金投诉申请书
- 《世说新语》乘船 完整版课件
- 施工现场安全检查记录表(周)以及详细记录
评论
0/150
提交评论