Routing
Reply
Contributor
Iglu
Posts: 69
Registered: ‎11-12-2008
0

bgp community:

[ Edited ]

Hi

I have to send a community to one bgp-peer to signalize a backup link.

 

I have configured a policy-options:  community BGP-BACKUP members xxxx:22450;

but how do i transmit these to my peer. Do I have to configured it in the neigbohr statment?

 

 

best regards

IGLU

Message Edited by Iglu on 01-09-2009 08:23 AM
Super Contributor
davidjdv
Posts: 113
Registered: ‎02-26-2008
0

Re: bgp community:

Hello,

 

You would do this within an export policy which can be applied at the neighbor level (or group, or protocol). As am example, here we decide to advertise our aggregates and add your community:

 

 

policy-statement send-community {

    from protocol aggregate;

    then {

        community add BGP-BACKUP;

accept; 

    }               

}

 

 

More details in the documentation:

 https://www.juniper.net/techpubs/software/junos/junos93/swconfig-policy/configuring-communities.html

 

HTH,

/david 

Contributor
Iglu
Posts: 69
Registered: ‎11-12-2008
0

Re: bgp community:

Hi David

How can I be sure that thit community is not send it to both peers (Same ISP two peers connecting to my one router)

Where would be the match in your example that it would send it to the peer.

 

as you see I'am not an expert in configuring bgp on Junos although I like the junos more and more.

 

regards

IGLU

Super Contributor
davidjdv
Posts: 113
Registered: ‎02-26-2008
0

Re: bgp community:

[ Edited ]

Hi Iglu,

 

Glad you like JUNOS  :smileywink:

 

This is where it is interesting to use the export policy at different levels - you can specify it at the protocol, group or neighbor level (where the most specific definition wins). In this case, you could have something like:

 

 

group ebgp {

type external;

peer-as 65002;

neighbor 1.1.1.2 {

export send-community;

}

neighbor 2.2.2.2;

}

 

This way you only send the community to the first neighbor, not the second.

 

This is explained further here:

https://www.juniper.net/techpubs/software/junos/junos93/swconfig-routing/applying-routing-policy.htm...

 

Regards,

/david 

 

 

Message Edited by davidjdv on 01-10-2009 01:28 AM
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.