HCNP the principle and configuration of BGP protocol for learning Notes 3-route aggregation

Source: Internet
Author: User


The BGP protocol can use commands to aggregate specific routes into an aggregated route.

The route aggregation principle uses the longest same mask matching method.


Route aggregation can reduce the size of the routing table

No routing details can be used to reduce route flipping and not cause routing changes due to a single routing change


1 Auto-gather ( not available in the network, controllability is poor, can only be aggregated into the main type of network )

After the automatic aggregation is configured, the aggregated natural segment routes are generated, and the originally introduced subnets are suppressed and are not optimized and published to the BGP neighbors.

    • Summary automatic //used to enable automatic aggregation of incoming routes

    • Undo Summary Automatic //command used to cancel automatic aggregation of incoming routes

    • By default, the incoming route is not automatically aggregated, that is, only the routes that are introduced are aggregated.

650) this.width=650; "title=" 1.jpg "src=" Http://s3.51cto.com/wyfs02/M01/73/51/wKioL1X6TiOzWWs9AAEqmryp5iw495.jpg " alt= "Wkiol1x6tiozwws9aaeqmryp5iw495.jpg"/>

2 Manual Aggregation

In general, manual aggregation takes precedence over the priority of auto-aggregation. By default, no route aggregation occurs.

By default, a manual aggregation will publish the detail and aggregation routes together.

aggregate ip-address Mask [ as-set | attribute-policy route-policy-name1 | detail-suppressed | origin-policy route -policy-name2 | Suppress-policy Route-policy-name3 ] //Manual aggregation, detail-suppressed (suppress detail)

650) this.width=650; "title=" 2.jpg "src=" Http://s3.51cto.com/wyfs02/M00/73/53/wKiom1X6S_iCqULXAAGQJN_pm2w220.jpg " alt= "Wkiom1x6s_icqulxaagqjn_pm2w220.jpg"/>


3 problems caused by route aggregation As-set

Issues to consider for BGP route aggregation

    • Publishing of detail routes

    • Inheritance of BGP routing properties

      • As-path

      • Origin

      • Community ...


650) this.width=650; "title=" 3.jpg "style=" Float:none; "src=" Http://s3.51cto.com/wyfs02/M02/73/51/wKioL1X6Tk2xir_ Daacjsqyy9fa510.jpg "alt=" Wkiol1x6tk2xir_daacjsqyy9fa510.jpg "/>

650) this.width=650; "title=" 4.jpg "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/73/53/ Wkiom1x6tbaw-bzmaaeodkwf9pe799.jpg "alt=" Wkiom1x6tbaw-bzmaaeodkwf9pe799.jpg "/>


The As-path attribute of the aggregation route does not have any other as information, and the As-path information for all specific routes is lost.

It is stated that the aggregation route without the As_set parameter is considered to be generated by RTC.



Aggregate 160.0.0.0 255.0.0.0 detail-suppressed as-set //used to aggregate As-path information, add the aggregated As-path

650) this.width=650; "title=" 5.jpg "src=" Http://s3.51cto.com/wyfs02/M00/73/51/wKioL1X6TnCiNQ29AAFO0IuOkLs890.jpg " alt= "Wkiol1x6tncinq29aafo0iuokls890.jpg"/>

As_set information is important in avoiding routing loops because it records the as that is passed by the aggregated route.



4 Change route aggregation properties?? Attribute-policy

Aggregation routes do not inherit the original BGP route properties, and you can modify the aggregation route properties by command:

The configuration Attribute-policy parameter can be used to modify BGP aggregation route properties.

650) this.width=650; "title=" 6.jpg "src=" Http://s3.51cto.com/wyfs02/M01/73/51/wKioL1X6TpTz25RSAAB-0G5aDhI990.jpg " alt= "Wkiol1x6tptz25rsaab-0g5adhi990.jpg"/>

650) this.width=650; "title=" 7.jpg "src=" Http://s3.51cto.com/wyfs02/M01/73/53/wKiom1X6THHQGnZ1AADOA2e1KW4016.jpg " alt= "Wkiom1x6thhqgnz1aadoa2e1kw4016.jpg"/>


5 filtering Routes Orgin-policy Suppress-policy

650) this.width=650; "title=" 8.jpg "src=" Http://s3.51cto.com/wyfs02/M02/73/51/wKioL1X6TrqAiQE4AADaDVp3Mjs737.jpg " alt= "Wkiol1x6trqaiqe4aadadvp3mjs737.jpg"/>

    • Origin-policy: Select a partial (meeting policy) Route aggregation

ACL number 2001

Rule deny source 1.1.3.0 0

Rule Permit Source any

Route-policy orgin Permit Node 20

If-match ACL 2001

aggregate 160.0.0.0 255.0.0.0 detail-suppressed As-set origin-policy Origin



Suppress-policy: Suppresses partial routing (suppresses all by default)


ACL number 2002

Rule Permit Source 1.1.1.0

Rule Permit Source 4.4.4.0

Route-policy Suppress Permit node 10

If-match ACL 2002

aggregate 160.0.0.0 255.0.0.0 detail-suppressed As-set origin-policy Origin suppress-policy suppress


This article from the "Day Up" blog, reproduced please contact the author!

HCNP the principle and configuration of BGP protocol for learning Notes 3-route aggregation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.