RE: OSPF Conditional Default Origination

From: yakout esmat (yesmat@xxxxxxxxxxxxxx)
Date: Mon Apr 22 2002 - 08:37:39 GMT-3


   
Sorry mate. doesn't work.

I tryed again and again still no go.

Maybe I need to play with Admin distance to manipulate the existance of the
route.

Ya

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
ying chang
Sent: Monday, April 22, 2002 1:44 AM
To: yesmat@iprimus.com.au; ccielab@groupstudy.com
Subject: Re: OSPF Conditional Default Origination

Have you tried to clear the ip ospf process? The configuration looks OK to
me. I use my existing setup to simulate what you have, it works. See below
for what I did:

-------------------------------------------------------------
**** If subnet 133.10.17.0/24 exist, don't advertise default
****
router ospf 100
router-id 192.168.200.1
log-adjacency-changes
redistribute igrp 100 subnets tag 2 route-map igrp-routes
network 133.10.2.1 0.0.0.0 area 0
network 133.10.5.1 0.0.0.0 area 0
neighbor 133.10.2.4
neighbor 133.10.2.3
default-information originate always route-map default
distance 125 133.10.3.2 0.0.0.0
!
ip access-list standard sub17
deny 133.10.17.0 0.0.0.255
permit any
!
route-map default permit 10
match ip address sub17
!
r1#siod | beg -5 <<<--- no default route was generated
                Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag
133.10.3.0 192.168.200.1 116 0x80000001 0x1BBD 2
133.10.17.0 192.168.200.1 116 0x80000001 0x804A 2
r1#
----------------------------------------------------
***** Break route-map to deny 10 and permit 20
*****
r1(config)#no route-map default
r1(config)#no ip access-list stand sub17
r1(config)#route-map default deny 10
r1(config-route-map)#match ip addr sub17
r1(config-route-map)#exit
r1(config)#route-map default permit 20
r1(config-route-map)#exit
r1(config)#ip access-list stand sub17
r1(config-std-nacl)#permit 133.10.17.0 0.0.0.255
r1(config-std-nacl)#exit
r1(config)#^Z
r1#ciop <<<--- clear ip process
Reset ALL OSPF processes? [no]: yes
r1#siod | beg -5 <<<--- no default route was generated
                Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag
133.10.3.0 192.168.200.1 103 0x80000001 0x1BBD 2
133.10.17.0 192.168.200.1 103 0x80000001 0x804A 2
r1#
-----------------------------------------------------
***** If 133.10.17.0/24 exist, generate default route
*****
r1(config)#no ip access-list stand sub17
r1(config)#no route-map default
r1(config)#route-map default
r1(config-route-map)#match ip addr sub17
r1(config-route-map)#exit
r1(config)#ip access-list stand sub17
r1(config-std-nacl)#permit 133.10.17.0 0.0.0.255
r1(config-std-nacl)#exit
r1(config)#^Z
r1#ciop
00:56:58: %SYS-5-CONFIG_I: Configured from console by console
r1#ciop <<<--- clear ospf process
Reset ALL OSPF processes? [no]: yes
r1#siod | beg -5 <<<--- default route was generated
                Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 192.168.200.1 5 0x80000001 0xA873 100 <<<-
133.10.3.0 192.168.200.1 5 0x80000001 0x1BBD 2
133.10.17.0 192.168.200.1 5 0x80000001 0x804A 2
r1#

>From: "yakout esmat" <yesmat@iprimus.com.au>
>Reply-To: "yakout esmat" <yesmat@iprimus.com.au>
>To: "Groupstudy" <ccielab@groupstudy.com>
>Subject: OSPF Conditional Default Origination
>Date: Sun, 21 Apr 2002 20:43:55 +1000
>
>Hi all,
>
>I have a problem configuring OSPF Conditional Default Origination, my
>config
>as follows:
>
>!
>router ospf 100
> summary-address 198.168.0.0 255.255.0.0
> network 148.5.6.6 0.0.0.0 area 0
> network 148.5.16.6 0.0.0.0 area 0
> default-information originate route-map default
>!
>route-map default deny 10
> match ip address 3
>!
>route-map default permit 20
>!
>access-list 3 permit 148.5.5.0 0.0.0.255
>!
>end
>
>What I want to achieve is: If network 148.5.5.0/24 exists in the routing
>table DO NOT advertise the default route into OSPF Domain (which is
>represented by first instance of the route-map 10)
>
>Otherwise Advertise the default (which is covered by the second instance
>20)
>
>My observation is: it only works if the first instance permits the default
>based on the EXISTANCE of the network in the table, and denies the default
>if the network doesn't exist in the table.
>
>Do I have misunderstanding of the Conditional Default Origination or what??
>
>Any feed back is very much appreciated.
>
>Thanks in advance
>
>ya



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:16 GMT-3