Routing
Highlighted
Routing

AS path prepend not working - any ideas why?

[ Edited ]
‎12-04-2014 12:01 PM

Ignore this.  I am running on too little sleep today.

2 REPLIES 2
Highlighted
Routing

Re: AS path prepend not working - any ideas why?

‎12-04-2014 12:10 PM

That's because your 'ebgp-out' policy is accepting the routes, which means that no further processing occurs.

 

You can remove the 'then accept' from that policy and replace it with 'then next policy' so that it is not automatically rejected by the next term.  I suggest reading up a bit on how policies are evaluated to get some more ideas on how to do this:

 

http://www.juniper.net/techpubs/en_US/junos14.1/topics/concept/policy-routing-policies-chain-evaluat...

 

Highlighted
Routing
Solution
Accepted by topic author msingerman
‎08-26-2015 01:27 AM

Re: AS path prepend not working - any ideas why?

[ Edited ]
‎12-04-2014 12:16 PM

I should also mention that the default behavior of BGP is to accept routes, so even without a second policy applied to your first peer, the route will be accepted.

 

One other thing, I don't believe your 'load-balance per-packet' is doing anything.  As far as I know, that policy action needs to be applied to the forwarding table, not in an actual routing policy for a protocol:

 

http://www.juniper.net/techpubs/en_US/junos12.2/topics/usage-guidelines/policy-configuring-per-packe...

Feedback