没有合适的资源?快使用搜索试试~ 我知道了~
首页思科交换机命令全集,常用命令
思科交换机命令全集,常用命令
需积分: 38 2.1k 浏览量
更新于2023-05-30
评论
收藏 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币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- Xilinx SRIO详解.pptx
- Informatica PowerCenter 10.2 for Centos7.6安装配置说明.pdf
- 现代无线系统射频电路实用设计卷II 英文版.pdf
- 电子产品可靠性设计 自己讲课用的PPT,包括设计方案的可靠性选择,元器件的选择与使用,降额设计,热设计,余度设计,参数优化设计 和 失效分析等
- MPC5744P-DEV-KIT-REVE-QSG.pdf
- 通信原理课程设计报告(ASK FSK PSK Matlab仿真--数字调制技术的仿真实现及性能研究)
- ORIGIN7.0使用说明
- 在VMware Player 3.1.3下安装Redhat Linux详尽步骤
- python学生信息管理系统实现代码
- 西门子MES手册 13 OpcenterEXCR_PortalStudio1_81RB1.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0