欢迎来到天天文库
浏览记录
ID:47104507
大小:83.00 KB
页数:17页
时间:2019-08-03
《Cisco交换机命令》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Cisco交换机命令1.在基于IOS的交换机上设置主机名/系统名:switch(config)#hostnamehostname在基于CLI的交换机上设置主机名/系统名:switch(enable)setsystemnamename-string2.在基于IOS的交换机上设置登录口令:switch(config)#enablepasswordlevel1password在基于CLI的交换机上设置登录口令:switch(enable)setpasswordswitch(enable)setenalbepass3.在基于IOS的交换机上设置
2、远程访问:switch(config)#interfacevlan1switch(config-if)#ipaddressip-addressnetmaskswitch(config-if)#ipdefault-gatewayip-address在基于CLI的交换机上设置远程访问:switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgat
3、eway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)#cdpenableswitch(config-if)#nocdpenable为了查看Cisco邻接设备的CDP通告信息:switch#showcdpinterface[typemodle/port]switch#showcdpneighbors[typemodule/port][detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable)setcdp{enable
4、disable}module/port为了查看Cisco
5、邻接设备的CDP通告信息:switch(enable)showcdpneighbors[module/port][vlan
6、duplex
7、capabilities
8、detail]5.基于IOS的交换机的端口描述:switch(config-if)#descriptiondescription-string基于CLI的交换机的端口描述:switch(enable)setportnamemodule/numberdescription-string6.在基于IOS的交换机上设置端口速度:switch(config-if)#speed{10
9、
10、100
11、auto}在基于CLI的交换机上设置端口速度:switch(enable)setportspeedmoudle/number{10
12、100
13、auto}switch(enable)setportspeedmoudle/number{4
14、16
15、auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)#duplex{auto
16、full
17、half}在基于CLI的交换机上设置以太网的链路模式:switch(enable)setportduplexmodule/number{full
18、half}8.在基于
19、IOS的交换机上配置静态VLAN:switch#vlandatabaseswitch(vlan)#vlanvlan-numnamevlaswitch(vlan)#exitswitch#configureteriminalswitch(config)#interfaceinterfacemodule/numberswitch(config-if)#switchportmodeaccessswitch(config-if)#switchportaccessvlanvlan-numswitch(config-if)#end在基于CLI的交换机
20、上配置静态VLAN:switch(enable)setvlanvlan-num[namename]switch(enable)setvlanvlan-nummod-num/port-list9.在基于IOS的交换机上配置VLAN中继线:switch(config)#interfaceinterfacemod/portswitch(config-if)#switchportmodetrunkswitch(config-if)#switchporttrunkencapsulation{isl
21、dotlq}switch(config-if)#
22、switchporttrunkallowedvlanremovevlan-listswitch(config-if)#switchporttrunkallowedvlanaddvlan-list在基于CLI
此文档下载收益归作者所有