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

中兴 命令速查

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

故障排查 64

show version 查看设备版本信息 ⭐ 基础
2
show running-config 查看当前运行配置 ⭐⭐ 常用
1
show startup-config 查看启动配置 ⭐⭐ 常用
2
show clock 查看系统时间 ⭐ 基础
1
show cpu 查看 CPU 使用率 ⭐⭐ 常用
1
show memory 查看内存使用 ⭐⭐ 常用
2
show environment 查看设备环境 ⭐⭐ 常用
2
interface GigabitEthernet 0/1 进入接口视图 ⭐⭐ 常用
2
ip address 192.168.1.1 255.255.255.0 配置接口 IP ⭐ 基础
2
no shutdown 启用接口 ⭐ 基础
1
show interface brief 查看接口状态简表 ⭐ 基础
2
show interface GigabitEthernet 0/1 查看接口详情 ⭐ 基础
2
description "To-Core-Switch" 接口描述 ⭐⭐ 常用
1
show ip route 查看路由表 ⭐⭐ 常用
2
ip route 0.0.0.0 0.0.0.0 192.168.1.254 配置默认路由 ⭐⭐ 常用
1
router ospf 1 启用 OSPF ⭐⭐⭐ 高级
1
network 192.168.1.0 0.0.0.255 area 0 OSPF 网络宣告 ⭐⭐⭐ 高级
1
show ip ospf neighbor 查看 OSPF 邻居 ⭐⭐⭐ 高级
2
show ip ospf database 查看 OSPF 链路状态数据库 ⭐⭐⭐ 高级
1
show ip ospf interface 查看 OSPF 接口 ⭐⭐⭐ 高级
2
vlan 10 创建 VLAN ⭐⭐ 常用
2
switchport mode access 配置 access 端口 ⭐⭐ 常用
2
switchport mode trunk 配置 trunk 端口 ⭐⭐ 常用
2
show vlan 查看 VLAN ⭐⭐ 常用
2
show vlan brief 查看 VLAN 简表 ⭐⭐ 常用
1
show spanning-tree 查看生成树状态 ⭐⭐ 常用
1
spanning-tree mode rstp 配置 RSTP ⭐⭐ 常用
2
spanning-tree vlan 10 priority 4096 设置 STP 优先级 ⭐⭐ 常用
2
access-list 100 permit tcp any any eq 80 创建 ACL ⭐⭐⭐ 高级
2
show access-lists 查看 ACL ⭐⭐⭐ 高级
2
write 保存配置 ⭐ 基础
2
copy running-config startup-config 保存到 NVRAM ⭐⭐ 常用
2
reload 重启设备 ⭐⭐ 常用
2
configure terminal 进入全局配置 ⭐ 基础
1
end 退出到特权模式 ⭐⭐ 常用
1
exit 退出当前模式 ⭐⭐ 常用
2
enable 进入特权模式 ⭐ 基础
2
disable 退出特权模式 ⭐⭐ 常用
2
username admin password admin123 创建用户 ⭐⭐ 常用
1
username admin privilege 15 设置用户权限 ⭐⭐ 常用
2
enable password 123456 设置 enable 密码 ⭐ 基础
2
show users 查看登录用户 ⭐⭐ 常用
1
line vty 0 4 配置 VTY 线路 ⭐⭐ 常用
1
transport input ssh 只允许 SSH ⭐⭐ 常用
2
crypto key generate rsa 生成 RSA 密钥 ⭐⭐ 常用
1
ip dhcp pool LAN 创建 DHCP 地址池 ⭐ 基础
2
show ip dhcp binding 查看 DHCP 绑定 ⭐ 基础
2
ip nat inside source list 1 interface GigabitEthernet0/0 overload 配置 NAT ⭐⭐ 常用
1
show ip nat translations 查看 NAT 转换 ⭐⭐ 常用
2
ping 8.8.8.8 测试连通性 ⭐ 基础
1
traceroute 8.8.8.8 路由追踪 ⭐ 基础
2
show ip interface brief 查看接口 IP 简表 ⭐ 基础
1
show arp 查看 ARP 表 ⭐⭐ 常用
1
show mac address-table 查看 MAC 表 ⭐⭐ 常用
1
show log 查看日志 ⭐⭐ 常用
2
terminal monitor 开启日志实时显示 ⭐⭐ 常用
2
debug ip ospf events OSPF 事件调试 ⭐⭐⭐ 高级
2
no debug all 关闭所有调试 ⭐⭐ 常用
2
router bgp 65001 启用 BGP ⭐⭐⭐ 高级
2
show ip bgp summary 查看 BGP 摘要 ⭐⭐⭐ 高级
1
show interface counters 查看接口计数器 ⭐ 基础
1
clear counters 清空接口计数器 ⭐⭐ 常用
2
write memory 保存到 NVRAM ⭐ 基础
2
erase startup-config 擦除启动配置 ⭐⭐ 常用
2