Quantcast
Channel: All Routing posts
Viewing all articles
Browse latest Browse all 8688

Re: Default route question

$
0
0

Hi, 

 

If I understand correctly, routes towards AS100 from AS300 are going through the direct link due to shortest AS-PATH.

 

To prefer the routes towards AS200, you can tag the routes at the source [AS100] with BGP communities and then at AS300 make those routes preferred towards AS200 by AS-Prepending direct from AS100 to increase the AS-PATH.

 

Example of BGP import policy on AS300:

policy-statement EXPAND {
    term AS-EXPAND {
        from {
            as-path AS100;
            community TEST;
        }
        then {
            as-path-expand last-as count 2;
accept; } } } as-path AS100 "100 .*";

Cheers,

Ashvin

 

 


Viewing all articles
Browse latest Browse all 8688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>