思科交换机命令大全(完整版)

思科交换机命令大全(完整版)

ID:37668645

大小:97.03 KB

页数:7页

时间:2019-05-28

思科交换机命令大全(完整版)_第1页
思科交换机命令大全(完整版)_第2页
思科交换机命令大全(完整版)_第3页
思科交换机命令大全(完整版)_第4页
思科交换机命令大全(完整版)_第5页
资源描述:

《思科交换机命令大全(完整版)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、思科交换机命令大全1.设置主机名/系统名IOS:switch(config)#hostname"hostname"CLI:switch(enable)setsystemnamename-string2.设置登录口令IOS:switch(config)#enablepasswordlevel1passwordCLI:switch(enable)setpasswordswitch(enable)setenalbepass3.设置远程访问IOS:switch(config)#interfacevlan1switch(config-i

2、f)#ipaddressip-addressnetmaskswitch(config-if)#ipdefault-gatewayip-addressCLI:switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgateway4.启用和浏览CDP信息IOS:switch(config-if)#cdpenableswitch(conf

3、ig-if)#nocdpenableCLI:switch(enable)setcdp{enable

4、disable}module/port5.查看Cisco邻接设备的CDP通告IOS:switch#showcdpinterface[typemodle/port]switch#showcdpneighbors[typemodule/port][detail]CLI:switch(enable)showcdpneighbors[module/port][vlan

5、duplex

6、capabilities

7、detail]6.端口描述I

8、OS:switch(config-if)#descriptionescription-stringCLI:switch(enable)setportnamemodule/numberdescription-string7.设置端口速度IOS:switch(config-if)#speed{10

9、100

10、auto}CLI:switch(enable)setportspeedmoudle/number{10

11、100

12、auto}switch(enable)setportspeedmoudle/number{4

13、16

14、auto}8.设

15、置以太网的链路模式IOS:switch(config-if)#duplex{auto

16、full

17、half}CLI:switch(enable)setportduplexmodule/number{full

18、half}9.配置静态VLANIOS:switch#vlandatabaseswitch(vlan)#vlanvlan-numnamevlaswitch(vlan)#exitswitch#configureteriminalswitch(config)#interfaceinterfacemodule/numberswitc

19、h(config-if)#switchportmodeaccessswitch(config-if)#switchportaccessvlanvlan-numswitch(config-if)#endCLI:switch(enable)setvlanvlan-num[namename]switch(enable)setvlanvlan-nummod-num/port-list10.配置VLAN中继线IOS:switch(config)#interfaceinterfacemod/portswitch(config-if)#sw

20、itchportmodetrunkswitch(config-if)#switchporttrunkencapsulation{isl

21、dotlq}switch(config-if)#switchporttrunkallowedvlanremovevlan-listswitch(config-if)#switchporttrunkallowedvlanaddvlan-listCLI:switch(enable)settrunkmodule/port[on

22、off

23、desirable

24、auto

25、nonegotiate]Vlan-

26、range[isl

27、dotlq

28、dotl0

29、lane

30、negotiate]11.配置VTP管理域IOS:switch#vlandatabaseswitch(vlan)#vtpdomaindomain-nameCLI:switch(enable)setvtp[domaindom

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。