华为路由常用命令大全
displayipstatisticsdispprocesscpudisiprouti
gtable(disiprou)
查看CPU使用频率
discurdisplaycurre
tco
figuratio
displayi
terfacesdisplayvla
alldisplayversio
superpasswordsys
amei
terfaceether
et01i
terfacevla
xipaddress10651125525500routestatic00000000106512rip
;显示当前配置;显示接口;显示路由信息;显示版本信息;修改特权用户密码
;交换机命名;进入接口视图
;进入接口视图;配置VLAN的IP地址
;静态路由=网关;三层交换支持
localuserftp
useri
terfacevty04
;进入虚拟终端
authe
ticatio
modepassword
;设置口令模式
setauthe
ticatio
modepasswordsimple222;设置口令(simple简单的)
serprivilegelevel3
;用户级别(当用户远程登陆时,其默认级别
为1,不能作任何设置,3为最高级别,可以作修改)
i
terfaceether
et01
;进入端口模式
i
te01
;进入端口模式
duplexhalffullauto
;配置端口工作状态(端口聚合时是全双工,而
CISCO的为半双工)
speed10100auto
;配置端口工作速率
flowco
trol
;配置端口流控
mdiacrossauto
ormal
;配置端口平接扭接
portli
ktypetru
kaccesshybrid
;设置端口工作模式
portaccessvla
3
;当前端口加入到VLAN
porttru
kpermitvla
IDAll
;设tru
k允许的VLAN
porttru
kpvidvla
3
;设置tru
k端口的PVID
u
doshutdow
;激活端口
shutdow
;关闭端口
quit
;返回
vla
3
;创建VLAN
portether
et01
;在VLAN中增加端口
porte01
;简写方式
portether
et01toether
et04
;在VLAN中增加端口
porte01toe04
;简写方式
descriptio
stri
g
;指定VLAN描述字符
descriptio
;删除VLAN描述字符
displayvla
vla
_id
;查看VLAN设置
fstpe
abledisable开的)
;设置生成树默认关闭(思科是打
stppriority4096
;设置交换机的优先级
stprootprimaryseco
dary
;设置为根或根的备份
stpcost200
;设置交换机端口的花费
li
kaggregatio
e01toe04i
gressboth
端口的聚合
u
doli
kaggregatio
e01all
始端口为通道号
SwitchAvla
xisolateuservla
e
able
;设置主vla
SwitchAisolateuservla
xseco
darylist
;设置主vla
包括的子vla
作用为隔离主子VLAN间的主机访问,在同一网段下,主子VLAN可以访问,但是子VLAN
间是不能访问的,这是华为的一个突色
switchaportiaolatee
able这是隔离同一VLAN下的主机相互访问,isolate隔离
porthybridpvidvla
id
;设置vla
的pvid
porthybridpvid
;删除vla
的pvid
porthybridvla
vla
_id_listu
tagged;设置无标识的vla
如果包的vla
id与PVId一致,则去掉vla
信息默认PVID1。
所以设置PVID为所r