Users Guide

Layer 3 Routing Commands 1719
User Guidelines
When redistributing a route metric, the receiving protocol must understand
the metric. The OSPF metric is a cost value equal to 10
8
/ link bandwidth in
bits/sec. For example, the OSPF cost of GigabitEthernet is 10
8
/10
8
= 1.
The RIP metric is a hop count with a maximum value of 15 (infinity).
If no metric value is specified, the metric redistributed for a type 1 route is
the sum of the external cost and the internal cost used to reach that route.
The metric redistributed for a type 2 route is always the external cost,
irrespective of the interior cost to reach that route. Redistribution of BGP
originated routes is only available on BGP-capable routers.
Example
The following example configures OSPF protocol to allow redistribution of
RIP originated routes with a metric of 5 and a route tag of 555.
console(config-router)#redistribute rip metric 3 metric-type 1 tag 555
subnets
router-id
Use the router-id command in Router OSPF Configuration mode to set a 32-
bit integer in 4-digit dotted-decimal number uniquely identifying the router
ID.
Syntax
router-id router-id
router-id— A 32-bit interface (in IPv4 address format) that uniquely
identifies the router ID.
Default Configuration
There is no default router ID.
Command Mode
Router OSPF Configuration mode.