Command Usage
This command is used to import routes learned from othe r routing protocols
into the OSPF domain, and to generate AS-external-LSAs.
When external routes are redistributed int o an OSPF auto nomous sys tem
(AS), the router automatically becomes an autonomous system boundary
router (ASBR). If the
redistribute
command is used in conjunction with the
default-information originate
command to generate a “default” external
route into the AS, the metric value specified in this comm and super sedes th e
metric specified in the
default-information originate
command.
Metric type specifies the way to advertise routes to dest inations outside th e
AS through External LSAs. When a Type 1 LSA is received by a router, it adds
the internal cost to the external route metric. In other words, the cost of the
route from any router within the AS is equal to the cos t asso ciated with
reaching the advertising ASBR, plus the cost of the exte rnal rou te. When a
Type 2 LSA is received by a router, it only uses the external route metric to
determine route cost.
Example
This example redistributes routes learned from RIP as Type 1 external routes.
Console(config-router)#redistribute rip metric-type 1
Console(config-router)#
Related Commands
default-information originate (42-21)
network area
This command defines an OSPF area and the interfaces that operate with in this
area. Use the
no
form to disable OSPF for a specified interfaces.
Syntax
[no] network ip-address netmask area area-id
ip-address - Interfaces wit h address es that fall wi thin the netw ork address
are added to the operational OSPF area.
netmask - Network mask of the address ran ge to add to the area.
area-id - Area to which the matching i nterfaces are as signed. An OSP F
area identifies a group of routers that share common r outing infor mation.
(The area ID must be in the form of an IPv 4 address .)
Command Mode
Router Configuration
Default Setting
Disabled
42-26
IP Routing Commands
42