ImageVerifierCode 换一换
格式:DOCX , 页数:16 ,大小:20.99KB ,
资源ID:8595894      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8595894.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(思科交换机配置命令.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

思科交换机配置命令.docx

1、思科交换机配置命令思科交换机配置命令美国思科公司,凭借它的IOS,Cisco公司在多协议路由器市场上处于绝对领先的地位。目前,在Internet中,有近80%的路由器来自Cisco。下面给大家介绍思科交换机配置命令大全,一起来了解一下吧!思科交换机配置命令大全一、基本配置命令switch 用户模式1:进入特权模式 enableswitch enableswitch#2:进入全局配置模式 configure terminalswitch enableswitch#c onfigure terminalswitch(conf)#3:交换机命名 hostname aptech2950 以 aptec

2、h2950 为例switch enableswitch#c onfigure terminalswitch(conf)#hostname aptch-2950aptech2950(conf)#4:配置使能口令 enable password cisco 以 cisco 为例switch enableswitch#c onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable password cisco5:配置使能密码 enable secret ciscolab 以 cicsolab 为例switch en

3、ableswitch#c onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable secret ciscolab6:设置虚拟局域网 vlan 1 interface vlan 1switch enableswitch#c onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface vlan 1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机

4、端口 ip 和子网掩码aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway 192.168.254 设置网关地址7:进入交换机某一端口 interface fastehernet 0/17 以 17 端口为例switch enableswitch#c onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface fastehernet 0/17aptech2950(co

5、nf-if)#8:查看命令 showswitch enableswitch# show version 察看系统中的所有版本信息show interface vlan 1 查看交换机有关 ip 协议的配置信息show running-configure 查看交换机当前起作用的配置信息show interface fastethernet 0/1 察看交换机 1 接口具体配置和统计信息show mac-address-table 查看 mac 地址表show mac-address-table aging-time 查看 mac 地址表自动老化时间9:交换机恢复出厂默认恢复命令switch en

6、ableswitch# erase startup-configureswitch# reload10:双工模式设置switch enableswitch#c onfigure terminalswitch2950(conf)#hostname aptch-2950aptech2950(conf)# interface fastehernet 0/17 以 17 端口为例aptech2950(conf-if)#duplex full/half/auto 有 full , half, auto 三个可选项11:cdp 相关命令switch enableswitch# show cdp 查看设备的

7、 cdp 全局配置信息show cdp interface fastethernet 0/17 查看 17 端口的 cdp 配置信息show cdp traffic 查看有关 cdp 包的统计信息show cdp nerghbors 列出与设备相连的 cisco 设备12:csico2950 的密码恢复拔下交换机电源线。用手按着交换机的 MODE 键,插上电源线在 switch:后执行 flash_ini 命令:switch: flash_ini查看 flash 中的文件: switch: dir flash:把“config.text”文件改名为“config.old”: switch: r

8、ename flash: config.text flash: config.old执行 boot: switch: boot交换机进入是否进入配置的对话,执行 no :进入特权模式察看 flash 里的文件: show flash :把“config.old”文件改名为“config.text”: switch: rename flash: config.old flash: config.text把 “ config.text ” 拷 入 系 统 的 “ running-configure ”: copy flash: config.text system :running-configu

9、re把配置模式重新设置密码存盘,密码恢复成功。13:交换机 telnet 远程登录设置:switchenswitch#c onfigure terminalswitch(conf)#hostname aptech-2950aptech2950(conf)#enable password cisco 以 cisco 为特权模式密码aptech2950(conf)#interface fastethernet 0/1 以 17 端口为 telnet 远程登录端口aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0aptech2950(co

10、nf-if)#no shutaptech2950(conf-if)#exitaptech2950(conf)line vty 0 4 设置 0-4 个用户可以 telnet 远程登陆aptech2950(conf-line)#loginaptech2950(conf-line)#password edge 以 edge 为远程登录的用户密码主机设置:ip 192.168.1.2 主机的 ip 必须和交换机端口的地址在同一网络段netmask 255.255.255.0gate-way 192.168.1.1 网关地址是交换机端口地址运行:telnet 192.168.1.1进入 telnet

11、远程登录界面password : edgeaptech2950enpassword: ciscoaptech#14:交换机配置的重新载入和保存设置完成交换机的配置后:aptech2950(conf)#reload是否保存(y/n) y: 保存设置信息 n:不保存设置信息二、高级配置命令1.在基于 IOS 的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于 CLI 的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于 IOS 的交换机上设置登录口令:switch(confi

12、g)# enable password level 1 password在基于 CLI 的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于 IOS 的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于 CLI 的交换机上设置远程访问:switch(enable) set

13、 interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于 IOS 的交换机上启用和浏览 CDP 信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看 Cisco 邻接设备的 CDP 通告信息:switch# show cdp interface type modle/portswitch# show

14、 cdp neighbors type module/port detail在基于 CLI 的交换机上启用和浏览 CDP 信息:switch(enable) set cdp enable|disable module/port为了查看 Cisco 邻接设备的 CDP 通告信息:switch(enable) show cdp neighborsmodule/port vlan|duplex|capabilities|detail5.基于 IOS 的交换机的端口描述:switch(config-if)# description description-string基于 CLI 的交换机的端口描述:

15、switch(enable)set port name module/number description-string6.在基于 IOS 的交换机上设置端口速度:switch(config-if)# speed10|100|auto在基于 CLI 的交换机上设置端口速度:switch(enable) set port speed moudle/number 10|100|autoswitch(enable) set port speed moudle/number 4|16|auto7.在基于 IOS 的交换机上设置以太网的链路模式:switch(config-if)# duplex aut

16、o|full|half在基于 CLI 的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number full|half8.在基于 IOS 的交换机上配置静态 VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode

17、accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于 CLI 的交换机上配置静态 VLAN:switch(enable) set vlan vlan-num name nameswitch(enable) set vlan vlan-num mod-num/port-list9. 在基于 IOS 的交换机上配置 VLAN 中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode

18、trunkswitch(config-if)# switchport trunk encapsulation isl|dotlqswitch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list在基于 CLI 的交换机上配置 VLAN 中继线:switch(enable) set trunk module/port on|off|desirable|auto|nonegotiateVlan-range isl

19、|dotlq|dotl0|lane|negotiate10.在基于 IOS 的交换机上配置 VTP 管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于 CLI 的交换机上配置 VTP 管理域:switch(enable) set vtp domain domain-name11.在基于 IOS 的交换机上配置 VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp sever|cilent|transparen

20、tswitch(vlan)# vtp password password在基于 CLI 的交换机上配置 VTP 模式:switch(enable) set vtp domain domain-name mode sever|cilent|transparent passwordpassword12. 在基于 IOS 的交换机上配置 VTP 版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于 CLI 的交换机上配置 VTP 版本:switch(enable) set vtp v2 enable13. 在基于 IOS 的交换机上启动 VTP 剪

21、裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于 CL I 的交换机上启动 VTP 剪裁:switch(enable) set vtp pruning enable14.在基于 IOS 的交换机上配置以太信道:switch(config-if)# port group group-number distribution source|destination在基于 CLI 的交换机上配置以太信道:switch(enable) set port channel moudle/port-range modeon|off|desirable|aut

22、o15.在基于 IOS 的交换机上调整根路径成本:switch(config-if)# spanning-tree vlan vlan-list cost cost在基于 CLI 的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port cost costvlan-list16.在基于 IOS 的交换机上调整端口 ID:switch(config-if)# spanning-treevlan vlan-listpor

23、t-priority port-priority在基于 CLI 的交换机上调整端口 ID:switch(enable) set spantree portpri mldule/portpriorityswitch(enable) set spantree portvlanpri module/portpriority vlans17. 在基于 IOS 的交换机上修改 STP 时钟:switch(config)# spanning-tree vlan vlan-list hello-time secondsswitch(config)# spanning-tree vlan vlan-list

24、forward-time seconds switch(config)# spanning-tree vlan vlan-list max-age seconds在基于 CLI 的交换机上修改 STP 时钟:switch(enable) set spantree hello intervalvlanswitch(enable) set spantree fwddelay delay vlanswitch(enable) set spantree maxage agingtiamevlan18. 在基于 IOS 的交换机端口上启用或禁用 Port Fast 特征:switch(config-if

25、)#spanning-tree portfast在基于 CLI 的交换机端口上启用或禁用 Port Fast 特征:switch(enable) set spantree portfast module/portenable|disable19. 在基于 IOS 的交换机端口上启用或禁用 UplinkFast 特征:switch(config)# spanning-tree uplinkfast max-update-rate pkts-per-second在基于 CLI 的交换机端口上启用或禁用 UplinkFast 特征:switch(enable) set spantree uplink

26、fast enable|disablerate update-rate all-protocols off|on20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个 IP 地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除 VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用 show vtp domain 显示管理域的 VTP 参数.23. 用 show vtp statistics 显示管理域的

27、VTP 参数.24. 在 Catalyst 交换机上定义 TrBRF 的命令如下:switch(enable) set vlan vlan-name name name type trbrf bridge bridge-numstp ieee|ibm25. 在 Catalyst 交换机上定义 TrCRF 的命令如下:switch (enable) set vlan vlan-num name name type trcrfring hex-ring-num|decring decimal-ring-num parent vlan-num26. 在创建好 TrBRF VLAN 之后,就可以给它分

28、配交换机端口.对于以太网交换,可以采用如下命令给 VLAN 分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令 show spantree 显示一个交换机端口的 STP 状态.28. 配置一个 ELAN 的 LES 和 BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置 LECS:ATM(config)# lane database

29、 database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name 30. 创建完数据库后,必须在主接口上启动 LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database-nameATM(config-if)# lane config auto-config-atm-address31. 将每个 LEC 配置到一个不同的 ATM 子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client e

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

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