ip bgp new-formart 设置Community 数值的显示格式。Cisco 默认使用旧的显示格式

拓扑

实验03 - Community  No-export-SubConfed - 图1

实验

  • No-export-SubConfed 在IOS 上是叫 local-as.
  • 我们在R11 和R1 上分别宣告各自的2个Lo,然后
    • R11 上针对192.168.11.11 设置 Community 为 Local-AS,
    • 在R1上针对192.168.1.1 设置 Community 为 Local-AS
  • R11的192.168.11.11,发到R1之后就没再发了,而192.168.11.12 可以一直发到重点R12. 说明Local-AS 等同于 No-Advertise。——@20220816
    • 上面这个结论不够严谨,因为AS100里只有1个Router,只有在有2个Router的情况下,R1没有再对外传播,才能证明和 No-Advertise 效果等同 @20220817,见“后续补充”

实验03 - Community  No-export-SubConfed - 图2

  • R1 的192.168.1.1 一直发到R4,即Confederation 内部的第1个 sub-as 的边界,到R5 之后就只剩下了2条。

实验03 - Community  No-export-SubConfed - 图3

  • R2 向下游设置 next-hop-self 前后的效果差异

实验03 - Community  No-export-SubConfed - 图4