Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Run the command The run graceful-restart prepare ospf  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

...

interface<traffic>

...

Example

...

command is a operational command that the restarting router advertises Graceful Restart (GR) LSAs into the OSPF domain, informing its neighbors about its restarting process and the estimated time for the restart to complete. These LSAs are Type 9 LSAs and are flooded throughout the OSPF domain.

The OSPF protocol should be restarted during the grace period, otherwise the graceful restart will fail.

To perform a graceful shutdown, this operational command needs to be issued before restarting the OSPF protocol.

Info
  • Be cautious: After executing the run graceful-restart prepare ospf or run graceful-restart prepare ospf6 command, the system will be in a waiting state for the OSPF protocol to restart. Users are not allowed to perform any OSPF configuration until the OSPF protocol restart is completed, or unpredictable results can occur.

  • Before restarting the OSPF process, the device needs to use the command run graceful-restart prepare ospf (for OSPFv2) or run graceful-restart prepare ospf6 (for OSPFv3) to send Type 9 LSAs for GR capability negotiation. After the negotiation, the OSPF process must be restarted within the negotiated grace-period; otherwise, it will timeout and exit the GR state.


Command Syntax

run graceful-restart prepare ospf

Parameters

None.


Example

  •  Configure to let the restarting router advertises Graceful Restart (GR) LSAs into the OSPF domain.
Code Block
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 0graceful-restart prepare ospf