思科和华为命令对照表(不全)
思科命令华为命令命令解析enablesystem-view进入特权模式configure terminal\进入配置状态showdisplay显示show running-configdisplay current显示目前的运行配置show versiondisp version显示版本show startdisp saved显示已保存的配置show tech-supportdisp base-information显示全面的信息noundo取消(删除)hostnamesysname更改机器名\lang chinese进入中文状态userlocal-user新建修改用户endreturn退回到系统视图exitquit返回上级视图exitlogouttelnet退出router ripriprip动态路由router ospfospfospf路由router bgpbgpbgp路由writesave保存配置erasedelete删除配置0simple明文7cipher密文access-listacl控制访问列表hostip hosthost和ip名字对应logginginfo-center日志信息encaplink-protocol封闭链路层协议no debug allctrl+d取消所有debug命令vlan databasevlan进入vlan的配置vtp trunktrunk设置成为骨干端口mode\模式trunk相同主干线switchportport接口控制access相同访问ip dhcpdhcp设置dhcp服务器功能showdisplayshow versiondisp versionshow rundisp current-configurationusernamelocal-userendreturnshow startdisp saved-configurationctrl+zquithostnamesysnameerasedeletelogginginfo-centerencapsulationlink-protocolencapsulationlink-protocol 华为配置命令范例:sysname Huawei-R2831\\设置主机名
interface Ethernet 0/0\\进入接口模式
description T0 Switch-A\\接口描述
ip address 192.168.10.222 255.255.255.0\\配置接口IP地址
undo shutdown\\启用接口
local-user huawei\\建立用户名huawei
password simple huawei\\设置密码为huawei
service-type telnet\\服务类型为telnet
user-interface vty 0 4\\进入telnet通道,设置5个用户可以同时登陆
authentication-mode scheme\\设置telnet的模式为本地用户名与密码登陆
user-interface console 0\\设置console密码
authentication-mode password\\密码认证
set authentication password simple huawei
super password simple huawei\\设置super密码,
display version\\查看VRP软件版本
display current-configuration\\查看当前运行的配置
display saved-configuration\\查看已保存过的配置
display interface Ethernet 0/0\\查看接品参数
display brief interface\\查看接口基本状态
delete flash:/config.cfg\\删除用SAVE保存过的配置
delete flash:/main.bin\\删除VRP的映像文件(谨慎操作)
ave\\保存配置
display 和ping 命令在任何视图下都可执行,不必切换到全局配置视图
页:
[1]