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

This example shows how to configure an OSPF interface on a point-to-multipoint network high-end SRX Series devices.

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 the Ethernet interface xe-2/0/0.0 as an OSPFv2 interface in OSPF area 0.0.0.1 and specify 192.0.2.1 as the neighbor’s IP address.

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

[edit] set interfaces xe-2/0/0 unit 0 family inet address 192.0.2.2/24set protocols ospf area 0.0.0.1 interface xe-2/0/0 neighbor 192.0.2.1set protocols ospf area 0.0.0.1 interface xe-2/0/0 interface-type p2mp

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

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

  1. Configure the interface.
    [edit]user@host# set interfaces xe-2/0/0 unit 0 family inet address 192.0.2.2/24
  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 xe-2/0/0 neighbor 192.0.2.1

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

  4. Specify the interface type as p2mp.
    [edit protocols ospf area 0.0.0.1]user@host# set interface xe-2/0/0 interface-type p2mp

Results

From configuration mode, 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 configuration instructions in this example to correct it.

user@host# show interfaces
xe-2/0/0 {unit 0 {family inet {address 192.0.2.2/24;}}}
user@host# show protocols ospf
area 0.0.0.1 {interface xe-2/0/0 {interface-type p2mp;neighbor 192.0.2.1;}}

If you are done configuring the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verifying the OSPF Interface

Purpose

Verify the interface configuration by confirming that the that the Type field displays P2MP.

Action

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

Related Documentation