BGP Default Communities
- internet – Advertise this route to the Internet community. All routers belong to it.
- no-export – Do not advertise this route to eBGP peers (real BGP peers).
- no-advertise – Do not advertise this route to any peer (internal or external).
- local-as – Do not advertise this route to peers outside the local autonomous system. This route will not be advertised to other autonomous systems or sub-autonomous systems when confederations are configured.
BGP Communities – LOCAL-AS
R5 is advertising 172.16.105.0/24 into BGP. Use the BGP community so it can be propagated in AS 65035 (sub-autonomous system) and is not advertised any further.
match ip address prefix-list LOOPBACK0
set community local-AS
route-map SET_COMMUNITY permit 999
router bgp 65035
bgp router-id 172.16.105.5
bgp confederation identifier 135
network 172.16.105.0 mask 255.255.255.0
neighbor 10.1.35.3 remote-as 65035
neighbor 10.1.35.3 send-community
neighbor 10.1.35.3 route-map SET_COMMUNITY out