[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Controlling the Cost of Individual Network Segments

When evaluating the cost of individual network segments, OSPF evaluates the reference bandwidth. For any link faster than 100 Mbps, the default cost metric is 1. When OSPF calculates the SPF algorithm, it sums the metrics of all interfaces along a path to determine the overall cost of the path. The path with the lowest metric is selected for the forwarding table.

To control the cost of the network segment, you can modify the metric value on an individual interface. Suppose all routers in the OSPF network use default metric values. If you increase the metric on an interface to 5, all paths through this interface have a calculated metric higher than the default and are not preferred.

To manually set the cost of a network segment on the stub area's Fast Ethernet interface by modifying the interface metric:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or the CLI configuration editor.
  2. Perform the configuration tasks described in Table 132.

Table 132: Controlling the Cost of Individual Network Segments by Modifying the Metric

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the ge-0/0/0.0 level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Protocols, click Edit.
  3. Next to Ospf, click Edit.
  4. Under Area id, click 0.0.0.0.
  5. Under Interface name, click ge-0/0/0.0.

From the [edit] hierarchy level, enter

edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0

Set the interface metric.

  1. In the Metric box, type the interface metric value 5.
  2. Click OK.

Set the interface metric:

set metric 5


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]