[quagga-users 14915] Re: Setting a BGP daemon to advertise received router from its neighbors to other neighbors in Quagga

shahrooz <shahrooz-bjBJFzlPIWP2fBVCVOL8/[email protected]> Fri, 19 Jan 2018 16:37:32 -0500
Newsgroups gmane.network.quagga.user
Message-ID <[email protected]>
Hi,

Thank you William, but I can not understand your email at all!

Here is the content of my AS which I want announce the routers received 
from its customer:

AS 9 is AS 7's customer and AS 4 is AS 7's provider:

!neighbor 9
neighbor 1.9.0.1	remote-as 9
neighbor 1.9.0.1	port 20028
neighbor 1.9.0.1	update-source 1.7.0.1
!customer (full routes)
neighbor 1.9.0.1	route-map RMAP_CUSTFULL_IN in
neighbor 1.9.0.1	route-map RMAP_CUSTFULL_OUT out


!Policy
!
!community values:
!  customer    : 100:30
!  non-customer: 100:20

!localpref values:
!  customer: 30
!  peer    : 20
!  provider: 10

!Route attributes for locally originated prefixes
!community values: 200:<numeric-attr>

route-map RMAP_PROV_IN permit 10
   set community additive 100:20
   set local-preference 10
route-map RMAP_NONCUST_OUT deny 10
   match community NONCUST
route-map RMAP_NONCUST_OUT permit 20
   match community CUST

! should never reach this actually
route-map RMAP_NONCUST_OUT permit 30

route-map RMAP_CUSTFULL_IN permit 10
   set community additive 100:30
   set local-preference 30

route-map RMAP_CUSTFULL_OUT permit 10


ip community-list standard CUST permit 100:30
ip community-list standard NONCUST permit 100:20
ip community-list standard NONLOCAL permit 100:20
ip community-list standard NONLOCAL permit 100:30


But it does not work. AS 7 receives update message from AS 9, but it 
does not announce that to AS4!!

Best,
Shahrooz

On 2018-01-19 16:28, William Herrin wrote:
> On Fri, Jan 19, 2018 at 12:32 PM, shahrooz <shahrooz-bjBJFzlPIWP2fBVCVOL8/[email protected]> 
> wrote:
>> The problem is that I do not know how I can define customer and 
>> provider
>> relation ship in quagga bgp conf files. I confused by route-map 
>> description.
>> If some can define just one simple customer provider relationship 
>> between
>> just two nodes, I will be so appreciated.
> 
> Another router of yours which is not a customer or provider is the
> same AS number.
> 
> A customer or provider is a different AS number.
> 
> BCP 38, you reject any routes not expected from the customer in the
> prefix-list applied to the customer via a route map,
> 
> You also limit the routes offered to the provider to just yours and
> the customers' using a prefix-list applied to the provider via a route
> map.
> 
> -Bill
> 
> 
> --
> William Herrin ................ herrin-n7Wb/xkVUn1Wk0Htik3J/[email protected]  [email protected]
> Dirtside Systems ......... Web: <http://www.dirtside.com/>