欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    CISCO配置命令大全必学.docx

    • 资源ID:8915787       资源大小:21.52KB        全文页数:19页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    CISCO配置命令大全必学.docx

    1、CISCO配置命令大全必学这是学习CUSCO必学的配置使能密码enable secret ciscolab 以cicsolab 为例switch enableswitchc onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable secret ciscolab设置虚拟局域网vlan 1 interface vlan 1switch enableswitchc onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interfac

    2、e vlan 1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip 和子网掩码aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway 192.168.254 设置网关地址进入交换机某一端口interface fastehernet 0/17 以17 端口为例switch enableswitchc onfigure terminalswitch(conf)#hostname ap

    3、tch2950aptech2950(conf)# interface fastehernet 0/17aptech2950(conf-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-addre

    4、ss-table aging-time 查看mac 地址表自动老化时间9:交换机恢复出厂默认恢复命令switch enableswitch# erase startup-configureswitch# reload10:双工模式设置switch enableswitchc onfigure terminalswitch2950(conf)#hostname aptch-2950aptech2950(conf)# interface fastehernet 0/17 以17 端口为例aptech2950(conf-if)#duplex full/half/auto 有full , half,

    5、auto 三个可选项11:cdp 相关命令switch enableswitch# show cdp 查看设备的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 f

    6、lash:把“config.text”文件改名为“config.old”: switch: rename 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 flas

    7、h: config.text system :running-configure把配置模式重新设置密码存盘,密码恢复成功。13:交换机telnet 远程登录设置:switchenswitchc 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.1

    8、68.1.1 255.255.255.0aptech2950(conf-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 网关地址是交换机端口地址运行

    9、:telnet 192.168.1.1进入telnet 远程登录界面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 的交换机上设置登

    10、录口令:switch(config)# 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 的交换机上设置远程访问:switc

    11、h(enable) set 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/portswi

    12、tch# show 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 的交换机的端口

    13、描述: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

    14、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 acc

    15、essswitch(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 trunksw

    16、itch(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|dotlq|do

    17、tl0|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|transparentswitch(vlan)#

    18、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 剪裁:switch# vlan database

    19、switch(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|auto15.在基于IOS 的交换机上调整根路径成本:swi

    20、tch(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-listport-priority port-priority在基于CLI

    21、的交换机上调整端口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 forward-time seconds switch(config)

    22、# 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)#spanning-tree portfast在基于CLI 的交换机端口上启

    23、用或禁用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 uplinkfast enable|disablerate update-rate all-proto

    24、cols 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 显示管理域的VTP 参数.24. 在Catalyst 交换机上定义TrBRF 的命令如下:switch(enabl

    25、e) 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 之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN 分配端口:switch(enable) set vla

    26、n 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 database-nameATM(lane-config-databade)# name elan1-name server

    27、-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-a

    28、ddress31. 将每个LEC 配置到一个不同的ATM 子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES 的状态.33. 用show lane bus 显示bus 的状态.34. 用show lane database 显示LECS 数据库可内容.35. 用show lane client 显示LEC 的状态.36. 用show module 显示已安装的模块列表.

    29、37. 用物理接口建立与VLAN 的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN 的连接:router(config)# interface module/port.subinterfacerouter(con

    30、fig-ig)# encapsulationisl|dotlq vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN 的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm

    31、module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# 40. 为了在路由处理器上进行动态路由配置,可以用下列IOS 命令来进行:rou


    注意事项

    本文(CISCO配置命令大全必学.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开