For information about using the J-Web and CLI configuration
editors, see the J-Web Interface User Guide and the JUNOS CLI User Guide.
Configuring the Router Identifier (Required)
The router identifier is the IP address that uniquely identifies
the J-series Services Router.
OSPF uses the router identifier to elect a designated router,
unless you manually specify a priority value. When the OSPF network
first becomes active, by default, the router with the highest router
identifier is elected the designated router.
To configure the router identifier for the Services Router:
Navigate to the top of the configuration hierarchy
in either the J-Web or the CLI configuration editor.
Perform the configuration tasks described in Table 170.
To configure a single-area OSPF network with a backbone area,
like the one in Figure 76, perform these steps on each Services Router in the network:
Navigate to the top of the configuration hierarchy
in either the J-Web or CLI configuration editor.
Perform the configuration tasks described in Table 171.
If you are finished configuring the router, commit
the configuration.
After you create the backbone area and add the appropriate interfaces
to the area, OSPF begins sending LSAs. No additional configuration
is required to enable OSPF traffic on the network.
Repeat Step 1 through Step 3 for each
interface on this Services Router that you are adding to the backbone
area. Only one interface is required.
Configuring a Multiarea OSPF Network (Optional)
To reduce traffic and topology maintenance for the Services
Routers in an OSPF autonomous system (AS), you can group them into
multiple areas, as shown in Figure 77.
To configure a multiarea OSPF network shown in Figure 77, perform the following
tasks on the appropriate Services Routers in the network. You must
create a backbone area. To link each additional area to the backbone
area, you must configure one of the Services Routers as an area border
router (ABR).
Navigate to the Ospf level in the configuration
hierarchy.
In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
Next to Protocols, click Edit.
Next to Ospf, click Edit.
From the [edit] hierarchy level, enter
edit protocols ospf
Create the additional area with a unique area ID, in dotted
decimal notation—for example, 0.0.0.2.
In the Area box, click Add
new entry.
In the Area ID box, type 0.0.0.2.
Set the area ID to 0.0.0.2 and add an interface:
set area 0.0.0.2 interface ge-0/0/0
Repeat Step 1 for each interface on this Services
Router that you are adding to the area. Only one interface is required.
Add interfaces as needed to the OSPF area—for example, ge-0/0/0.
In the Interface box, click Add new entry.
In the Interface name box, type ge-0/0/0.
Click OK.
Repeat Step 1 through Step 3 for each
interface on this Services Router that you are adding to the backbone
area. Only one interface is required.
Configuring
Area Border Routers
A Services Router operating as an area border router (ABR) has
interfaces enabled for OSPF in the backbone area and in the area you
are linking to the backbone. For example, Services Router B acts
as the ABR in Figure 77 and
has interfaces in both the backbone area and area 0.0.0.3.
Navigate to the top of the configuration hierarchy
in either the J-Web or the CLI configuration editor.
Perform the configuration tasks described in Table 173.
If you are finished configuring the router, commit
the configuration.
After you create the areas on the appropriate Services Routers
and add and enable the appropriate interfaces to the areas, no additional
configuration is required to enable OSPF traffic within or across
the areas.
Create the additional area with a unique area ID—for example, 0.0.0.2.
In the Area box, click Add
new entry.
In the Area ID box, type 0.0.0.2.
Set the area ID to 0.0.0.2 and add an interface:
set area 0.0.0.2 interface ge-0/0/0
Repeat Step 1 for each interface on this Services
Router that you are adding to the area. Only one interface is required.
Add interfaces as needed to the OSPF area—for example, ge-0/0/0.
In the Interface box, click Add new entry.
In the Interface
name box, type ge-0/0/0.
Click OK.
Repeat Step 1 through Step 3 for each
interface on this Services Router that you are adding to the backbone
area. Only one interface is required.
Configuring Stub and Not-So-Stubby Areas (Optional)
To control the advertisement of external routes into an area,
you can create stub areas and not-so-stubby areas (NSSAs) in an OSPF
network. In the network shown in Figure 78, area 0.0.0.7 has no external connections and can be configured as a stub area.
Area 0.0.0.9 only has external connections to static
routes and can be configured as an NSSA.
Figure 78: OSPF Network Topology
with Stub Areas and NSSAs
To configure stub areas and NSSAs in an OSPF network like the
one shown in Figure 78:
Create the area and enable OSPF on the interfaces
within that area.