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.

}<br />

See Also<br />

next-hop 192.0.2.1;<br />

accept;<br />

}<br />

then reject;<br />

}<br />

policy-statement deny-all {<br />

then reject;<br />

}<br />

community cymru-bogon-community members [ no-export 65333:888 ];<br />

community dont-announce members 65500:1234;<br />

as-path cymru-private-asn 65333;<br />

RFC 1997, BGP Communities Attribute; RFC 1998, An Application of the BGP Community<br />

Attribute in Multihome Routing; Team Cymru’s bogon route server project,<br />

http://www.cymru.com/BGP/bogon-rs.html; Recipe 9.1<br />

13.14 Load-Balancing BGP Traffic<br />

Problem<br />

A customer is multihomed to two different routers in your point of presence (POP).<br />

Instead of having BGP send all traffic across one of the links, which is the default<br />

behavior, you want to load-balance the EBGP traffic from the customer across the<br />

two links.<br />

Solution<br />

To enable load balancing across multiple EBGP peerings, configure the BGP group to<br />

use multipath:<br />

[edit protocols bgp group external-group]<br />

aviva@Router1# set type external<br />

aviva@Router1# set peer-as 65505<br />

aviva@Router1# set multipath<br />

aviva@Router1# set neighbor 192.168.1.1<br />

aviva@Router1# set neighbor 192.168.1.3<br />

For the load balancing to happen, configure a load-balancing policy:<br />

[edit policy-options]<br />

aviva@router1# set policy-statement LoadBalance from route-filter 192.168.1.0/24<br />

orlonger<br />

aviva@Router1# set policy-statement LoadBalance then load-balance per-packet<br />

[edit routing-options]<br />

aviva@Router1# set forwarding-table export LoadBalance<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Load-Balancing BGP Traffic | 471

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

Saved successfully!

Ooh no, something went wrong!