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.


Before you begin:


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 and specify as the neighbor’s IP address.


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 protocols ospf area interface xe-2/0/0 neighbor protocols ospf area 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
  2. Create an OSPF area.
    [edit]user@host# edit protocols ospf area
  3. Assign the interface to the area and specify the neighbor.
    [edit protocols ospf area]user@host# set interface xe-2/0/0 neighbor

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

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


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;}}}
user@host# show protocols ospf
area {interface xe-2/0/0 {interface-type p2mp;neighbor;}}

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


Confirm that the configuration is working properly.

Verifying the OSPF Interface


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


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

Related Documentation