Re: conditional default route

From: Leo Lin (linyileo@gmail.com)
Date: Sat Apr 21 2007 - 21:54:33 ART


Hi,

Because the condition of "neighbor default-originate route-map" command is
the route exit in route table not in BGP table. As the route always exit in
route table, it is a connected interface, the default route generated
always!

Best regards,

Leo

-----SJ<~T-<~-----
7"<~HK: nobody@groupstudy.com [mailto:nobody@groupstudy.com] 4z1m Suplepo
7"KMJ1<d: 2007Dj4TB21HU 6:47
JU<~HK: ccielab@groupstudy.com
VwLb: conditional default route

Morning guru's,

I have a question concerning condition default routes.
Speficifaclly for a simple topology where two routers
are directly connected by a serial interface and I'm
asked to have R1 advertise a default to R2 as long as
the subnet for their directly connected interface is
in the table.

R1--1.1.1.0--R2

So my questions are:

1) Is this as simple as just advertising a
"default-originate from R1 to R2. Since the only
connection between the two is the serial interface
this seems correct, but that just seems to simple.

2) I've been trying for a while to get the following
to work, but even when I remove the network statement
for the 1.1.1.0 subnet the default is advertised. R1
never stops advertising the default unless I bring
down the neighbor relationship. Am I doing something
incorrect here?

ip prefix-list SERIAL seq 5 permit 1.1.1.0/24
route-map TRACK_SERIAL permit 10
 match ip address prefix-list SERIAL

router bgp 1
network 1.1.1.0 mask 255.255.255.0
neighbor 1.1.1.2 default-originate route-map
TRACK_SERIAL



This archive was generated by hypermail 2.1.4 : Tue May 01 2007 - 08:28:36 ART