Configuring OSPF NBMA neighbors

Configure NBMA neighbors so that the interface can participate in designated router election. All OSPF neighbors that you manually configure are NBMA neighbors.

Before you begin

  • Enable OSPF globally.

  • Ensure that the interface uses an IP address.

  • Ensure that the interface is NBMA.

  • You configure OSPF NBMA neighbors on a VRF instance the same way you configure the GlobalRouter, except that you must use VRF Router Configuration mode and the prefix ip ospf. The VRF must have an RP Trigger of OSPF. Not all parameters are configurable on non0 VRFs.

Procedure

  1. Enter OSPF Router Configuration mode:

    enable

    configure terminal

    router ospf

  2. Create an NBMA OSPF neighbor:

    neighbor {A.B.C.D} priority <0-255>

  3. Ensure that the configuration is correct:

    show ip ospf neighbor [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

Create an NBMA OSPF neighbor.

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#router ospf
Switch:1(config-ospf)#neighbor 198.51.100.2 priority 10

Variable definitions

The following table defines parameters for the neighbor command.

Variable

Value

{A.B.C.D}

Identifies an OSPF area in IP address format a.b.c.d.

priority <0-255>

Changes the priority level of the neighbor.

UThe following table defines parameters for the show ip ospf neighbors command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF by name.

vrfids WORD<0-512>

Specifies a range of VRF IDs.