Microsoft ES4625 Manuel D’Utilisation

Page de 674
IP Routing Commands
4-271
4
Default Setting 
redistribution - none
protocol - RIP and static
metric-value - 0
type-metric - 2
Command Usage 
• This router supports redistribution for both RIP and static routes. 
• When you redistribute external routes into an OSPF autonomous system 
(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 command supersedes the 
metric specified in the default-information originate command.
• Metric type specifies the way to advertise routes to destinations outside the 
AS via External LSAs. Specify Type 1 to add the internal cost metric to the 
external route metric. In other words, the cost of the route from any router 
within the AS is equal to the cost associated with reaching the advertising 
ASBR, plus the cost of the external route. Specify Type 2 to only advertise the 
external route metric. 
Example
This example redistributes routes learned from RIP as Type 1 external routes.
Related Commands
network area
This command defines an OSPF area and the interfaces that operate within this 
area. Use the no form to disable OSPF for a specified interface.
Syntax 
[no] network ip-address netmask area area-id
• ip-address - Address of the interfaces to add to the area.
• netmask - Network mask of the address range to add to the area. 
• area-id - Area to which the specified address or range is assigned. An 
OSPF area identifies a group of routers that share common routing 
information. (The area ID must be in the form of an IP address.)
Command Mode 
Router Configuration
Default Setting 
Disabled
Console(config-router)#redistribute rip metric-type 1
Console(config-router)#