1 華爲的BGP只能針對引入的路由而且要是自己引入的 路由才能進行自動聚合,而CISCO可以是network的。
2 BGP的聚合中有一個as-set字段,本字段其實是有防止環路作用的入
1.1.1.0 1.1.3.0
AS1========AS2=====AS3
1.1.2.0 1.1.4.0
AS2的路由器,產生聚合本地路由,1.0.0.0,此時如不加AS-SET,則AS1,AS2,都會學習1.0.0.0的路由,原因是此時1.0.0.0的路由是AS2產生的,而以前細路由的AS信息丟失了,因此AS1上和AS3上1.0.0.0的AS號碼是2. 此時可能產生環路問題,如果AS3上正好也有1.0.0.0的話。
因此需要讓細節路由的屬性得到集成,需要配置AS-SET,,則1.0.0.0會生成(1,3)的ASSET,他們是一個並列的關係,此時如果AS2發給其他的AS,非1與2,比如發給了4,4裏的1.0.0.0的AS號碼爲2,(1,3)那(1,3)只算是一個長度.同時AS-SET只會繼承細節路由的團隊屬性。
聚合路由時如果起源不同,則選擇最精細的細節路由的屬性來繼承。
---------------------------------===============================
origin-policy Filter the originate routes of the aggregate (強烈建議使用AS-SET配合該命令)
聚合路由後面節上 origin-policy 的含義是,因爲AS-SET會繼承所有路由的團體屬性和AS號碼,而有時候我們需要有選擇性的繼承,因此可以用路由策略加載origin-policy route-policy name 從而可以有選擇性的去讓聚合之後的路由帶上AS號碼(注意如何不使用AS-SET,單獨使用這個命令則,不允許同時爲聚合之後的路由繼承2個AS細節路偶的屬性,是原則某一些,而不是所有的否則策略不會生效)
Attribute-map
強行修改聚合之後的路由的相關屬性。
強行修改聚合之後的路由的相關屬性。
as-set Generate the route information with AS set path
attribute-policy Set aggregation attributes
detail-suppressed Suppress more specific routes from updates
origin-policy Filter the originate routes of the aggregate suppress-policy Filter more specific routes from updates through aroute-policy
attribute-policy Set aggregation attributes
detail-suppressed Suppress more specific routes from updates
origin-policy Filter the originate routes of the aggregate suppress-policy Filter more specific routes from updates through aroute-policy
這裏是聚合路由之後能接的參數。