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. You can also specify a particular interface to show information related to that L3 interface.

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 [instance-id <instance-id> | vrf<vrf-name>] interface [traffic | an-interface <vlan-interface>]

Parameters

ParameterDescription
instance-id <instance-id>Optional. Specifies the OSPF instance ID in the default VRF. The value is an integer that ranges from 1 to 8.
vrf<vrf-name>Optional. Specifies the name of the VRF. The value is a string.

interface<traffic>

Show traffic related to OSPF interfaces.
an-interface <vlan-interface>Specify a L3 interface, the value is a string. It can be the VLAN interface name, the routed interface or the sub-interface name.


Example

  •  Show OSPF interface related information in OSPF instance ID 1.
admin@Xorplus# run show ospf instance-id 1 interface
OSPF Instance: 1

vlan111 is up
  ifindex 257, MTU 1500 bytes, BW 0 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 192.168.1.11/24, Broadcast 192.168.1.255, Area 1.1.1.1
  MTU mismatch detection: enabled
  Router ID 41.41.41.41, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  No backup designated router on this network
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 8.646s
  Neighbor Count is 1, Adjacent neighbor count is 0
vlan1111 is up
  ifindex 265, MTU 1500 bytes, BW 0 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 192.168.11.2/24, Broadcast 192.168.11.255, Area 0.0.0.0
  MTU mismatch detection: enabled
  Router ID 41.41.41.41, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  No backup designated router on this network
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 3.016s
  Neighbor Count is 1, Adjacent neighbor count is 0

Copyright © 2024 Pica8 Inc. All Rights Reserved.