[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:
- 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 51.
Table 51: Controlling the
Cost of Individual Network Segments by Modifying the Metric
|
Task
|
J-Web Configuration Editor
|
CLI Configuration Editor
|
|
Navigate to the fe-0/0/0.0 level in the configuration
hierarchy.
|
In the configuration editor hierarchy, select Protocols>Ospf>Area id 0.0.0.0>
Interface name fe-0/0/0.0.
|
From the top of the configuration hierarchy, enter
edit protocols ospf area 0.0.0.0 interface fe-0/0/0.0
|
|
Set the interface metric and the external and route preference.
|
- In the Metric box, type an interface metric value—for
example, 5.
- Click OK.
|
- Set the interface metric. For example:
set metric 5
- Set the external preference. For example:
set external-preference 130
Changes in the CLI are applied automatically when you execute the set command.
|
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]