Mailing List Archive

Of route-map and community matches
Hi,

Having a problem, not sure why...

ip community-list wcg-customers seq 5 permit 7911:777

They claim it should be all the customer routes.

On my connection to them, I have a route-map in of
bgp-from-as7911-primary

That list looks like :

route-map bgp-from-as7911-primary permit 10
match community wcg-customers
set metric 100
set local-preference 110
set community 35954:1000 35954:1002 additive
route-map bgp-from-as7911-primary permit 30
set metric 100
set local-preference 110
set community no-export


I then have a connection to my same AS on another router, with :

neighbor AA.BBB.CCC.250 remote-as 35954
neighbor AA.BBB.CCC.250 next-hop-self
neighbor AA.BBB.CCC.250 default-originate
neighbor AA.BBB.CCC.250 ebgp-multihop 2
neighbor AA.BBB.CCC.250 send-community
neighbor AA.BBB.CCC.250 update-source loopback 1

But it seems to be sending everything there....

Neighbor Address AS# State Time Rt:Accepted Filtered Sent ToSend
AA.BBB.CCC.250 35954 ESTAB 10d 1h52m 2175 0 160197 1
XX.YYY.ZZ.50 7911 ESTAB 21h 4m55s 160188 0 4 0

How do I :

a) Confirm what this is telling that EVERY route is marked as
7911:777
b) Fix this so it isn't sending everything, only items not marked
as a WCG customer.


Thanks, Tuc
Of route-map and community matches [ In reply to ]
> set community no-export
>
Didn't think this sent even within the AS. So I redid everything...

Created:

route-map bgp-to-as35954-secondary deny 10
match community no-announce-upstream
route-map bgp-to-as35954-secondary permit 25
match community announce-as7911-as35954
route-map bgp-to-as35954-secondary permit 30
match community global-announce

Where:

ip community-list no-announce-upstream seq 5 permit 35954:1000
ip community-list no-announce-upstream seq 10 permit 35954:10000
ip community-list no-announce-upstream seq 15 permit 35954:2000

ip community-list announce-as7911-as35954 seq 5 permit 35954:10021

ip community-list global-announce seq 5 permit 35954:5000


Replaced the route map to be :

route-map bgp-from-as7911-primary permit 20
match community as7911-customer
set metric 100
set local-preference 160
set community 35954:1000 35954:1002 35954:10021 additive
route-map bgp-from-as7911-primary permit 30
set metric 100
set local-preference 110
set community 35954:1000 35954:1002 additive


Which by all accounts should be working, but is only giving the
global-announce routes.

I'm not sure why announce-as7911-as35954 isn't going over, I can do a
sho ip bgp routes community-access-list announce-as7911-as35954 and it shows
about 9K routes which I think would be a reasonable number, but its not
making it to the other side.

Ideas?

Thanks, Tuc