you can specify the route cost type, cost value and tag to overwrite the default
route receipt parameters (see "Configuring Parameters for OSPF to Import
External Routes").
The OSPF uses the following four types of routes (in priority):
Intra-area route
■
Inter-area route
■
External route type 1
■
External route type 2
■
Intra-area and inter-area routes describe the internal AS topology whereas the
external route describes how to select the route to the destinations beyond the
AS.
The external type-1 routes refer to imported IGP routes (such as static route and
RIP). Since these routes are more reliable, the calculated cost of the external routes
is the same as the cost of routes within the AS. Also, this route cost and the route
cost of the OSPF itself are comparable. That is, the cost to reach the external route
type 1 equals the cost to reach the corresponding ASBR from the local router plus
the cost to reach the destination address of the route from the ASBR.
The external type-2 routes refer to imported EGP routes. Since these routes have
lower credibility, OSPF assumes that the cost from the ASBR to reach the
destinations beyond the AS is higher than the cost from within the AS to the
ASBR. So in route cost calculation, the cost to reach the external type 2 route
equals the cost to the destination address of the route from the ASBR. If the two
values are equal, then the cost of the router to the corresponding ASBR is
considered.
Perform the following configuration in OSPF view.
Table 43 Configuring OSPF to Import the Routes of Other Protocols
Operation
Enable OSPF to import routes of other
protocols
Disable importing routing information of
other protocols
By default, OSPF does not import the routing information of other protocols.
The protocol variable specifies a source routing protocol that can be imported,
such as direct, static, RIP, or BGP.
Configuring Parameters for OSPF to Import External Routes
When OSPF imports the routing information discovered by other routing protocols
in the autonomous system, some additional parameters need configuring, such as
the default route cost and the default tag of route distribution. Route ID can be
used to identify the protocol-related information. For example, OSPF can use it to
identify the AS number when receiving BGP.
Command
import-route protocol [ cost value | type
value | tag value | route-policy
route-policy-name ]
undo import-route protocol
OSPF
119
Need help?
Do you have a question about the Switch 7700 and is the answer not in the manual?