Re: Question On Distribute Lists

From: Rich Collins (nilsi2002@gmail.com)
Date: Thu Feb 21 2008 - 14:09:53 ARST


You could use a route-map with a "set ip next-hop" with the BGP routing
protocol but not with OSPF. If you think about how OSPF works with databases
it wouldn't make sense.

You can have a distribute list with OSPF that matches a next-hop address and
then filters accordingly.

-Rich

On 2/20/08, Matt Bentley <mattdbentley@gmail.com> wrote:
>
> Okay, I believe my syntax is right, but I can't seem to find out exactly
> what is going on. I am trying to use the "set ip next-hop" option from a
> route-map in distribute lists in both OSPF and EIGRP. I can't get either
> of
> them to work.
>
> What I want to do:
> From the local router, alter incoming updates for both OSPF and EIGRP
> (running on the same router) with a distribute list so traffic is policy
> routed, depending on where the traffic is destined to.
> !
> Send traffic destined for 4.4.4.0/24 to next hop of 2.2.2.2
> Send traffic destined for 2.2.2.0/24 to next hop of 1.1.1.2
> !
> router ospf 1
> distributed-list route-map NEXTHOP in
> !
> router eigrp 1
> distribute-list route-map NEXTHOP2 in
> !
> route-map NEXTHOP permit 10
> match ip address prefix-list FOUR
> set ip next-hop 2.2.2.2
> !
> route-map NEXTHOP permit 20
> match ip address prefix-list SIX
> set ip next-hop 1.1.1.2
> !
> route-map NEXTHOP permit 30
> !
> route-map NEXTHOP2 permit 10
> match ip address prefix-list FOUR
> set ip next-hop 2.2.2.2
> !
> route-map NEXTHOP2 permit 20
> match ip address prefix-list SIX
> set ip next-hop 1.1.1.2
> !
> route-map NEXTHOP2 permit 30
> !
> ip prefix-list FOUR seq 5 permit 4.4.4.0/24 le 32
> !
> ip prefix-list SIX seq 5 permit 6.6.6.0/24 le 32
>
> On Cisco, it says the distribute-list can still be used with OSPF. Am I
> missing something? Thanks in advance.



This archive was generated by hypermail 2.1.4 : Sat Mar 01 2008 - 16:54:49 ARST