Re: Conditional Advertising - OSPF default-inf orig route-map

From: Divin Mathew John <divinjohn_at_gmail.com>
Date: Fri, 11 Dec 2009 03:11:38 +0530

R1(config)#route-map HELLO
R1(config-route-map)#a
R1(config-route-map)#ma
R1(config-route-map)#match ip add
R1(config-route-map)#match ip address ?
  <1-199> IP access-list number
  <1300-2699> IP access-list number (expanded range)
  WORD IP access-list name
  prefix-list Match entries of prefix-lists
  <cr>
*
*
*R1(config-route-map)#match ip address 1*
*R1(config-route-map)#match ip address 2*
R1(config-route-map)#exit
R1(config)#exit
R1#sh r
*Dec 11 03:09:41.895: %SYS-5-CONFIG_I: Configured from console by consoleo
R1#sh ro
R1#sh rou
*R1#sh route-map*
*route-map HELLO, permit, sequence 10*
* Match clauses:*
* ip address (access-lists): 1 2*
* Set clauses:*
  Policy routing matches: 0 packets, 0 bytes
R1#sh run | be route-map
*route-map HELLO permit 10*
* match ip address 1 2*
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
!
!
end

R1#

On Fri, Dec 11, 2009 at 2:59 AM, Donald Virgil <d.virgil88_at_gmail.com> wrote:

> Hi, i've been trying to get my head around conditional advertising using
> route maps. So here is the scenario in regards to OSPF.
>
> 1. Advertise a default route given the presence of 1.1.1.0/24 and
> 2.2.2.0/24 in the routing table.
>
> This is easy enough, using a single ACL with both routes listed. This way
> as long as EITHER one of the routes is in the routing table, the default
> route is advertised. When both routes go away, the default advertisement
> stops.
>
> The confusion comes in when I try to get the default advertisement to stop
> when EITHER of the 2 routes disappears. This doesn t seem to work
> regardless of what combo of route-map and ACL I use.
> My understanding of route-map AND/OR algorithm is that if you have a single
> match statement with multiple elements, (e.g. match ip add 1 2) this is a
> logical OR. A route-map with multiple match statements (e.g. route-map x
> per 10 match ip add 1; route-map x per 20 match ip add 2) is a logical
> AND. A route-map with a single match clause and element with multiple
> lines (match ip add 3) is a logical OR.
>
> Assuming ACL s are:
> access-l 1 per 1.1.1.0 0.0.0.255
> access-l 2 per 2.2.2.0 0.0.0.255
> access-l 3 per 1.1.1.0 0.0.0.255
> access-l 3 per 2.2.2.0 0.0.0.255
>
>
> Regardless of how I construct my route-map and ACL combo, the default route
> is advertised by OSPF as long as EITHER the 1.1.1.0/24 or 2.2.2.0/24 is
> present in the routing table. Could you guys please help me understand
> this
> a little better?
>
> Thanks in advance,
> Don
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Sent from Karnataka, India
George Bernard Shaw <http://www.quotationspage.com/quote/33909.html>  -
"What is life but a series of inspired follies? The difficulty is to find
them to do. Never l...
Blogs and organic groups at http://www.ccie.net
Received on Fri Dec 11 2009 - 03:11:38 ART

This archive was generated by hypermail 2.2.0 : Sat Jan 02 2010 - 11:11:08 ART