欢迎来到天天文库
浏览记录
ID:39583447
大小:50.00 KB
页数:10页
时间:2019-07-06
《交换机命令-华为》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、华为交换机命令1.在基于IOS的交换机上设置主机名/系统名: switch(config)#hostnamehostname 在基于CLI的交换机上设置主机名/系统名: switch(enable)setsystemnamename-string 2.在基于IOS的交换机上设置登录口令: switch(config)#enablepasswordlevel1password 在基于CLI的交换机上设置登录口令: switch(enable)setpassword switch(enable)setenalbepa
2、ss 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
3、 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信息: swi
4、tch(enable)setcdp{enable
5、disable}module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable)showcdpneighbors[module/port][vlan
6、duplex
7、capabilities
8、detail] 5.基于IOS的交换机的端口描述: switch(config-if)#descriptiondescription-string 基于CLI的交换机的端口描述: switch(enable)setportnamemodule/numb
9、erdescription-string 6.在基于IOS的交换机上设置端口速度: switch(config-if)#speed{10
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、
18、half} 在基于CLI的交换机上设置以太网的链路模式: switch(enable)setportduplexmodule/number{full
19、half} 8.在基于IOS的交换机上配置静态VLAN: switch#vlandatabase switch(vlan)#vlanvlan-numnamevla switch(vlan)#exit switch#configureteriminal switch(config)#interfaceinterfacemodule/number switch(confi
20、g-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)#interfaceinterfacem
21、od/port switch(config-if)#switchportmodetrunk switch(config-if)#switchporttrunkencapsulation{isl
22、dotlq} switch(con
此文档下载收益归作者所有