Layer3 BGP-7 汇总和聚合

session 1 BGP聚合
R2(config-router)#aggregate-address 100.1.1.0 255.255.255.0 ?                       直接聚合
  advertise-map  Set condition to advertise attribute             只对advertise-map列表中匹配的路由进行聚合
  as-set         Generate AS set path information                                                  聚合路由继承明细路由属性
  attribute-map  Set attributes of aggregate                                                      属性列表等于route-map
  nlri           Nlri aggregate applies to
  route-map      Set parameters of aggregate                                                     属性列表等于attribute-map
  summary-only   Filter more specific routes from updates                         抑制所有明细路由,只发汇总路由
  suppress-map   Conditionally filter more specific routes from updates         抑制明细路由列表
 
各种列表都是使用route-map定义的匹配项。

session 2 BGP的默认路由
一、重分布默认路由
R2(config-router)#default-information originate       重分布默认路由时候才会起作用,因为在BGP中默认路由不能使用network宣告进BGP的,必须使用这条命令才能进入BGP

二、针对某个邻居发送默认路由
R2(config-router)#neighbor 1.1.1.1 default-originate        对邻居发送默认路由,本地路由不需要有默认路由
R2(config-router)#neighbor 1.1.1.1 default-originate route-map  x       这里的route-map含义是,当route-map中定义的路由(RIB中的任意一条,无论是否为BGP)存在的话,才想邻居1.1.1.1发送默认路由

session 3 BGP条件宣告路由
一、
R2(config-router)#neighbor 1.1.1.1 advertise-map AAA exist-map BBB
当BBB里面的路由存在,才向邻居宣告AAA里面的路由,只影响BGP路由。
二、
R2(config-router)#neighbor 1.1.1.1 advertise-map AAA non-exist-map CCC
如果CCC里面的路由不存在的话,那么就向邻居宣告AAA里面匹配的路由,只影响BGP路由。

你可能感兴趣的:(Layer3 BGP-7 汇总和聚合)