Administrator Guide

Layer 3 Routing Commands 1412
Example
In the following example, the router is configured to reject routes received
from neighbor 172.20.1.1 with an AS path that indicates the route originates
in or passes through AS 100.
console(config)# ip as-path access-list 1 deny _100_
console(config)# ip as-path access-list 1 deny ^100$
console(config)# router bgp 1
console(config-router)# neighbor 172.20.1.1 remote-as 200
console(config-router)# neighbor 172.20.1.1 filter-list 1 in
ip bgp-community new-format
To display BGP standard communities in AA:NN format, use the ip bgp-
community new-format command. To display BGP standard communities as
32-bit integers, use the no form of this command.
Syntax
ip bgp-community new-format
no ip bgp-community new-format
Default Configuration
Standard communities are displayed in AA:NN format.
Command Mode
Global Configuration
User Guidelines
RFC 1997 specifies that the first two bytes of a community number are
considered to be an autonomous system number. The new format displays a
community number as the ASN followed by a 16-bit AS-specific number.
Example
console(config)#ip bgp-community new-format