华为交换常用命令1.doc
文本预览下载声明
华为交换常用命令
.在基于IOS的交换机上设置主机名/系统名: MSCBSC | 移动通信网d NZwSlSswitch(config)# hostname hostname }/u2l.]_8c86102在基于CLI的交换机上设置主机名/系统名: MSCBSC | 移动通信网 yx3d|,B%b%zswitch(enable) set system name name-string *w`3UQ Qc86102(bI%M;n`K861022.在基于IOS的交换机上设置登录口令: MSCBSC | 移动通信网?y!]7sZ9?Jj;D`switch(config)# enable password level 1 password :@v] K%i/KF8I^86102在基于CLI的交换机上设置登录口令: MSCBSC | 移动通信网R;JnI1Ww}R zMIswitch(enable) set password /Y;ozsjzD^86102switch(enable) set enalbepass MSCBSC | 移动通信网 W^*Y+FW]:F0qz9qMSCBSC | 移动通信网8})Iu5D3xK;D?3aw3.在基于IOS的交换机上设置远程访问: R-}$xp/LhoS1X-T!E?5q86102switch(config)# interface vlan 1 F;C-ho{:y*Y86102switch(config-if)# ip address ip-address netmask I7{a.tpM/v7jUl86102switch(config-if)# ip default-gateway ip-address t*B.o]M86102在基于CLI的交换机上设置远程访问: I;\ i` ]%jm-U~86102switch(enable) set interface sc0 ip-address netmask broadcast-address LE*DM~w y Ql86102switch(enable) set interface sc0 vlan MSCBSC | 移动通信网N+C0h-st8RG?switch(enable) set ip route default gateway `^M Z~.GwUX7Sm86102nIz$X7rL!w861024.在基于IOS的交换机上启用和浏览CDP信息: MSCBSC | 移动通信网 B]5K7Yi WEZhs+mswitch(config-if)# cdp enable MSCBSC | 移动通信网 sQ;@jZ;Qh+@*Nswitch(config-if)# no cdp enable 8BX|}0Q{86102为了查看Cisco邻接设备的CDP通告信息: %^:MYb{86102switch# show cdp interface [type modle/port] MSCBSC | 移动通信网Jz[0q7sz-Rumswitch# show cdp neighbors [type module/port] [detail] Z?*V,u*p*d6svK7k86102在基于CLI的交换机上启用和浏览CDP信息: /@Iuay6m*L86102switch(enable) set cdp {enable|disable} module/port MSCBSC | 移动通信网GL^%R;YY:flh为了查看Cisco邻接设备的CDP通告信息: MSCBSC | 移动通信网$kJh4Hhswitch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] MSCBSC | 移动通信网Sh.? s`f,PMSCBSC | 移动通信网G$x4d#Pdu nYi5.基于IOS的交换机的端口描述: zJ-JTB IWH%N3M(n86102switch(config-if)# description description-string MSCBSC | 移动通信网I:X*}VD+`t*d基于CLI的交换机的端口描述: MSCBSC | 移动通信网9M4E U7}2u@-h Pswitch(enable)set port name module/number
显示全部