h3c和华为配置命令区别,思科和华为命令对比表

思科华为H3C描述
noundoundo取消/关闭 当前设置
showdisplaydisplay查看、显示
exitquitquit退回上级
hostnamesysnamesysname设置主机名
en, config terminalsystem-viewsystem-view进入全局模式
deletedeletedelete删除文件
reloadrebootreboot重启
writesavesave保存当前配置
usernamelocal-userlocal-user创建用户
shutdownshutdownshutdown禁止、关闭
show versiondisplay versiondisplay version显示当前系统版本
show startup-configdisplay saved-configurationdisplay saved-configuration查看已保存过的配置
show running-configdisplay current-configurationdisplay current-configuration显示当前配置
no debug allctrl+dctrl+d取消所有debug命令
erase startup-configreset saved-configurationreset saved-configuration删除配置
endreturnreturn退到用户视图
exitlogoutlogout登出
logginginfo-centerinfo-center指定信息中心配置信息
lineuser-interfaceuser-interface进入线路配置(用户接口)模式
start-configsaved-configurationsaved-configuration启动配置
running-configcurrent-configurationcurrent-configuration当前配置
hostip hostip hosthost名字和ip地址对应
交换部份:
enable passwordset authentication password simpleset authentication password simple配置明文密码
interface type/numberport type/numberport type/number进入接口
interface vlan 1interface vlan 1interface vlan 1进入vlan配置vlan管理地址
interface ranginterface ethID to IDinterface ethID to ID定议多个端口的组
enabl esecretsuper passwordsuper password设置特权口令
duplex (half|full|auto)duplex (half|full|auto)duplex (half|full|auto)配置接口状态
speed (10/100/1000)speed (10/100/1000)speed (10/100/1000)配置端口速率
switchport mode trunkport link-type trunkport link-type trunk配置trunk
vlan ID /no vlan IDvlan ID /undo vlan IDvlan ID /undo vlan ID添加、删除vlan
switchport access vlan IDport vlan IDport vlan ID将端口接入vlan
show interfacedisplay interfacedisplay interface查看接口
show vlan IDdisplay vlan IDdisplay vlan ID查看vlan
encapsulationlink-protocollink-protocol封装协议
channel-group 1 mode onport link-aggregation group 1port link-aggregation group 1链路聚合
ip routing默认开启默认开启开启三层交换的路由功能
no switchport不支持不支持开启接口三层功能
vtp domainGVRPGVRP对跨以太网交换机的VLAN进行动态注册和删除
spanning-tree vlan ID root primarystp配置根网桥
spanning-tree vlan ID priority配置网桥优先级
show spanning-tree查看STP配置
路由部份:
ip route 0.0.0.0 0.0.0.0ip route-static 0.0.0.0 0.0.0.0ip route-static 0.0.0.0 0.0.0.0配置默认路由
ip route 目标网段+掩码 下一跳ip route-static 目标网段+掩码 下一跳ip route-static 目标网段+掩码 下一跳配置静态路由
show ip routedisplay ip routing-tabledisplay ip routing-table查看路由表
router rip /network 网段rip /network 网段rip /network 网段启用rip、并宣告网段
router ospfospf enableospf enable启用ospf
network ip 反码 area <area-id>ospf enable area <area-id>ospf enable area <area-id>配置OSPF区域
no auto-summaryrip split-horizonrip split-horizon配置RIP V2水平分割
show ip protocoldisplay ip protocoldisplay ip protocol查看路由协议
access-list 1-99 permit/deny IPrule normal permit source IPrule normal permit source IP标准访问控制列表
access-list 100-199 permit/deny protocol source IP+反码 destination IP+反码 operator operanrule {normal|special}{permit|deny}{tcp|udp}source {<ip wild>|any}destination <ip wild>|any}[operate]rule {normal|special}{permit|deny}{tcp|udp}source {<ip wild>|any}destination <ip wild>|any}[operate]扩展访问控制列表
standby group-number ip virtual-ipvrrp vrid number virtual-ipvrrp vrid number virtual-ip配置HSRP组
standby group-number priorityvrrp vrid number priorityvrrp vrid number priority配置HSRP优先级
standby group-number preemptvrrp vrid number preempt-modevrrp vrid number preempt-mode配置HSRP占先权
standby group-number track配置端口跟踪
ip nat inside source staticnat server global <ip> [port] inside <ip> port [protocol]nat server global <ip> [port] inside <ip> port [protocol]配置静态地址转换
(0)

相关推荐