Route Redistribution
Miscellaneous Notes
- Seed Metric: Default value given to redistributed route.
- EIGRP and RIP have a seed metric of infinity and require an explicit seed metric to be configured.
- ISIS has a seed metric of zero
- OSPF has a default seed metric of 20 (cost) / E2. BGP routes redistributed into OSPF have a seed metric of 1.
-
BGP - MED is assigned the IGP metric value when redistributing routes into BGP from an IGP.
-
Route tags can prevent unwanted routing loops in two-way redistribution.
- OSPF Type 5 LSAs have a field for the route tag so they are not locally significant in the routing domain. EIGRP has a similar field.
- Set a tag in a route map for all routes being redistributed from one protocol to another. When redistributing in the opposite direction match the tag that was set and deny in the route-map.
Examples
router rip
version 2
no auto
network 172.12.123.0
redistribute ospf 1 metric 2
EIGRP - Bandwidth, delay (units of 10 microseconds), reliability, load, MTU. If default-metric configred, seed metric is not required in redistribute commands.
router eigrp 100
default-metric 1544 10 255 1 1500
router eigrp 100
redistribute rip metric 1544 10 255 1 1500
router ospf 1
redistribute connected subnets
Distribute Lists
access-list 17 deny 8.0.0.0 0.255.255.255
access-list 17 deny 9.0.0.0 0.255.255.255
access-list 17 permit any
router ospf 1
distribute-list 17 out rip
redistribute rip subnets
redistribute connected subnets
access-list 13 deny any
router eigrp 100
distribute-list 13 out fa0/0
Verify with show ip protocols
Changing Admin Distance
router ospf 1
distance 121
access-list 77 permit 192.168.1.0 0.0.0.255
router ospf 1
distance 121 0.0.0.0 255.255.255.255.255 77
router ospf 1
distance ospf external 200 inter-area 150 intra-area 115
Route Maps
- Multiple match statements in a route-map stanza is a logical
AND
match ip address 101
match tag 10
- Multiple acls on a single match statement is a logical
OR
match ip address 101 102
Example route-map:
access-list 2 permit 2.0.0.0 0.255.255.255
access-list 22 permit 22.0.0.0 0.255.255.255
access-list 44 permit 222.2.2.0 0.0.0.255
!
route-map RIP2OSPF permit 10
match ip address 2
set metric 4 metric-type type-1
route-map RIP2OSPF permit 20
match ip address 22
set metric-type type-1
route-map RIP2OSPF deny 30
match ip address 44
route-map RIP2OSPF permit 40
!
router ospf 1
redistribute rip subnets route-map RIP2OSPF
redistribute connected subnets
Policy Routing
- Used with route maps. Configured on an interface. Packets ingressing that interface have policy applied.
(config-if)# ip policy route-map BLAH
Local Policy Routing
- Since there is no ingress interface for packets originated by the router, to apply policy routing use:
(config)# ip local policy route-map BLAH