↑↓ 选择 · Enter 打开 · Esc 关闭

H3C 命令速查

92 条命令 · 点击右侧按钮复制命令

查看状态 3

display this 查看当前视图配置 ⭐⭐ 常用
2
display version 查看版本 ⭐ 基础
1
display interface brief 查看接口简表 ⭐ 基础
1

故障排查 89

display current-configuration 查看当前配置 ⭐⭐ 常用
1
display saved-configuration 查看启动配置 ⭐ 基础
1
display clock 查看时间 ⭐ 基础
1
display cpu-usage CPU 使用 ⭐⭐ 常用
1
display memory 内存使用 ⭐⭐ 常用
1
display device 设备信息 ⭐⭐ 常用
1
display environment 环境 ⭐⭐ 常用
1
interface GigabitEthernet1/0/1 进入接口 ⭐⭐ 常用
1
ip address 192.168.1.1 24 配置接口 IP ⭐ 基础
1
undo shutdown 启用接口 ⭐ 基础
1
shutdown 关闭接口 ⭐ 基础
1
description "To-Server" 接口描述 ⭐⭐ 常用
1
display interface GigabitEthernet1/0/1 接口详情 ⭐ 基础
1
display ip interface brief IP 接口简表 ⭐ 基础
1
display interface description 接口描述 ⭐ 基础
1
display ip routing-table 查看路由表 ⭐⭐ 常用
1
ip route-static 0.0.0.0 0 192.168.1.254 默认路由 ⭐⭐ 常用
1
ospf 1 启用 OSPF ⭐⭐⭐ 高级
1
area 0 OSPF area ⭐⭐⭐ 高级
1
network 192.168.1.0 0.0.0.255 OSPF 宣告 ⭐⭐⭐ 高级
1
display ospf peer OSPF 邻居 ⭐⭐⭐ 高级
1
display ospf interface OSPF 接口 ⭐⭐⭐ 高级
1
display ospf routing OSPF 路由 ⭐⭐⭐ 高级
1
bgp 65001 启用 BGP ⭐⭐⭐ 高级
1
display bgp peer BGP 邻居 ⭐⭐⭐ 高级
1
display isis peer IS-IS 邻居 ⭐⭐ 常用
1
vlan 10 创建 VLAN ⭐⭐ 常用
1
name Sales VLAN 命名 ⭐⭐ 常用
1
display vlan 查看 VLAN ⭐⭐ 常用
1
display vlan brief VLAN 简表 ⭐⭐ 常用
1
port access vlan 10 Access 端口 ⭐⭐ 常用
1
port link-type trunk 配置 trunk 端口 ⭐⭐ 常用
1
port trunk permit vlan 10 20 30 Trunk 允许 VLAN ⭐⭐ 常用
1
display vlan 10 查看 VLAN 详情 ⭐⭐ 常用
1
stp enable 启用 STP ⭐ 基础
1
stp mode rstp STP 模式 ⭐⭐ 常用
1
stp priority 4096 STP 优先级 ⭐⭐ 常用
1
stp edged-port 边缘端口(PortFast 等价) ⭐⭐ 常用
1
display stp STP 状态 ⭐⭐ 常用
1
display stp brief STP 摘要 ⭐⭐ 常用
1
interface Bridge-Aggregation 1 创建聚合口 ⭐⭐ 常用
1
port link-aggregation group 1 加入聚合组 ⭐⭐ 常用
1
link-aggregation mode dynamic LACP 模式 ⭐⭐ 常用
1
display link-aggregation verbose 查看聚合 ⭐⭐ 常用
1
acl number 2000 创建基本 ACL ⭐⭐⭐ 高级
1
acl number 3000 创建高级 ACL ⭐⭐⭐ 高级
1
rule permit source 192.168.1.0 0.0.0.255 ACL 规则 ⭐⭐⭐ 高级
1
packet-filter 2000 inbound 应用 ACL 到接口 ⭐⭐⭐ 高级
1
display acl 2000 查看 ACL ⭐⭐⭐ 高级
1
super password cipher 123456 设置 super 密码 ⭐⭐ 常用
1
local-user admin 创建本地用户 ⭐⭐ 常用
1
authorization-attribute user-role network-admin 用户授权 ⭐⭐ 常用
1
line vty 0 4 配置 VTY 线路 ⭐⭐ 常用
1
protocol inbound ssh 只允许 SSH ⭐⭐ 常用
1
public-key local create rsa 生成 RSA 密钥 ⭐⭐ 常用
1
ssh server enable 启用 SSH 服务 ⭐ 基础
1
dhcp server ip-pool LAN DHCP 地址池 ⭐ 基础
1
dhcp enable 全局启用 DHCP ⭐ 基础
1
display dhcp server ip-in-use DHCP 分配 ⭐ 基础
1
nat outbound 2000 NAT 出接口 ⭐⭐ 常用
1
display nat session 查看 NAT 会话 ⭐⭐ 常用
1
irf member 1 priority 1 IRF 优先级 ⭐⭐ 常用
1
irf-port 1/1 IRF 端口 ⭐⭐ 常用
1
irf-port-configuration active 激活 IRF ⭐⭐ 常用
1
display irf IRF 状态 ⭐⭐ 常用
1
system-view 进入系统视图 ⭐ 基础
1
quit 退出视图 ⭐ 基础
1
return 返回用户视图 ⭐⭐ 常用
1
sysname H3C-S6850 设置主机名 ⭐ 基础
1
save 保存配置 ⭐ 基础
1
save force 强制保存 ⭐ 基础
1
reboot 重启设备 ⭐⭐ 常用
1
reset saved-configuration 擦除启动配置 ⭐ 基础
1
delete startup.cfg 删除启动配置 ⭐⭐ 常用
1
ping 8.8.8.8 ping 测试 ⭐ 基础
1
tracert 8.8.8.8 路由追踪 ⭐ 基础
1
display arp 查看 ARP ⭐⭐ 常用
1
display mac-address MAC 表 ⭐⭐ 常用
1
display logbuffer 日志 ⭐⭐ 常用
1
terminal monitor 日志实时显示 ⭐⭐ 常用
1
terminal debugging 开启调试 ⭐⭐ 常用
1
debugging ospf events OSPF 调试 ⭐⭐⭐ 高级
1
undo debugging all 关闭所有调试 ⭐⭐ 常用
1
display lldp neighbor-information LLDP 邻居 ⭐⭐⭐ 高级
1
display diagnostic-information 诊断信息 ⭐⭐ 常用
1
qos car inbound 流量限速 ⭐⭐⭐ 高级
1
traffic-shape 流量整形 ⭐⭐⭐ 高级
1
backup startup-configuration 备份启动配置 ⭐⭐ 常用
1
restore startup-configuration 恢复启动配置 ⭐⭐ 常用
1