- Purple, 4500 points or more
I'm looking at distribution lists, and I've come across a question. The distribution list out allows for other protocols to be listed. For instance, if I am running EIGRP between two routers, and I have OSPF on only one of the routers and want to redistribute my OSPF routes into EIGRP, I can create a filter list on EIGRP side to filter out what OSPF routes I want to advertise.
The question that I have is that I'm not able to filter OSPF routes that are advertised to EIGRP; it's not working.
What I've done is this: (and I'm sure it's not correct)
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 22.214.171.124 0.0.0.0 area 0
network 126.96.36.199 0.0.0.0 area 0
distribute-list 6 out eigrp 100
router eigrp 100
redistribute ospf 1
access-list 6 permit host 188.8.131.52
The above doesn't work. If I put the list in EIGRP as out, it works correctly. How do I redistribute OSPF into EIGRP but use a distribution list in order to control what routes I want to inject into EIGRP?
I thought I was explaining that the distribute list must be placed under router eigrp to control redistribution of routes from OSPF to EIGRP:"You have pretty much answered your own question when you state what works. To redistribute OSPF learned routes into EIGRP and to control the redistributed routes the distribute-list command goes under router eigrp."
I did miss the mark a bit when I was explaining how I remember how the syntax works and did not get the parameters quite right. Try to configure under router eigrp 100:
distribute-list 6 out ospf 1
this should use access list 6 to filter the routes redistributed from OSPF to EIGRP. And this is quite different from just distribute-list 6 out, which as you explain filters what EIGRP advertises to all neighbors.
And the comment about need a default metric is right on the mark.