思科命令大全(完整版)
思科交换机命令大全
思科交换机命令大全
1.设置主机名/系统名
IOS:switch(config)# hostname "hostname"
CLI:switch(enable) set system name name-string
2.设置登录口令
IOS:switch(config)# enable password level 1 password
CLI:switch(enable) set password
switch(enable) set enalbepass
3.设置远程访问
IOS:switch(config)# interface vlan 1
switch(config-if)# ip address ip-address netmask
switch(config-if)# ip default-gateway ip-address
CLI:switch(enable) set interface sc0 ip-address netmask broadcast-address
switch(enable) set interface sc0 vlan
switch(enable) set ip route default gateway
4.启用和浏览CDP信息
IOS:switch(config-if)# cdp enable
switch(config-if)# no cdp enable
CLI:switch(enable) set cdp {enable|disable} module/port
5.查看Cisco邻接设备的CDP通告
IOS:switch# show cdp interface [type modle/port]
switch# show cdp neighbors [type module/port] [detail]
CLI:switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]
6.端口描述 IOS:switch(config-if)#description escription-string
CLI:switch(enable)set port name module/number description-string
7.设置端口速度
IOS:switch(config-if)# speed{10|100|auto}
CLI:switch(enable) set port speed moudle/number {10|100|auto}
switch(enable) set port speed moudle/number {4|16|auto}
8.设置以太网的链路模式
IOS:switch(config-if)# duplex {auto|full|half}
CLI:switch(enable) set port duplex module/number {full|half}
9.配置静态VLAN
IOS:switch# vlan database
switch(vlan)# vlan vlan-num name vla
switch(vlan)# exit
switch# configure teriminal
switch(config)#interface interface module/number
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan vlan-num
switch(config-if)# end
CLI:switch(enable) set vlan vlan-num [name name]
switch(enable) set vlan vlan-num mod-num/port-list
10.配置VLAN中继线
IOS:switch(config)# interface interface mod/port
switch(config-if)# switchport mode trunk
思科交换机命令大全
switch(config-if)#switchport trunk encapsulation {isl|dotlq}
switch(config-if)# switchport trunk allowed vlan remove vlan-list
switch(config-if)# switchport trunk allowed vlan add vlan-list
CLI:switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate]
Vlan-range [isl|dotlq|dotl0|lane|negotiate]
11.配置VTP管理域
IOS:switch# vlan database
switch(vlan)# vtp domain domain-name
CLI:switch(enable) set vtp [domain domain-name]
12.配置VTP 模式
IOS:switch# vlan database
switch(vlan)# vtp domain domain-name
switch(vlan)# vtp {sever|cilent|transparent}
switch(vlan)# vtp password password
CLI:switch(enable) set vtp [domain domain-name]
[mode{ sever|cilent|transparent }][password password]
13.配置VTP版本
IOS:switch# vlan database
switch(vlan)# vtp v2-mode
CLI:switch(enable) set vtp v2 enable
14.启动VTP剪裁
IOS:switch# vlan database
switch(vlan)# vtp pruning
CLI:switch(enable) set vtp pruning enable
15.配置以太信道
IOS:switch(config-if)# port group group-number [distribution {source|destination}] CLI:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}
16.调整根路径成本
IOS:switch(config-if)#spanning-tree [vlan vlan-list] cost cost
CLI:switch(enable)set spantree portcost moudle/port cost
switch(enable)set spantree portvlancost moudle/port [cost cost][vlan-list]
17.调整端口ID
IOS:switch(config-if)#spanning-tree[vlan vlan-list]port-priority port-priority
CLI:switch(enable)set spantree portpri {mldule/port}priority
switch(enable)set spantree portvlanpri {module/port}priority [vlans]
18.修改STP时钟
IOS: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-age seconds
CLI:switch(enable) set spantree hello interval[vlan]
switch(enable) set spantree fwddelay delay [vlan]
switch(enable) set spantree maxage agingtiame[vlan]
19.启用或禁用Port Fast 特征
IOS:switch(config-if)#spanning-tree portfast
CLI:switch(enable)set spantree portfast {module/port}{enable|disable}
思科交换机命令大全
20.启用或禁用UplinkFast 特征
IOS:switch(config)#spanning-tree uplinkfast [max-update-rate pkts-per-second]
CLI:switch(enable)set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols
off|on]
为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令:
switch(config)# cluster enable cluster-name
21. 为了从一条中继链路上删除VLAN,可使用下列命令:
switch(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-num[stp {ieee|ibm}]
25. 在Catalyst交换机上定义TrCRF的命令如下:
switch (enable) set 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)# interface atm number.subint multioint
ATM(config-subif)# lane serber-bus ethernet elan-name
29. 配置LECS:
ATM(config)# lane database database-name
ATM(lane-confi …… 此处隐藏:11307字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [稿件大全]不忘初心牢记使命 党课演讲稿,忠诚干
- [稿件大全]节能环保演讲稿:给生命关怀
- [稿件大全]《麦田里的守望者》读书报告演讲稿
- [稿件大全]“五四”青年节演讲稿_弘扬“五四精神
- [稿件大全]建国70周年演讲稿:践行新使命 续航新
- [稿件大全]五四演讲稿:弘扬“五四精神”做一名逐
- [稿件大全]建国70周年演讲稿:我和我的祖国
- [稿件大全]高三演讲稿_用梦想点燃青春
- [稿件大全]关于禁毒演讲稿:“健康人生,绿色无毒
- [稿件大全]五四精神演讲稿:继续前行
- [稿件大全]党课演讲稿:以更好的精神状态肩负起新
- [稿件大全]护士演讲稿_做有温度的人,做有意义的
- [稿件大全]书记抓基层党建述职评议大会讲话稿
- [稿件大全]高三成人礼演讲稿:遇见最美的你
- [稿件大全]“五四”青年节演讲稿_传承五四精神 放
- [稿件大全]五四运动一百周年演讲稿:什么是“五四
- [稿件大全]纪念五四运动100周年演讲稿三篇
- [稿件大全]岗位竞选演讲稿
- [稿件大全]演讲稿:敢于担当 为命运掌舵
- [稿件大全]争先创优演讲稿:五心服务铸就五星梦想
- 毕业感言:六年相伴(合集16篇)(毕业
- 毕业三十年的聚会感言(共18篇)(毕业
- 转职能转方式转作风发言稿(精选9篇)(
- 教师比赛开场白(通用16篇)(教师比赛
- 婚礼上新人家长致辞(锦集15篇)(婚礼
- 秘书专业实习的自我总结(合集20篇)
- 高速公路票证员个人工作总结(锦集14篇
- 会计毕业实习报告总结及体会(通用12篇
- 收费站监控员年度个人总结(精选15篇)
- 秋季初中新学期开学第一周国旗下讲话稿
- 支部讨论会主持词(精选16篇)(支部讨
- 小朋友主持词开场白(通用19篇)(小朋
- 小班下学期保育员个人工作总结(精选12
- 工会主席在工会工作会议上的讲话(整理
- 幼儿园衔接班家长会发言稿(锦集18篇)
- 剪刀手爱德华台词(整理6篇)(剪刀手爱
- 国旗下的新年寄语讲话演讲稿(精选18篇
- 物业公司物管员个人总结(共16篇)(物
- 学校晚会主持串词(精选10篇)(学校晚
- 婚礼新人入场主持词(通用15篇)(婚礼




