简体   繁体   English

默认路由:bgp 与静态

[英]default route: bgp vs. static

I'm asking why should one receive a redistributed default route from bgp upstreams and not creating an own static default route pointing to the bgp neighbor as next-hop?我在问为什么要从 bgp 上游接收重新分配的默认路由,而不是创建指向 bgp 邻居作为下一跳的自己的静态默认路由? Are there any advantages in receiving the default route from bgp?从 bgp 接收默认路由有什么好处吗? Thanks for answering :)谢谢回答 :)

If you have two ISPs (active/active or active/backup) and the BGP session to one of the ISPs drops, all traffic will automatically be re-routed to the other ISP if you use BGP default routes.如果您有两个 ISP(主动/主动或主动/备份)并且与其中一个 ISP 的 BGP 会话中断,则如果您使用 BGP 默认路由,则所有流量都将自动重新路由到另一个 ISP。 If you have static default routes, the traffic will be black-holed to the ISP that dropped.如果您有静态默认路由,流量将被黑洞化到掉线的 ISP。

If an ISP is not sending a complete routeing table, sending a default route is (obviously) shorthand for everything else, which reduces the load on BGP.如果 ISP 没有发送完整的路由表,则发送默认路由(显然)是其他所有内容的简写,这会减少 BGP 的负载。 [If you are multi-homed to one ISP it might save effort if the ISP only sent routes where it matters which connection is used. [如果您是多宿主到一个 ISP,如果 ISP 只发送路由到使用哪个连接很重要的地方,则可能会省力。 But if the ISP has a network "moment" and (some of) the border routers you connect to can no longer reach the entire Internet, then some traffic will fall into a black hole pointed to by the default route !]但是如果 ISP 有一个网络“时刻”,并且您连接的(某些)边界路由器无法再访问整个 Internet,那么某些流量将落入默认路由指向的黑洞!]

Pointing a static default route at a BGP neighbour strikes me as a bold move.将静态默认路由指向 BGP 邻居对我来说是一个大胆的举动。 The essence of BGP is that the neighbour advertises routes for the prefixes it is prepared to forward towards -- prefixes it does advertise routes for, it cannot (or does not wish to) forward towards ! BGP 的本质是邻居为其准备转发的前缀通告路由 - 它确实通告路由的前缀,它不能(或不希望)转发!

If you only have one ISP (and you are using BGP) a default route received by BGP will, of course, be withdrawn if the BGP session drops (for whatever reason) -- which makes more sense than a static default route.如果您只有一个 ISP(并且您正在使用 BGP),则 BGP 接收的默认路由当然会在 BGP 会话断开(无论出于何种原因)时被撤销——这比静态默认路由更有意义。

My feeling is that default routes and BGP are not a good fit, except, perhaps, for exotic use cases for AS's with strictly limited BGP connectivity.我的感觉是默认路由和 BGP 不太适合,除了对于具有严格限制 BGP 连接的 AS 的特殊用例。 [But I mostly know BGP from the implementation of a BGP daemon perspective.] Would you be better off asking this question in the Network Engineering forum ? [但我主要是从 BGP 守护进程的角度了解 BGP。] 你最好在网络工程论坛上问这个问题吗?

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

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