API Guide

使用情况信息
此命令将显示指定实例或接口的 OSPFv2 流量统计信息或者所有 OSPFv2 实例和接口的流量统计信息。
示例
OS10# show ip ospf 10 statistics
Interface vlan3050
Receive Statistics
rx-invalid 0 rx-invalid-bytes 0
rx-hello 0 rx-hello-bytes 0
rx-db-des 0 rx-db-des-bytes 0
rx-ls-req 0 rx-ls-req-bytes 0
rx-ls-upd 0 rx-ls-upd-bytes 0
rx-ls-ack 0 rx-ls-ack-bytes 0
Transmit Statistics
tx-failed 0 tx-failed-bytes 0
tx-hello 0 tx-hello-bytes 0
tx-db-des 0 tx-db-des-bytes 0
tx-ls-req 0 tx-ls-req-bytes 0
tx-ls-upd 0 tx-ls-upd-bytes 0
tx-ls-ack 0 tx-ls-ack-bytes 0
Error packets (Receive statistics)
bad-src 0 dupe-id 0 hello-err 0
mtu-mismatch 0 nbr-ignored 0 wrong-proto 0
resource-err 0 bad-lsa-len 0 lsa-bad-type 0
lsa-bad-len 0 lsa-bad-cksum 0 auth-fail 0
netmask-mismatch 0 hello-tmr-mismatch 0 dead-ivl-mismatch 0
options-mismatch 0 nbr-admin-down 0 own-hello-drop 0
self-orig 0 wrong-length 0 checksum-error
0
version-mismatch 0 area-mismatch 0
支持的版本
10.2.0E or later
Identifier GUID-114D6AC7-ED66-43EB-B11F-A0FE63A7C6D6
Version 4
Status Translation approved
show ip ospf topology
显示直接连接到 OSPF 区域的路由器。
语法
show ip ospf [process-id] [vrf vrf-name] topology
参数
process-id 可选显示 OSPF 进程信息。如果未输入进程 ID则此操作仅适用于第一个 OSPF
程。
vrf vrf-name 可选在已配置的 VRF 中显示直接连接的 OSPF 区域中的路由器。
默认 未配置
命令模式
EXEC
使用情况信息
E”标记输出指示所列的路由器为 ASBR。“B”标记指示所列的路由器为 ABR。如果标记字段同时显示了
E B则表示所列的路由器同时为 ASBR ABR
示例
OS10# show ip ospf 10 topology
Router ID Flags Cost Nexthop Interface Area
111.111.111.1 -/B/-/ 1 111.1.1.2 Vl 3051 0
111.111.111.2 -/B/-/ 1 111.2.1.2 Vl 3053 0
112.2.1.1 E/-/-/ 1 110.1.1.2 Vl 3050 0
112.112.112.1 -/B/-/ 2 110.1.1.2 Vl 3050 0
112.112.112.2 -/B/-/ 2 110.1.1.2 Vl 3050 0
支持的版本
10.2.0E or later
668 3