Configuring IPv4 OSPFv2 Multiple Instances

Introduction

Multiple OSPF Instances let you separate OSPF into multiple OSPF domains.

Each instance contains a fully independent OSPF database, and routes from one domain are not automatically advertised to another domain.

You can manually configure route maps to filter and redistribute routes from one domain into another domain.

The redistributed routes show as OSPF external routes in the routing table of the other domain.

If two different OSPF instances try to install the same route with equal cost, the route with the lower next hop IP address is preferred.

If the routes have different costs, the route with the lower cost is selected.

Separate OSPF Instances do not share link state with one another, and will not pass routes among themselves unless explicitly configured to do so using either Route Redistribution or Routemaps.

Adding a New IPv4 OSPFv2 Instance

Note - To add more instances, the default instance must have at least one OSPF interface configured and running.

Deleting an Existing IPv4 OSPFv2 Instance

Restarting an IPv4 OSPFv2 Instance

Restarting an IPv4 OSPFv2 Instance lets you clear OSPF database and restart OSPF adjacency for an instance without restarting the Gaia RouteD daemon.

Resetting IPv4 OSPFv2 Counters

It is possible to reset IPv4 OSPFv2 statistics counters.

To reset IPv4 OSPFv2 counters in Gaia Clish

  1. Connect to the command line.

  2. Log in to Gaia Clish.

  3. Reset the OSPF counters:

    reset ospf instance {<1-65535> | default}

          all

          errors

                all

                interface <Name of Interface>

                neighbor <IPv4 Address of OSPF Neighbor>

          events

                all

                interface <Name of Interface>

          packets

Parameters

Parameter

Description

instance {<1-65535> | default}

Specifies an OSPF Instance ID to configure.

all

Resets all OSPF counters.

errors <options>

Resets only OSPF error counters:

  • all

    Resets all error counters for all OSPF interfaces in the outputs of these commands:

    • show ospf errors

    • show ospf interfaces

    • show ospf neighbors

  • interface <Name of Interface>

    Resets error counters for the specified OSPF interface in the outputs of these commands:

    • show ospf interfaces

    • show ospf neighbors

  • neighbor <IPv4 Address of OSPF Neighbor>

    Resets error counters for the specified OSPF neighbor in the output of the "show ospf neighbors" command

events <options>

Resets only OSPF event counters:

  • all

    Resets all event counters for all OSPF interfaces in the outputs of these commands:

    • show ospf events

    • show ospf interfaces detailed

  • interface <Name of Interface>

    Resets event counters for the specified OSPF interface in the output of the "show ospf interfaces detailed" command

packets

Resets only OSPF packet counters.