欢迎来到天天文库
浏览记录
ID:37668645
大小:97.03 KB
页数:7页
时间:2019-05-28
《思科交换机命令大全(完整版)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
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
此文档下载收益归作者所有