欢迎来到天天文库
浏览记录
ID:34282149
大小:43.16 KB
页数:3页
时间:2019-03-04
《十条华为交换机命令最基本的用法》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、十条华为交换机命令最基本的用法,下面例举了十条最基本的命令,比如:华为交换机命令在基于IOS的交换机上设置登录口令,华为交换机命令在基于IOS的交换机上设置主机名/系统名等。1◆华为交换机命令在基于IOS的交换机上设置主机名/系统名:switch(config)#hostnamehostname在基于CLI的交换机上设置主机名/系统名:switch(enable)setsystemnamename-string2◆华为交换机命令在基于IOS的交换机上设置登录口令:switch(config)#enablepasswordlevel1passwor
2、d在基于CLI的交换机上设置登录口令:switch(enable)setpasswordswitch(enable)setenalbepass3◆华为交换机命令在基于IOS的交换机上设置远程访问:switch(config)#interfacevlan1switch(config-if)#ipaddressip-addressnetmaskswitch(config-if)#ipdefault-gatewayip-address在基于CLI的交换机上设置远程访问:switch(enable)setinterfacesc0ip-addressnet
3、maskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgateway4◆华为交换机命令在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)#cdpenableswitch(config-if)#nocdpenable为了查看Cisco邻接设备的CDP通告信息:switch#showcdpinterface[typemodle/port]switch#showcdpneighbors[typemodule/p
4、ort][detail]在基于CLI的交换机上启用和浏览CDP信息:switch(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(enab
9、le)setportnamemodule/numberdescription-string6◆在基于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、f
17、ull
18、half}在基于CLI的交换机上设置以太网的链路模式:switch(enable)setportduplexmodule/number{full
19、half}8◆华为交换机命令在基于IOS的交换机上配置静态VLAN:switch#vlandatabaseswitch(vlan)#vlanvlan-numnamevlaswitch(vlan)#exitswitch#configureteriminalswitch(config)#interfaceinterfacemodule/numberswitch(config-if)#switchpo
20、rtmodeaccessswitch(config-if)#switchportaccessvlanvlan-numswitch(config-if)#end在基于CLI的交换机上配置静态VLAN:switch(enable)setvlanvlan-num[namename]switch(enable)setvlanvlan-nummod-num/port-list9◆在基于IOS的交换机上配置VLAN中继线:switch(config)#interfaceinterfacemod/portswitch(config-if)#switchport
21、modetrunkswitch(config-if)#switchporttrunkencapsulation{isl
22、dotlq}sw
此文档下载收益归作者所有