/
run show ospf interface

run show ospf interface

Run the command run show ospf interface to display information about layer 3 interfaces participating in OSPF process. The command output displays information such as interface name, IP address, the area this interfaces belongs to, neighbor adjacency count, multicast group memberships and OSPF timers etc.

To display the interface traffic related to OSPF, add the argument traffic to the command. This will display information such as OSPF hello messages sent and received on the interface, database description messages sent and received etc.

If OSPF is running in the default VRF then no need to specify the VRF but if OSPF is running in a user defined VRF then you need to specify the VRF by using the vrf parameter.


Command Syntax

run show ospf [vrf <vrf-name>interface [traffic]


Example

  •  Enable OSPF zebra module related logging.
admin@switch1# run show ospf vrf vrf1 interface
VRF Name: vrf1
vlan10 is up
  ifindex 8, MTU 1500 bytes, BW 0 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 10.251.201.2/24, Broadcast 10.251.201.255, Area 0.0.0.0
  MTU mismatch detection: enabled
  Router ID 1.1.1.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 1.1.1.1, Interface Address 10.251.201.2
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 4.189s
  Neighbor Count is 1, Adjacent neighbor count is 1
vlan11 is up
  ifindex 9, MTU 1500 bytes, BW 0 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 11.251.201.2/24, Broadcast 11.251.201.255, Area 1.1.1.1
  MTU mismatch detection: enabled
  Router ID 1.1.1.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 1.1.1.1, Interface Address 11.251.201.2
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 4.189s
  Neighbor Count is 1, Adjacent neighbor count is 1


admin@switch1# run show ospf vrf vrf1 interface traffic
Interface       HELLO            DB-Desc         LS-Req           LS-Update        LS-Ack
                Rx/Tx            Rx/Tx            Rx/Tx            Rx/Tx            Rx/Tx
--------------------------------------------------------------------------------------------
VRF Name: vrf1
vlan10         2166/723           18/7             3/1            30/24          126/18
vlan11         2169/723           18/7             3/1            42/12           60/27

Copyright © 2025 Pica8 Inc. All Rights Reserved.