Viewing OSPF packet statistics for a subnet or VLAN

Displays the statistics on OSPF packets sent and received on the interfaces in VLANs and/or subnets on an OSPF-enabled routing switch, including the number of errors that occurred during packet transmission. Enter the command at any CLI level.

Syntax:

show ip ospf interface[vlan vlan-id|ip-address]

Displays the following information for OSPF-enabled VLANs and/or subnets:

vlan-id

Displays OSPF packet statistics for all subnets configured on the VLAN.

ip-address

Displays OSPF packet statistics only for a specified VLAN subnet.

Displaying OSPF statistics for VLAN traffic

switch(ospf)# show ip ospf statistics vlan 1

 OSPF statistics for VLAN 1

 OSPF Interface Status for 10.0.0.2

  Tx Hello Packet Count : 16           Rx Hello Packet Count : 16
  Tx DD Packet Count : 2               Rx DD Packet Count : 4
  Tx LSR Packet Count : 1              Rx LSR Packet Count : 1
  Tx LSU Packet Count : 5              Rx LSU Packet Count : 2
  Tx LSA Packet Count : 2              Rx LSA Packet Count : 3
  
  OSPF Errors: 26

CLI display of OSPF statistics for VLAN traffic

OSPF statistics field

Content

OSPF statistics for VLAN vlan-id

OSPF statistics displayed for the specified VLAN number.

OSPF Interface Status for ip-address

IP address of a subnet on the VLAN.

Tx/Rx Hello Packet Count

Number of OSPF hello packets sent/received on each subnet interface.

Tx/Rx DD Packet Count

Number of link-state database description packets sent/received on each subnet interface.

Tx/Rx LSR Packet Count

Number of link-state request packets sent/received on each subnet interface.

Tx/Rx LSU Packet Count

Number of link-state update packets sent/received on each subnet interface.

Tx/Rx LSA Packet Count

Number of link-state acknowledgement packets sent/received on each subnet interface.

OSPF errors

Number of errors detected on the VLAN subnet during OSPF packet exchange.

Displaying OSPF statistics for subnet traffic

switch(ospf)# show ip ospf statistics 10.0.0.2

OSPF Interface Statistics

 IP Address      Total Tx        Total Rx        Total Errors
 --------------- --------------- --------------- ---------------
 10.0.0.2        15              15              15

CLI display of OSPF statistics for VLAN subnet traffic

Per-subnet OSPF statistics

Field

Content

IP Address

IP address of subnet.

Total Tx

Total number of OSPF packets sent on each subnet interface.

Total Rx

Total number of OSPF packets received on each subnet interface.

Total Errors

Total number of errors in OSPF packet transmission on each subnet interface.