华为交换常用命令
上一篇 /
下一篇 2008-03-18 14:53:46
/ 不允许评论
/ 个人分类:职场人生
.在基于IOS的交换机上设置主机名/系统名: MSCBSC | 移动通信网pv#K _MC"f-mT9`k
switch(config)# hostname hostname
Fv:x)F/f0在基于CLI的交换机上设置主机名/系统名: MSCBSC | 移动通信网
Bcm
J(B,R
switch(enable) set system name name-string
9q!u7S3s^NR0
(v]${&I]|L$M02.在基于IOS的交换机上设置登录口令:
8Nn h1D4T5FCr)}(g0switch(config)# enable password level 1 password MSCBSC | 移动通信网W TtY%\hc4f
在基于CLI的交换机上设置登录口令: MSCBSC | 移动通信网7ibbkyh,Z
switch(enable) set password MSCBSC | 移动通信网o;|Gl-~|F;lK:C
switch(enable) set enalbepass
HGY3F&Yij*B a0MSCBSC | 移动通信网"m;i3lMDdr
3.在基于IOS的交换机上设置远程访问:
V7Y+X3TY5}2H RjDL0switch(config)# interface vlan 1 MSCBSC | 移动通信网4GF$oPVT,A"?&en+Dt
switch(config-if)# ip address ip-address netmask
CM%JA2h5d[H0switch(config-if)# ip default-gateway ip-address MSCBSC | 移动通信网 mk [&GI0x
在基于CLI的交换机上设置远程访问:
4Ax(d5Ar:U8D0switch(enable) set interface sc0 ip-address netmask broadcast-address MSCBSC | 移动通信网W9YbW
}0M'TU
switch(enable) set interface sc0 vlan
rG"kv9w^{L$^0switch(enable) set ip route default gateway MSCBSC | 移动通信网qB+n!r)N"t
MSCBSC | 移动通信网T4P#b
I.k1ht]
4.在基于IOS的交换机上启用和浏览CDP信息:
X {WG'X0switch(config-if)# cdp enable