RE: BGP - 'neighbor x.x.x.x default-originate route-map mymap' command weirdness

From: Michael Le (mmle@xxxxxxxxxxxxxxxxx)
Date: Fri Jan 26 2001 - 20:45:45 GMT-3


   
I thought it meant that I wanted to match network 10.10.10.0 and only that
network, and in addition, match the mask 255.255.255.0 and only that mask.
Isn't that how access-lists work when filtering BGP routes?

Mike

-----Original Message-----
From: Ronnie Royston [mailto:RonnieR@globaldatasys.com]
Sent: Friday, January 26, 2001 5:44 PM
To: 'Michael Le'
Subject: RE: BGP - 'neighbor x.x.x.x default-originate route-map mymap'
command weirdness

The only thing this access-list permits is 10.10.10.0, not 10.10.10.1 or
10.10.10.anything else. Try using a regular access list, like access-list 1
permit 10.0.0.0 0.255.255.255.

-----Original Message-----
From: Michael Le [mailto:mmle@sprintparanet.com]
Sent: Friday, January 26, 2001 3:32 PM
To: 'Adrian Chew'; 'Padhu (LFG)'
Cc: ccielab@groupstudy.com
Subject: RE: BGP - 'neighbor x.x.x.x default-originate route-map mymap'
command weirdness

Dammit, I'm an idiot. But can you also tell me where the extended
access-list I tried was flawed. It wouldn't work either and I know I'm doing
something fundamentally (and idiotically) wrong.

access-list 101 permit ip 10.10.10.0 0.0.0.0 255.255.255.0 0.0.0.0

Thanks for your help.

Michael

And yes, I accidentally typed in 'network' instead of 'neighbor' under the
bgp router statement.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Adrian Chew
Sent: Friday, January 26, 2001 5:24 PM
To: Michael Le; 'Padhu (LFG)'
Cc: ccielab@groupstudy.com
Subject: Re: BGP - 'neighbor x.x.x.x default-originate route-map mymap'
command weirdness

Michael,

Change your access list...

access-list 1 permit 10.1.1.0 0.0.0.255

Unless you have a classful network, include the wildcard mask, and it should
work fine.

Regards,
Adrian

----- Original Message -----
From: "Michael Le" <mmle@sprintparanet.com>
To: "'Padhu (LFG)'" <padhu@steinroe.com>
Cc: <ccielab@groupstudy.com>
Sent: Friday, January 26, 2001 5:54 PM
Subject: RE: BGP - 'neighbor x.x.x.x default-originate route-map mymap'
command weirdness

> Yes, both routers have no auto-summary. They're both also running
12.0(15).
> Not sure what could be wrong.
> Thanks.
>
> -----Original Message-----
> From: Padhu (LFG) [mailto:padhu@steinroe.com]
> Sent: Friday, January 26, 2001 4:43 PM
> To: 'Michael Le'
> Subject: RE: BGP - 'neighbor x.x.x.x default-originate route-map mymap'
> command weirdness
>
>
> Did u try no auto summary ?
>
> -----Original Message-----
> From: Michael Le [mailto:mmle@sprintparanet.com]
> Sent: Friday, January 26, 2001 4:36 PM
> To: ccielab@groupstudy.com
> Subject: BGP - 'neighbor x.x.x.x default-originate route-map mymap'
> command weirdness
>
>
> I'm trying to get this command to work and it's acting weird.
> I have just two routers who are EBGP peers. I want it that if R1 has the
> route 10.10.10.0/24 in it's routing table, then it will send the 0.0.0.0
> route to R2.
>
>
> [R1]-------[R2]
>
>
> The configs are as follows:
>
> R1
> !
> int Serial 0
> description To EBGP Peer R2
> ip address 192.168.1.1 255.255.255.0
> int Loopback 0
> description BGP Source Interface
> ip address 1.1.1.1 255.255.255.0
> int Loopback 1
> ip address 10.10.10.1 255.255.255.0
> !
> router bgp 1
> network 192.168.1.2 remote-as 2
> network 192.168.1.2 update-source Loopback 0
> network 192.168.1.2 ebgp multihop
> network 192.168.1.2 default-originate route-map mymap
> !
> route-map mymap permit 10
> match ip address 1
> !
> access-list 1 permit 10.10.10.0
>
> Please assume next-hop connectivity and all that, as I haven't posted
entire
> config. Config for R2 isn't really needed.
>
>
> If I have the configuration as above, then R1 will not advertise the
> default route to R2.
> However, if I change Loopback 1 to '10.10.10.1 255.0.0.0' and I change the
> access-list to 'permit 10.0.0.0', it will work.
> It seems as if it only works with classful networks. I have tried
> this with
> other network masks too and it only works when the network and the masks
> match each other classfully.
> This makes no sense to me. Could someone please explain if I'm doing
> something wrong or if the command was made to work this way? And if it was
> made to work this way, why? Because it doesn't really give you that much
> flexibility with your route-maps.
> Thank you.
>
> Michael Le
>



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