首页/网络/BGP 与广域网速查/new-format:community 显示为 AS:NN 形式
路由过滤与重分发66 条

new-format:community 显示为 AS:NN 形式

默认按 32 位十进制显示 community;启用 ip bgp-community new-format 后按 AS:NN 展示,便于直接读写与核对。

BGP 与广域网速查网络更新于 2026-10-12
命令ip bgp-community new-format(全局配置)
默认显示32 位十进制值
新格式AS:NN(高 16 位为 AS,低 16 位为 NN)
影响展示与输入方式,不改变线上取值

启用与核对

启用与核对
ip bgp-community new-format
!
show ip bgp 10.1.0.0/16 | include Community
!
write memory
4 字节 ASN 场景:标准 community 的 AS 字段仍是 16 位,大 AS 号标记应使用 large community 表达。

易错点

  • 误读十进制值:未开 new-format 时看到的是整数,与配置写法对不上
  • 用标准 community 表达大 AS 号:编码溢出,需改用 large community

数据来源与参考

  • Cisco: bgp-community new-format
  • RFC 1997: BGP Communities
  • RFC 8092: Large Community
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌