28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The first configuration in this recipe changes the local preference for all routes in the<br />

IBGP group to 140, making them more preferred over unaltered routes, which have a<br />

default local preference of 100. The second configuration creates a routing policy<br />

that changes the local preference value just on the one route, 192.168.14.1/32.<br />

Another variation of this policy is to change the value on all routes coming from a<br />

particular AS:<br />

[edit policy-options]<br />

aviva@RouterF# set as-path local-pref-path "65505 .*"<br />

aviva@RouterF# set policy-statement AS-local-pref from as-path local-pref-path<br />

aviva@RouterF# set policy-statement AS-local-pref then local-preference 140<br />

aviva@RouterF# set policy-statement AS-local-pref then accept<br />

This policy modifies the preference only for routes that have 65505 as the first AS in<br />

the AS path. No other BGP routes are affected by this routing policy.<br />

Looking again at the original policy in this recipe, before applying the policy, the<br />

route has the default local preference of 100:<br />

[edit policy-options]<br />

aviva@RouterF> show route 192.168.14.1/32<br />

inet.0: 24 destinations, 28 routes (24 active, 0 holddown, 0 hidden)<br />

+ = Active Route, - = Last Active, * = Both<br />

192.168.14.1/32 *[BGP/170] 00:05:48, localpref 100<br />

AS path: 65505 I<br />

> to 10.0.31.1 via t1-0/0/3.0<br />

After applying the policy, the local preference changes to 140:<br />

aviva@RouterF> show route 192.168.14.1/32<br />

inet.0: 24 destinations, 28 routes (24 active, 0 holddown, 0 hidden)<br />

+ = Active Route, - = Last Active, * = Both<br />

192.168.14.1/32 *[BGP/170] 00:08:15, localpref 140<br />

AS path: 65505 I<br />

> to 10.0.31.1 via t1-0/0/3.0<br />

See Also<br />

The Introduction to Chapter 8<br />

13.6 Removing Private AS Numbers from the AS Path<br />

Problem<br />

You are using private AS numbers within your AS and want to remove them on<br />

advertisements going out to the public Internet.<br />

Solution<br />

Configure the border router to remove private AS numbers:<br />

[edit protocols bgp]<br />

aviva@Router3# set group ISP remove-private<br />

Removing Private AS Numbers from the AS Path | 441<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!