cisco交换机配置口令大全.docx

上传人:b****5 文档编号:3194190 上传时间:2022-11-20 格式:DOCX 页数:9 大小:20.06KB
下载 相关 举报
cisco交换机配置口令大全.docx_第1页
第1页 / 共9页
cisco交换机配置口令大全.docx_第2页
第2页 / 共9页
cisco交换机配置口令大全.docx_第3页
第3页 / 共9页
cisco交换机配置口令大全.docx_第4页
第4页 / 共9页
cisco交换机配置口令大全.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

cisco交换机配置口令大全.docx

《cisco交换机配置口令大全.docx》由会员分享,可在线阅读,更多相关《cisco交换机配置口令大全.docx(9页珍藏版)》请在冰豆网上搜索。

cisco交换机配置口令大全.docx

cisco交换机配置口令大全

1.在基于IOS的交换机上设置主机名/系统名:

switch(config)#hostnamehostname

在基于CLI的交换机上设置主机名/系统名:

switch(enable)setsystemnamename-string

2.在基于IOS的交换机上设置登录口令:

switch(config)#enablepasswordlevel1password

在基于CLI的交换机上设置登录口令:

switch(enable)setpassword

switch(enable)setenalbepass

3.在基于IOS的交换机上设置远程访问:

switch(config)#interfacevlan1

switch(config-if)#ipaddressip-addressnetmask

switch(config-if)#ipdefault-gatewayip-address

在基于CLI的交换机上设置远程访问:

switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-address

switch(enable)setinterfacesc0vlan

switch(enable)setiproutedefaultgateway

4.在基于IOS的交换机上启用和浏览CDP信息:

switch(config-if)#cdpenable

switch(config-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(config-if)#descriptiondescription-string

基于CLI的交换机的端口描述:

switch(enable)setportnamemodule/numberdescription-string

6.在基于IOS的交换机上设置端口速度:

switch(config-if)#speed{10|100|auto}

在基于CLI的交换机上设置端口速度:

switch(enable)setportspeedmoudle/number{10|100|auto}

switch(enable)setportspeedmoudle/number{4|16|auto}

7.在基于IOS的交换机上设置以太网的链路模式:

switch(config-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#configureteriminal

switch(config)#interfaceinterfacemodule/number

switch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccessvlanvlan-num

switch(config-if)#end

在基于CLI的交换机上配置静态VLAN:

switch(enable)setvlanvlan-num[namename]

switch(enable)setvlanvlan-nummod-num/port-list

9.在基于IOS的交换机上配置VLAN中继线:

switch(config)#interfaceinterfacemod/port

switch(config-if)#switchportmodetrunk

switch(config-if)#switchporttrunkencapsulation{isl|dotlq}

switch(config-if)#switchporttrunkallowedvlanremovevlan-list

switch(config-if)#switchporttrunkallowedvlanaddvlan-list

在基于CLI的交换机上配置VLAN中继线:

switch(enable)settrunkmodule/port[on|off|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(config-if)#portgroupgroup-number[distribution{source|destination}]

在基于CLI的交换机上配置以太信道:

switch(enable)setportchannelmoudle/port-rangemode{on|off|desirable|auto}

15.在基于IOS的交换机上调整根路径成本:

switch(config-if)#spanning-tree[vlanvlan-list]costcost

在基于CLI的交换机上调整根路径成本:

switch(enable)setspantreeportcostmoudle/portcost

switch(enable)setspantreeportvlancostmoudle/port[costcost][vlan-list]

16.在基于IOS的交换机上调整端口ID:

switch(config-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(config)#spanning-tree[vlanvlan-list]hello-timeseconds

switch(config)#spanning-tree[vlanvlan-list]forward-timeseconds

`switch(config)#spanning-tree[vlanvlan-list]max-ageseconds

在基于CLI的交换机上修改STP时钟:

switch(enable)setspantreehellointerval[vlan]

switch(enable)setspantreefwddelaydelay[vlan]

switch(enable)setspantreemaxageagingtiame[vlan]

18.在基于IOS的交换机端口上启用或禁用PortFast特征:

switch(config-if)#spanning-treeportfast

在基于CLI的交换机端口上启用或禁用PortFast特征:

switch(enable)setspantreeportfast{module/port}{enable|disable}

19.在基于IOS的交换机端口上启用或禁用UplinkFast特征:

switch(config)#spanning-treeuplinkfast[max-update-ratepkts-per-second]

在基于CLI的交换机端口上启用或禁用UplinkFast特征:

switch(enable)setspantreeuplinkfast{enable|disable}[rateupdate-rate][all-protocolsoff|on]

20.为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令:

switch(config)#clusterenablecluster-name

21.为了从一条中继链路上删除VLAN,可使用下列命令:

switch(enable)cleartrunkmodule/portvlan-range

22.用showvtpdomain显示管理域的VTP参数.

23.用showvtpstatistics显示管理域的VTP参数.

24.在

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 幼儿教育 > 唐诗宋词

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1