没有合适的资源?快使用搜索试试~ 我知道了~
首页思科交换机命令全集,常用命令
思科交换机命令全集,常用命令
需积分: 38 18 下载量 179 浏览量
更新于2023-03-03
评论 2
收藏 53KB DOC 举报
cisco命令全集,还不错,大家分享,呵呵,不过感觉还是不够全面,没有例子
资源详情
资源评论
资源推荐
1.在基于 IOS 的交换机上设置主机名/系统名:
switch(cong)#hostnamehostname
在基于 CLI 的交换机上设置主机名/系统名:
switch(enable)setsystemnamename-string
2.在基于 IOS 的交换机上设置登录口令:
switch(cong)#enablepasswordlevel1password
在基于 CLI 的交换机上设置登录口令:
switch(enable)setpassword
switch(enable)setenalbepass
3.在基于 IOS 的交换机上设置远程访问:
switch(cong)#interfacevlan1
switch(cong-if)#ipaddressip-addressnetmask
switch(cong-if)#ipdefault-gatewayip-address
在基于 CLI 的交换机上设置远程访问:
switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-
address
switch(enable)setinterfacesc0vlan
switch(enable)setiproutedefaultgateway
4.在基于 IOS 的交换机上启用和浏览 CDP 信息:
switch(cong-if)#cdpenable
switch(cong-if)#nocdpenable
为了查看 Cisco 邻接设备的 CDP 通告信息:
switch#showcdpinterface[typemodle/port]
switch#showcdpneighbors[typemodule/port][detail]
在基于 CLI 的交换机上启用和浏览 CDP 信息:
switch(enable)setcdp{enable|disable}module/port
为了查看 Cisco 邻接设备的 CDP 通告信息:
switch(enable)showcdpneighbors[module/port][vlan|duplex|
capabilities|detail]
5.基于 IOS 的交换机的端口描述:
switch(cong-if)#descriptiondescription-string
基于 CLI 的交换机的端口描述:
switch(enable)setportnamemodule/numberdescription-string
6.在基于 IOS 的交换机上设置端口速度:
switch(cong-if)#speed{10|100|auto}
在基于 CLI 的交换机上设置端口速度:
switch(enable)setportspeedmoudle/number{10|100|auto}
switch(enable)setportspeedmoudle/number{4|16|auto}
7.在基于 IOS 的交换机上设置以太网的链路模式:
switch(cong-if)#duplex{auto|full|half}
在基于 CLI 的交换机上设置以太网的链路模式:
switch(enable)setportduplexmodule/number{full|half}
8.在基于 IOS 的交换机上配置静态 VLAN:
switch#vlandatabase
switch(vlan)#vlanvlan-numnamevla
switch(vlan)#exit
switch#congureteriminal
switch(cong)#interfaceinterfacemodule/number
switch(cong-if)#switchportmodeaccess
switch(cong-if)#switchportaccessvlanvlan-num
switch(cong-if)#end
在基于 CLI 的交换机上配置静态 VLAN:
switch(enable)setvlanvlan-num[namename]
switch(enable)setvlanvlan-nummod-num/port-list
9.在基于 IOS 的交换机上配置 VLAN 中继线:
switch(cong)#interfaceinterfacemod/port
switch(cong-if)#switchportmodetrunk
switch(cong-if)#switchporttrunkencapsulation{isl|dotlq}
switch(cong-if)#switchporttrunkallowedvlanremovevlan-list
switch(cong-if)#switchporttrunkallowedvlanaddvlan-list
在基于 CLI 的交换机上配置 VLAN 中继线:
switch(enable)settrunkmodule/port[on|o<|desirable|auto|
nonegotiate]
Vlan-range[isl|dotlq|dotl0|lane|negotiate]
10.在基于 IOS 的交换机上配置 VTP 管理域:
switch#vlandatabase
switch(vlan)#vtpdomaindomain-name
在基于 CLI 的交换机上配置 VTP 管理域:
switch(enable)setvtp[domaindomain-name]
11.在基于 IOS 的交换机上配置 VTP模式:
switch#vlandatabase
switch(vlan)#vtpdomaindomain-name
switch(vlan)#vtp{sever|cilent|transparent}
switch(vlan)#vtppasswordpassword
在基于 CLI 的交换机上配置 VTP模式:
switch(enable)setvtp[domaindomain-name][mode{sever|cilent|
transparent}][passwordpassword]
12.在基于 IOS 的交换机上配置 VTP 版本:
switch#vlandatabase
switch(vlan)#vtpv2-mode
在基于 CLI 的交换机上配置 VTP 版本:
switch(enable)setvtpv2enable
13.在基于 IOS 的交换机上启动 VTP 剪裁:
switch#vlandatabase
switch(vlan)#vtppruning
在基于 CLI的交换机上启动 VTP 剪裁:
switch(enable)setvtppruningenable
14.在基于 IOS 的交换机上配置以太信道:
switch(cong-if)#portgroupgroup-number[distribution{source|
destination}]
在基于 CLI 的交换机上配置以太信道:
switch(enable)setportchannelmoudle/port-rangemode{on|o<|
desirable|auto}
15.在基于 IOS 的交换机上调整根路径成本:
switch(cong-if)#spanning-tree[vlanvlan-list]costcost
在基于 CLI 的交换机上调整根路径成本:
switch(enable)setspantreeportcostmoudle/portcost
switch(enable)setspantreeportvlancostmoudle/port[costcost]
[vlan-list]
16.在基于 IOS 的交换机上调整端口 ID:
switch(cong-if)#spanning-tree[vlanvlan-list]port-priorityport-
priority
在基于 CLI 的交换机上调整端口 ID:
switch(enable)setspantreeportpri{mldule/port}priority
switch(enable)setspantreeportvlanpri{module/port}priority[vlans
]
17.在基于 IOS 的交换机上修改 STP 时钟:
switch(cong)#spanning-tree[vlanvlan-list]hello-timeseconds
switch(cong)#spanning-tree[vlanvlan-list]forward-timeseconds
switch(cong)#spanning-tree[vlanvlan-list]max-ageseconds
在基于 CLI 的交换机上修改 STP 时钟:
switch(enable)setspantreehellointerval[vlan]
switch(enable)setspantreefwddelaydelay[vlan]
switch(enable)setspantreemaxageagingtiame[vlan]
剩余10页未读,继续阅读
tiemuzhen2000
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 2023年中国辣条食品行业创新及消费需求洞察报告.pptx
- 2023年半导体行业20强品牌.pptx
- 2023年全球电力行业评论.pptx
- 2023年全球网络安全现状-劳动力资源和网络运营的全球发展新态势.pptx
- 毕业设计-基于单片机的液体密度检测系统设计.doc
- 家用清扫机器人设计.doc
- 基于VB+数据库SQL的教师信息管理系统设计与实现 计算机专业设计范文模板参考资料.pdf
- 官塘驿林场林防火(资源监管)“空天地人”四位一体监测系统方案.doc
- 基于专利语义表征的技术预见方法及其应用.docx
- 浅谈电子商务的现状及发展趋势学习总结.doc
- 基于单片机的智能仓库温湿度控制系统 (2).pdf
- 基于SSM框架知识产权管理系统 (2).pdf
- 9年终工作总结新年计划PPT模板.pptx
- Hytera海能达CH04L01 说明书.pdf
- 数据中心运维操作标准及流程.pdf
- 报告模板 -成本分析与报告培训之三.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0