Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring an OSPFv2 Interface on a Point-to-Multipoint Network

This example shows how to configure an OSPFv2 interface on a point-to-multipoint network.

Requirements

Before you begin:

Overview

When you configure OSPFv2 on a nonbroadcast multiaccess (NBMA) network, such as a multipoint Asynchronous Transfer Mode (ATM) or Frame Relay, OSPFv2 operates by default in point-to-multipoint mode. In this mode, OSPFv2 treats the network as a set of point-to-point links. Because there is no autodiscovery mechanism, you must configure each neighbor.

When you configure the interface, specify either the IP address or the interface name. Using both the IP address and the interface name produces an invalid configuration.

In this example, you configure ATM interface at-0/1/0 as an OSPFv2 interface in OSPF area 0.0.0.1, and you and specify 192.0.2.1 as the neighbor’s IP address.

Configuration

CLI Quick Configuration

To quickly configure an OSPFv2 interface on a point-to-multipoint network, copy the following commands and paste them into the CLI.

[edit] set interfaces at-0/1/0 unit 0 family inet address 192.0.2.2set protocols ospf area 0.0.0.1 interface at-0/1/0 neighbor 192.0.2.1

Step-by-Step Procedure

To configure an OSPFv2 interface on a point-to-multipoint network:

  1. Configure the interface.
    [edit]user@host# set interfaces at-0/1/0 unit 0 family inet address 192.0.2.2
  2. Create an OSPF area.
    [edit]user@host# edit protocols ospf area 0.0.0.1
  3. Assign the interface to the area and specify the neighbor.
    [edit protocols ospf area 0.0.0.1]user@host# set interface at-0/1/0 neighbor 192.0.2.1

    To configure multiple neighbors, include a neighbor statement for each neighbor.

  4. If you are done configuring the device, commit the configuration.
    [edit protocols ospf area 0.0.0.1]user@host# commit

Results

Confirm your configuration by entering the show interfaces and the show protocols ospf commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

user@host# show interfacesat-0/1/0 {unit 0 {family inet {address 192.0.2.2/32;}}}
user@host# show protocols ospfarea 0.0.0.1 {interface at-0/1/0.0 {neighbor 192.0.2.1;}}

Verification

Confirm that the configuration is working properly.

Verifying the OSPF Interface

Purpose

Verify the interface configuration. Confirm that the Type field displays P2MP.

Action

From operational mode, enter the show ospf interface detail command.

Published: 2012-12-08