华为网络工程师学****资料华为网络工程师学****资料交换机命令之一——华为1•在基于IOS的交换机上设置主机名/系统名:switch(config)#hostnamehostname在基于CLI的交换机上设置主机名/系统名:switch(enable)setsystemnamename-string在基于IOS的交换机上设置登录口令:switch(config)#enablepasswordlevel〔password在基于CLI的交换机上设置登录口令:switch(enable)setpasswordswitch(enable)setenalbepass在基于IOS的交换机上设置远程访问:switch(config)#interfacevlan1switch(config-if)#ipaddressip-maskswitch(config-if)#ipdefault-gatewayip-address在基于CLI的交换机上设置远程访问:switch(enable)setinterfacesc0ip-maskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgateway在基于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|disable}module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable)showcdpneighbors[module/port][vlan|duplex|capabilities|detail]基于IOS的交换机的端口描述:switch(config-if)#descriptiondescription-string基于CLI的交换机的端口描述:switch(enable)setportnamemodule/numberdescription-string在基于IOS的交换机上设置端口速度:switch(config-if)#speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable)setportspeedmoudle/number{10|100|auto}switch(enable)setportspeedmoudle/number{4|16|auto}7•在基于IOS的交换机上设置以太网的链路模式 :switch(config-if)#duplex{auto|full|half}在基于CLI的交换机上设置以太网的链路模式 :switch(enable)setportduplexmodule/number{full|half}在基于IOS的交换机上配置静态VLAN:switch#vlandatabaseswitch(vlan)#v
华为网络工程师学习资料 来自淘豆网www.taodocs.com转载请标明出处.