From: Sila Moni (silamoni@yahoo.com)
Date: Wed Jun 29 2005 - 23:15:49 GMT-3
From the URL that you've provided, they match and set. I'm not sure whether both statements are required. Please let me know if it is needed.
The following example originates a default route (0.0.0.0/0) over a certain interface when 172.68.0.0/16 is present. Applying a condition (in this case a route map) to determine when the default route is originated is called "conditional default origination."
router rip version 2 network 172.68.16.0 default-information originate route-map condition! route-map condition permit 10 match ip address 10 set interface s1/0!access-list 10 permit 172.68.16.0 0.0.0.255
gladston@br.ibm.com wrote:
Thanks for the reply,
In fact, the route-map says to announce the default just on e0/0.
There is no match statement, so it is always matched.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123tcr/123tip2r/ip2_c1gt.htm
Cordially,
------------------------------------------------------------------
Gladston
Sila Moni <silamoni@yahoo.com>
29/06/2005 17:21
To
Alaerte Gladston Vidali/Brazil/IBM@IBMBR, ccielab@groupstudy.com cc
Subject
Re: Conditional Advertisement of Default route
Your route-map states that as long as R5 can reach its
own Ethernet interface, advertise default route.
Typically, I monitor remote prefix(es).
--- gladston@br.ibm.com wrote:
> Have you seen this?
>
> R5 should advertise default network to CAT1 only
> when it looses it connection to interface ser0/0.
> The first part works. R5 advertises the default
> route on the right condition. (when s0/0 goes down)
>
> But when s0/0 goes up, CAT1 does not cease to
> receive default route from R5. It seems IOS gets
> lost on the way back to remove the advertisement of
> default route, although the static default route
> disappears
> from R5 RIB.
>
> R5 s0/0 is configured with backup interface dialer
> 200 and has a default network pointing to dialer200.
> When R5 looses s0/0, dialer 200 goes up, static
> default route is installed on R5 RIB and default
> route is advertised to CAT1.
>
> router ospf 1
> network 148.5.55.0 0.0.0.255 area 50
> network 148.5.235.0 0.0.0.255 area 0
> default-information originate route-map Condition
> !
> route-map Condition permit 10
> set interface Ethernet0/0
> !
> ip route 0.0.0.0 0.0.0.0 Dialer200
> !
> interface Serial0/0
> backup interface dialer 200
>
> CAT1 receives the default when serial 0/0 goes down
> but when s0/0 goes up CAT1 does not cease to receive
> the default:
>
> Rack2CAT2#sir
> Gateway of last resort is 148.5.55.5 to network
> 0.0.0.0
>
>
> O*E2 0.0.0.0/0 [110/1] via 148.5.55.5, 00:00:20,
> Vlan40
> Rack2CAT2#
>
>
This archive was generated by hypermail 2.1.4 : Wed Jul 06 2005 - 14:43:46 GMT-3