From: beda jain (bpjain@cisco.com)
Date: Fri Jul 25 2003 - 18:33:03 GMT-3
because you don't have permit any any at the end. you only deny the odd but
you never permit the even.
you may have rouute-map cddcd per 20 at the end to per rest.
At 03:15 PM 7/25/2003 -0600, Joe Martin wrote:
>Guys and Gals,
>
>I had a lab requirement that asked me to configure some static routes to
>null0 as follows:
>
>ip route 10.2.128.0 255.255.255.0 null0
>ip route 10.1.129.0 255.255.255.0 null0
>ip route 10.2.129.0 255.255.255.0 null0
>ip route 10.5.128.0 255.255.255.0 null0
>ip route 10.4.128.0 255.255.255.0 null0
>
>I was asked to advertise these routes to an EIGRP neighbor and to the rest
>of the network (which was running OSPF). However, "only routes with an even
>number in the 2nd and 3rd octects should be advertised to the rest of the
>network." I chose to redistribute static routes to EIGRP and then
>redistribute EIGRP into OSPF.
>
>I simply created a route-map that filtered the routes coming from EIGRP as
>follows.
>
>access-list 1 deny 10.1.1.0 0.254.254.255 <---------
>access-list 1 permit 192.168.9.0 0.0.0.255
>access-list 1 permit 172.29.90.0 0.0.0.255
>access-list 1 permit 172.29.69.0 0.0.0.255
>
>route-map eigrp2ospf permit 10
>match ip address 1
>set tag 777
>
>router ospf 1
>redistribute eigrp 100 route-map eigrp2ospf
>
>My question is with the filter for the even routes. I simply denied the
>routes with the 1 bit on in the 2nd and 3rd octets, or so I thought.
>
>The only route that was filtered was the second static route in the list
>which has a 1 in the second octet. All of the other routes were
>redistributed, including the other routes with odd numbers. Why?
>
>The solution used a route-map that just allowed the specific even routes as
>follows:
>
>access-list 1 permit 10.0.128.0 0.6.0.0
>
>I switched to this and it worked great. But my solution should have worked.
>What am I missing?
>
>Unfortunately, I cannot post full configs as this was done on a rental rack
>last night. However I should be able to answer any questions about the
>configs as neccessary.
>
>TIA,
>
>Joe Martin
>
>
>_______________________________________________________________________
>You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:53 GMT-3