Apr 9, 2012

ip bgp-community new-format

This command is to display the configured/received community attribures in the new AA:NN format.
This is a gloabl configuration mode command.

Remember, this command just changes the display of the community string. IOS still handles the community using the decimal value for any validation or other actions.

Before configuring "ip bgp-community new-format" command:

22204R1#show running-config
!
route-map eBGP_send permit 20
 match ip address prefix-list aggr_routes
 set as-path prepend 23456
 set community 1455183548 additive
!
20831R1#sho ip bgp 11.0.0.0
BGP routing table entry for 11.0.0.0/8, version 6
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to update-groups:
        2
  22204 23456 23456, (aggregated by 22204 22.20.4.1)
    192.168.1.2 from 192.168.1.2 (22.20.4.1)
      Origin IGP, metric 23456, localpref 50, valid, external, atomic-aggregate, best
      Community: 1455183548
!

After configuring "ip bgp-community new-format" command:


22204R1#
ip bgp-community new-format
!
20831R1#
ip bgp-community new-format
!
22204R1#show running-config
!
route-map eBGP_send permit 20
 match ip address prefix-list aggr_routes
 set as-path prepend 23456
 set community 22204:22204 additive
!
20831R1#sho ip bgp 11.0.0.0
BGP routing table entry for 11.0.0.0/8, version 6
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to update-groups:
        2
  22204 23456 23456, (aggregated by 22204 22.20.4.1)
    192.168.1.2 from 192.168.1.2 (22.20.4.1)
      Origin IGP, metric 23456, localpref 50, valid, external, atomic-aggregate, best
      Community: 22204:22204
!