[j-nsp] BGP route origination with communities
Harry Reynolds
harry at juniper.net
Tue Aug 17 11:15:05 EDT 2004
Just jumping in here. At first take I think you need to explicitly accept
that static route somewhere. It seems that you want to set the coms, and
then strip them out via the bgp-policies-PEER1-export policy. If so I do not
see where a static route is accepted anywhere. The default BGP policy does
not send a static. I suggest:
> policy-statement bgp-policies-PEER1-export {
> term term-1 {
> from policy ( ! rm-PEER1OUT );
> then reject;
> }
> /* IOS defaults to NOT sending communities, unlike JUNOS */
> term strip-communities {
> then {
> community delete all;
> next term;
> }
> }
> term next-hop-self {
> then {
> next-hop self;
> next term;
> }
> }
term new-term { <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
from {
> route-filter 192.168.224.0/19 exact;
> then {
> accept;
> }
> }
> term explicit-default-action {
> then next policy;
> }
> }
HTHS
> -----Original Message-----
> From: juniper-nsp-bounces at puck.nether.net
> [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of Mark Johnson
> Sent: Monday, August 16, 2004 5:52 AM
> To: juniper-nsp at puck.nether.net
> Subject: FW: [j-nsp] BGP route origination with communities
>
> Thanks to the two suggestions with this. I'm getting closer
> but don't think I've quite got the hang yet as my originated
> routes aren't being advertised out.
>
> What am I missing (apart from clue)?
>
>
> routing-options {
> static {
> route 192.168.224.0/19 discard;
> }
> autonomous-system 1234;
> }
>
>
> protocols {
> bgp {
> group PEER1 {
> type external;
> damping;
> import [ bgp-policies-PEER1-import graded-flap-damping ];
> family inet {
> any {
> prefix-limit {
> maximum 6000;
> teardown 80 idle-timeout 60;
> }
> }
> }
> export [ set-local-community bgp-policies-PEER1-export ];
> }
> }
> }
>
> policy-options {
> policy-statement set-local-community {
> term 1 {
> from {
> route-filter 192.168.224.0/19 exact;
> }
> then {
> community set community-80;
> community add community-18;
> }
> }
> }
> policy-statement bgp-policies-PEER1-export {
> term term-1 {
> from policy ( ! rm-PEER1OUT );
> then reject;
> }
> /* IOS defaults to NOT sending communities, unlike JUNOS */
> term strip-communities {
> then {
> community delete all;
> next term;
> }
> }
> term next-hop-self {
> then {
> next-hop self;
> next term;
> }
> }
> term explicit-default-action {
> then next policy;
> }
> }
> policy-statement rm-PEER1OUT {
> term term-1 {
> from policy cl-75;
> then {
> metric 999999;
> as-path-prepend 1234;
> accept;
> }
> }
> term term-2 {
> from policy [ cl-80 cl-69 ];
> then {
> metric 999999;
> as-path-prepend 1234;
> accept;
> }
> }
> term term-3 {
> from policy [ cl-81 cl-70 ];
> then {
> metric 999999;
> as-path-prepend "1234 1234 1234";
> accept;
> }
> }
> term ios-implicit-deny {
> then reject;
> }
> }
> policy-statement cl-18 {
> term term-1 {
> from community community-18;
> then accept;
> }
> term ios-implicit-deny {
> then reject;
> }
> }
> policy-statement cl-80 {
> term term-1 {
> from community community-80;
> then accept;
> }
> term ios-implicit-deny {
> then reject;
> }
> }
> }
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
>
More information about the juniper-nsp
mailing list