Supported Platforms
Example: Configuring OSPFv2 Peer interfaces
This example shows how to configure an OSPFv2 peer interface.
Requirements
Before you begin:
- Configure the device interfaces. See the Junos® OS Network Interfaces.
- Configure the router identifiers for the devices in your OSPF network. See Example: Configuring an OSPF Router Identifier.
- Configure a single-area OSPF network. See Example: Configuring a Single-Area OSPF Network.
- Configure a multiarea OSPF network. See Example: Configuring a Multiarea OSPF Network.
- Configure Generalized MPLS per your network requirements. See LMP Configuration Overview in the Junos OS MPLS Applications Configuration Guide.
Overview
You can configure an OSPFv2 peer interface for many reasons, including when you configure Generalized MPLS (GMPLS). This example configures a peer interface for GMPLS. GMPLS requires traffic engineering information to be transported through a link separate from the control channel. You establish this separate link by configuring a peer interface. The OSPFv2 peer interface name must match the Link Management Protocol (LMP) peer name. You configure GMPLS and the LMP settings separately from OSPF.
This example assumes that GMPLS and the LMP peer named oxc1 are already configured, and you need to configure the OSPFv2 peer interface in area 0.0.0.0.
Configuration
CLI Quick Configuration
To quickly configure an OSPFv2 peer interface, copy the following command and paste it into the CLI.
Step-by-Step Procedure
To configure a peer OSPFv2 interface used by the LMP:
- Create an OSPF area.[edit]user@host# edit protocols ospf area 0.0.0.0
- Configure the peer interface.[edit protocols ospf area 0.0.0.0]user@host# set peer-interface oxc1
- If you are done configuring the device, commit the configuration.[edit protocols ospf area 0.0.0.0]user@host# commit
Results
Confirm your configuration by entering the show protocols ospf command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
Verification
Confirm that the configuration is working properly.
Verifying the Configured OSPFv2 Peer
Purpose
Verify the status of the OSPFv2 peer. When an OSPFv2 peer is configured for GMPLS, the Peer Name field displays the name of the LMP peer that you created for GMPLS, which is also the configured OSPFv2 peer.
Action
From operational mode, enter the show link-management command.