思科交换机命令大全 + Cisco IOS 基本命令

上传人:飞*** 文档编号:42448183 上传时间:2018-06-02 格式:DOC 页数:12 大小:61KB
返回 下载 相关 举报
思科交换机命令大全 + Cisco IOS 基本命令_第1页
第1页 / 共12页
思科交换机命令大全 + Cisco IOS 基本命令_第2页
第2页 / 共12页
思科交换机命令大全 + Cisco IOS 基本命令_第3页
第3页 / 共12页
思科交换机命令大全 + Cisco IOS 基本命令_第4页
第4页 / 共12页
思科交换机命令大全 + Cisco IOS 基本命令_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《思科交换机命令大全 + Cisco IOS 基本命令》由会员分享,可在线阅读,更多相关《思科交换机命令大全 + Cisco IOS 基本命令(12页珍藏版)》请在金锄头文库上搜索。

1、思科交换机命令大全思科交换机命令大全(一) 序号/类别 基于 ios 的交换机命令 基于 CLI 的交换机命令 1设置主机名/系统名 switch(config)# hostname “hostname“ switch(enable) set system name name-string 2设置登录口令 switch(config)# enable password level 1 password switch(enable) set password switch(enable) set enalbepass 3设置远程访问 switch(config)# inte*ce vlan 1

2、switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address switch(enable) set inte*ce sc0 ip-address netmask broadcast-address switch(enable) set inte*ce sc0 vlan switch(enable) set ip route default gateway 4启用和浏览 CDP 信息 switch(config-if)# cdp enable switch(con

3、fig-if)# no cdp enable switch(enable) set cdp enable|disable module/port 5查看 Cisco 邻接设备的 CDP 通告 switch# show cdp inte*ce type modle/port switch# show cdp neighbors type module/port detail switch(enable) show cdp neighborsmodule/port vlan|duplex|capabilities|detail 6端口描述 switch(config-if)#description

4、 escription-string switch(enable)set port name module/number description-string 7设置端口速度 switch(config-if)# speed10|100|auto switch(enable) set port speed moudle/number 10|100|auto switch(enable) set port speed moudle/number 4|16|auto 8设置以太网的链路模式 switch(config-if)# duplex auto|full|half switch(enable

5、) set port duplex module/number full|half 9配置静态 VLAN switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)#inte*ce inte*ce module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num swi

6、tch(config-if)# end switch(enable) set vlan vlan-num name name switch(enable) set vlan vlan-num mod-num/port-list 10配置 VLAN 中继线 switch(config)# inte*ce inte*ce mod/port switch(config-if)# switchport mode trunk switch(config-if)#switchport trunk encapsulation isl|dotlq switch(config-if)# switchport t

7、runk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list switch(enable)set trunk module/port on|off|desirable|auto|nonegotiate Vlan-range isl|dotlq|dotl0|lane|negotiate 11配置 VTP 管理域 switch# vlan database switch(vlan)# vtp domain domain-name switch(enable) set

8、 vtp domain domain- name 12配置 VTP 模式 switch# vlan database switch(vlan)# vtp domain domain-name switch(vlan)# vtp sever|cilent|transparent switch(vlan)# vtp password password switch(enable) set vtp domain domain- name mode sever|cilent|transparent password password 13配置 VTP 版本 switch# vlan database

9、switch(vlan)# vtp v2-mode switch(enable) set vtp v2 enable 14启动 VTP 剪裁 switch# vlan database switch(vlan)# vtp pruning switch(enable) set vtp pruning enable 15配置以太信道 switch(config-if)# port group group-number distribution source|destination switch(enable) set port channel moudle/port-range modeon|of

10、f|desirable|auto 16调整根路径成本 switch(config-if)#spanning-tree vlan vlan-list cost cost switch(enable)set spantree portcost moudle/port cost switch(enable)set spantree portvlancost moudle/port cost costvlan-list 17调整端口 ID switch(config-if)#spanning-treevlan vlan-listport-priority port-priority switch(en

11、able)set spantree portpri mldule/portpriority switch(enable)set spantree portvlanpri module/portpriority vlans 18修改 STP 时钟 switch(config)# spanning-tree vlan vlan-list hello-time seconds switch(config)#spanning-tree vlan vlan-list forward-time seconds switch(config)#spanning-tree vlan vlan-list max-

12、age seconds switch(enable) set spantree hello intervalvlan switch(enable) set spantree fwddelay delay vlan switch(enable) set spantree maxage agingtiamevlan 19.启用或禁用 Port Fast 特征 switch(config-if)#spanning-tree portfast switch(enable)set spantree portfast module/portenable|disable 20.启用或禁用 UplinkFas

13、t 特征 switch(config)#spanning-tree uplinkfast max-update-rate pkts-per-second switch(enable)set spantree uplinkfast enable|disablerate update-rate all-protocols off|on 20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个 IP 地 址,然后使用下列命令: switch(config)# cluster enable cluster-name 21. 为了从一条中继链路上删除 VLAN,可使用下列命令: swit

14、ch(enable) clear trunk module/port vlan-range 22. 用 show vtp domain 显示管理域的 VTP 参数. 23. 用 show vtp statistics 显示管理域的 VTP 参数. 24. 在 Catalyst 交换机上定义 TrBRF 的命令如下: switch(enable) set vlan vlan-name name name type trbrf bridge bridge- numstp ieee|ibm 25. 在 Catalyst 交换机上定义 TrCRF 的命令如下: switch (enable) set

15、vlan vlan-num name name type trcrf ring hex-ring- num|decring decimal-ring-num parent vlan-num 26. 在创建好 TrBRF VLAN 之后,就可以给它分配交换机端口.对于以太网交换,可以 采用如下命令给 VLAN 分配端口: switch(enable) set vlan vlan-num mod-num/port-num 27. 命令 show spantree 显示一个交换机端口的 STP 状态. 28. 配置一个 ELAN 的 LES 和 BUS,可以使用下列命令: ATM (config)# inte*ce atm number.subint multioint ATM(config-subif)# lane serber-bus ethernet elan-name 29. 配置 LECS: ATM(config)# lane database database-name ATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap- address ATM(lane-config-databade)# name elan2-name server-atm-address les2

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号