mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-20 16:10:46 +08:00
245 lines
8.8 KiB
Markdown
245 lines
8.8 KiB
Markdown
# 故障处理常用命令目录集(ZTE ZXROS)
|
||
|
||
> **设备**:MER1 @ 10.229.234.136 (ZXCTN 9000-3EA, V5.00.10.70)
|
||
> **更新时间**:2026-07-20
|
||
> **验证状态**:✅ 已验证 / ❌ 错误命令(已删除)
|
||
|
||
---
|
||
|
||
## 一、BGP相关命令
|
||
|
||
### 1.1 BGP IPv4单播
|
||
```bash
|
||
show bgp ipv4 unicast # BGP IPv4单播路由表
|
||
show bgp ipv4 unicast summary # BGP IPv4摘要信息
|
||
```
|
||
|
||
### 1.2 BGP VPNv4
|
||
```bash
|
||
show bgp vpnv4 unicast # VPNv4 BGP路由表(所有VRF)
|
||
show bgp vpnv4 unicast summary # VPNv4 BGP摘要
|
||
show bgp vpnv4 unicast vrf <vrf-name> route # 指定VRF的VPNv4路由表
|
||
show bgp vpnv4 unicast vrf <vrf-name> # 指定VRF的VPNv4路由(Incomplete command,需要加route)
|
||
```
|
||
|
||
### 1.3 BGP配置查看
|
||
```bash
|
||
show running-config bgp # BGP运行配置
|
||
show running-config router bgp <as-number> # BGP进程配置
|
||
```
|
||
|
||
### 1.4 BGP IPv4单播详细
|
||
```bash
|
||
show bgp ipv4 unicast neighbor # BGP IPv4邻居信息
|
||
show bgp ipv4 unicast neighbor <ip-address> # 指定邻居的详细信息
|
||
```
|
||
|
||
---
|
||
|
||
## 二、IGP相关命令
|
||
|
||
### 2.1 IS-IS
|
||
```bash
|
||
show isis adjacency # IS-IS邻接关系
|
||
show isis database # IS-IS链路状态数据库
|
||
show isis hostname # IS-IS动态主机名映射
|
||
show isis circuit # IS-IS电路信息
|
||
```
|
||
|
||
### 2.2 OSPF
|
||
```bash
|
||
show ip ospf neighbor # OSPF邻居关系
|
||
show ip ospf interface brief # OSPF接口简要信息
|
||
show ip ospf interface # OSPF接口详细信息
|
||
show ip ospf database # OSPF链路状态数据库
|
||
show ip ospf database router-link # OSPF Type-1 LSA(Router LSA)
|
||
show ip ospf database network # OSPF Type-2 LSA(Network LSA)
|
||
show ip ospf database summary # OSPF Type-3 LSA(Summary LSA)
|
||
show ip ospf database asbr # OSPF Type-4 LSA(ASBR Summary LSA)
|
||
show ip ospf database external # OSPF Type-5 LSA(External LSA)
|
||
show ip ospf database nssa # OSPF Type-7 LSA(NSSA External LSA)
|
||
show ip ospf database self-originate # OSPF自生成的LSA
|
||
show ip ospf border-routers # OSPF边界路由器信息
|
||
show ip ospf virtual-links # OSPF虚链路信息
|
||
show ip ospf # OSPF进程概要信息
|
||
show ip ospf route # OSPF路由表(按进程显示)
|
||
```
|
||
|
||
---
|
||
|
||
## 三、MPLS/LDP相关命令
|
||
|
||
### 3.1 MPLS转发
|
||
```bash
|
||
show mpls forwarding-table # MPLS标签转发表
|
||
show mpls forwarding-table <next-hop-ip> # 特定下一跳的标签转发表
|
||
```
|
||
|
||
### 3.2 LDP会话和绑定
|
||
```bash
|
||
show mpls ldp neighbor brief instance <id> # LDP邻居简要信息(必须指定instance!)
|
||
show mpls ldp neighbor instance <id> # LDP邻居详细信息
|
||
show mpls ldp parameters instance <id> # LDP参数配置
|
||
show mpls ldp binding instance <id> # LDP标签绑定信息(全局)
|
||
show mpls ldp discovery instance <id> # LDP发现信息
|
||
```
|
||
|
||
### 3.3 LDP配置
|
||
```bash
|
||
show running-config ldp # LDP运行配置
|
||
```
|
||
|
||
---
|
||
|
||
## 四、VRF相关命令
|
||
|
||
### 4.1 VRF路由
|
||
```bash
|
||
show ip forwarding route vrf <vrf-name> # VRF路由表
|
||
show ip route vpn # 查看所有VPN路由
|
||
```
|
||
|
||
### 4.2 VRF业务测试
|
||
```bash
|
||
ping vrf <vrf-name> <dest-ip> # Ping测VRF内地址
|
||
```
|
||
|
||
---
|
||
|
||
## 五、隧道相关命令
|
||
|
||
```bash
|
||
# 暂无已验证的隧道查询命令
|
||
```
|
||
|
||
---
|
||
|
||
## 六、接口和路由基础命令
|
||
|
||
### 6.1 接口状态
|
||
```bash
|
||
show interface brief # 接口简要信息
|
||
show ip interface brief # IP接口简要信息
|
||
```
|
||
|
||
### 6.2 全局路由
|
||
```bash
|
||
show ip forwarding route # 全局IPv4路由表
|
||
```
|
||
|
||
### 6.3 ARP/MAC
|
||
```bash
|
||
show arp # ARP表
|
||
```
|
||
|
||
---
|
||
|
||
## 七、系统基础命令
|
||
|
||
### 7.1 系统信息
|
||
```bash
|
||
show version # 版本信息
|
||
show running-config # 当前运行配置
|
||
```
|
||
|
||
---
|
||
|
||
## 八、快速排障组合
|
||
|
||
### 8.1 BGP跨域故障(已验证组合)
|
||
```bash
|
||
# 第零层:业务测试
|
||
ping vrf test 4.1.1.1 # 1. Ping测业务连通性
|
||
|
||
# 第一层:VRF路由检查
|
||
show ip forwarding route vrf test # 2. 检查VRF路由表
|
||
|
||
# 第二层:MPLS标签检查
|
||
show mpls forwarding-table <next-hop> # 3. 检查MPLS标签转发表
|
||
show mpls forwarding-table <specific-ip> # 4. 检查特定目的地的标签
|
||
|
||
# 第三层:LDP会话检查
|
||
show mpls ldp neighbor brief instance 1 # 5. 检查LDP邻居状态
|
||
show mpls ldp neighbor instance 1 # 6. 检查LDP邻居详细信息
|
||
show mpls ldp binding instance 1 # 7. 检查LDP标签绑定
|
||
show mpls ldp parameters instance 1 # 8. 检查LDP参数配置
|
||
show mpls ldp discovery instance 1 # 9. 检查LDP发现信息
|
||
|
||
# 第四层:BGP路由检查
|
||
show bgp vpnv4 unicast vrf test route # 10. 检查BGP VPNv4路由
|
||
show bgp vpnv4 unicast summary # 11. 检查BGP VPNv4摘要
|
||
show bgp ipv4 unicast summary # 12. 检查BGP IPv4摘要
|
||
show bgp ipv4 unicast neighbor # 13. 检查BGP IPv4邻居
|
||
|
||
# 第五层:IGP邻接检查
|
||
show ip ospf neighbor # 14. 检查OSPF邻居
|
||
show isis adjacency # 15. 检查IS-IS邻接
|
||
show ip ospf interface brief # 16. 检查OSPF接口状态
|
||
show isis database # 17. 检查IS-IS数据库
|
||
show isis circuit # 18. 检查IS-IS电路
|
||
|
||
# 第六层:基础路由检查
|
||
show ip forwarding route # 19. 检查全局路由表
|
||
show ip interface brief # 20. 检查IP接口状态
|
||
show arp # 21. 检查ARP表
|
||
```
|
||
|
||
### 8.2 OSPF详细排障
|
||
```bash
|
||
show ip ospf # OSPF进程总览
|
||
show ip ospf interface # OSPF接口详细信息
|
||
show ip ospf database # OSPF LSDB
|
||
show ip ospf database router-link # OSPF Type-1 LSA(Router LSA)
|
||
show ip ospf database network # OSPF Type-2 LSA(Network LSA)
|
||
show ip ospf database summary # OSPF Type-3 LSA(Summary LSA)
|
||
show ip ospf database asbr # OSPF Type-4 LSA(ASBR Summary LSA)
|
||
show ip ospf database external # OSPF Type-5 LSA(External LSA)
|
||
show ip ospf database nssa # OSPF Type-7 LSA(NSSA External LSA)
|
||
show ip ospf database self-originate # OSPF自生成LSA
|
||
show ip ospf border-routers # OSPF边界路由器
|
||
show ip ospf virtual-links # OSPF虚链路
|
||
show ip ospf route # OSPF路由表(按进程显示)
|
||
```
|
||
|
||
### 8.3 IS-IS详细排障
|
||
```bash
|
||
show isis adjacency # IS-IS邻接
|
||
show isis database # IS-IS LSDB
|
||
show isis hostname # IS-IS动态主机名映射
|
||
show isis circuit # IS-IS电路信息
|
||
```
|
||
|
||
### 8.4 LDP详细排障
|
||
```bash
|
||
show mpls ldp neighbor brief instance <id> # LDP邻居简要信息
|
||
show mpls ldp neighbor instance <id> # LDP邻居详细信息
|
||
show mpls ldp parameters instance <id> # LDP参数配置
|
||
show mpls ldp binding instance <id> # LDP标签绑定
|
||
show mpls ldp discovery instance <id> # LDP发现信息
|
||
```
|
||
|
||
---
|
||
|
||
## 九、命令语法说明
|
||
|
||
### 9.1 重要注意事项
|
||
1. **LDP命令必须指定instance**:`show mpls ldp neighbor brief instance <id>` ✅
|
||
- `show mpls ldp neighbor brief` ❌ Incomplete command
|
||
|
||
2. **BGP VPNv4路由查询**:`show bgp vpnv4 unicast vrf <vrf-name> route` ✅
|
||
- `show bgp vpnv4 unicast rd-by-vrf <vrf-name>` ❌ Incomplete command
|
||
- `show bgp ipv4 unicast route` ❌ Ambiguous command
|
||
|
||
3. **VRF路由查询**:`show ip forwarding route vrf <vrf-name>` ✅
|
||
- `show ip route vrf <vrf-name>` ❌ Invalid input
|
||
- `show ipv4 route vrf <vrf-name>` ❌ Invalid input
|
||
|
||
### 9.2 特殊字符限制
|
||
netx平台限制了管道符等特殊字符的使用,建议分步执行命令。
|
||
|
||
---
|
||
|
||
**文档维护**:
|
||
- 最后更新:2026-07-20
|
||
- 验证设备:MER1 @ 10.229.234.136
|
||
- 关联文档:`命令探索方法论.md`、`BGP跨域排障命令速查.md`
|