简体   繁体   English

静态到 BGP 重新分配

[英]Static to BGP redistribition

how to redistribute static routes in bgp?如何在 bgp 中重新分配静态路由? What is the configuration to be able to do this in packet tracer?能够在数据包跟踪器中执行此操作的配置是什么? Can you give an example in another way.你能不能以另一种方式举个例子。 Thank you.谢谢你。

Can you help me ??你能帮助我吗 ??

copied this from a running configuration - for my experience it's best practice to use a route-map which avoids redistributing any static route.从正在运行的配置中复制这个 - 根据我的经验,最好使用路由映射来避免重新分配任何静态路由。

Redistributed routes should be permitted explicitly:应明确允许重新分配的路由:

conf t

ip prefix-list PL_STATIC seq 5 permit 10.10.10.0/24
ip prefix-list PL_STATIC seq 10 permit 10.10.11.00/24

route-map RM_STATIC permit 10
 match ip address prefix-list PL_STATIC

router bgp 65535
  redistribute static route-map RM_STATIC

end

Verify your redistribution using使用验证您的重新分发

show ip bgp

And - be patient with BGP it's designed for stability, not for quick reactions.并且 - 对 BGP 要有耐心,它是为稳定性而设计的,而不是为了快速反应。

And - only "active" static routes get redistributed, they have to show up in your routing-table as "S"tatic-routes:并且 - 只有“活动”静态路由会被重新分配,它们必须在您的路由表中显示为“S”静态路由:

show ip route

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM