, R1 in AS1, R2,R3,R4 in a large AS100 (R2,r3 in AS23, R4 in AS4), 5 in AS5.
Standard Community Community Properties----A neighbor must open the transport Community properties
R2#show Run | S Route-map
Route-map AA Permit 10
Match IP Address 1
Set community Internet All-network can be passed
Route-map AA Permit 20
Match IP Address 2
Set community Local-as cannot outgoing small as
Route-map AA Permit 30
Match IP Address 3
Set community no-advertise cannot be passed to any neighbor
Route-map AA Permit 40
Match IP Address 4
Set community No-export cannot transfer large as
Route-map AA Permit 50
R2#show access-lists
Standard IP access list 1
Ten Permit 200.1.1.0
Standard IP access List 2
Ten Permit 200.1.2.0
Standard IP access list 3
Ten Permit 200.1.3.0
Standard IP access List 4
Ten Permit 200.1.4.0
R2 (config) #router BGP 23
R2 (config-router) #neighbor 12.1.1.1 route-map AA in
R2#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 19
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
2
Refresh Epoch 13
1
12.1.1.1 from 12.1.1.1 (1.1.1.1)
Origin IGP, Metric 0, Localpref, valid, external, best
Community:internet
R3#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 6
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
2
Refresh Epoch 9
1
2.2.2.2 (Metric) from 2.2.2.2 (2.2.2.2)
Origin IGP, Metric 0, Localpref, valid, confed-internal, best
R2 (config) #router BGP 23
R2 (config-router) #neighbor 3.3.3.3 send-community both
R3 (config) #router BGP 23
R3 (config-router) #neighbor 4.4.4.4 send-community both
R4 (config) #
R4 (config) #router BGP 4
R4 (config-router) #neighbor 45.1.1.2 send-community
% specify Remote-as or Peer-group commands first be sure to specify a good IP address on the end
R4 (config-router) #neighbor 45.1.1.5 send-community both open community properties
R2#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 19
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
4
Refresh Epoch 15
1
12.1.1.1 from 12.1.1.1 (1.1.1.1)
Origin IGP, Metric 0, Localpref, valid, external, best
Community:internet
R3#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 17
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
4
Refresh Epoch 11
1
2.2.2.2 (Metric) from 2.2.2.2 (2.2.2.2)
Origin IGP, Metric 0, Localpref, valid, confed-internal, best
Community:internet
R4#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 15
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
3
Refresh Epoch 1
(23) 1
2.2.2.2 (Metric 129) from 3.3.3.3 (3.3.3.3)
Origin IGP, Metric 0, Localpref, valid, confed-external, best
Community:internet
R5#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 17
Paths: (1 available, best #1, table default)
Not advertised to any peer
Refresh Epoch 1
100 1
45.1.1.4 from 45.1.1.4 (4.4.4.4)
Origin IGP, Localpref, valid, external, best
Community:internet
R3#show IP BGP
BGP table version is a, local router ID is 3.3.3.3
Status Codes:s suppressed, D damped, H history, * valid, > Best, I-internal,
R Rib-failure, S Stale, M multipath, b backup-path, F Rt-filter,
X best-external, a additional-path, C rib-compressed,
Origin codes:i-IGP, E-EGP,? -Incomplete
RPKI validation codes:v Valid, I invalid, N not found
Network Next Hop Metric LocPrf Weight Path
>i 1.1.1.1/32 2.2.2.2 0 0 1 I
> 5.5.5.5/32 4.4.4.4 0 0 (4) 5 I
>i 200.1.1.0 2.2.2.2 0 0 1 I
>i 200.1.2.0 2.2.2.2 0 0 1 I
>i 200.1.4.0 2.2.2.2 0 0 1 I
R4#show IP BGP
BGP table version is a, local router ID is 4.4.4.4
Status Codes:s suppressed, D damped, H history, valid, > Best, I-internal,
R Rib-failure, S Stale, M multipath, b backup-path, F Rt-filter,
X best-external, a additional-path, C rib-compressed,
Origin codes:i-IGP, E-EGP,? -Incomplete
RPKI validation codes:v Valid, I invalid, N not found
Network Next Hop Metric LocPrf Weight Path
> 1.1.1.1/32 2.2.2.2 0 0 (1)
> 5.5.5.5/32 45.1.1.5 0 0 5 I
> 200.1.1.0 2.2.2.2 0 0 (1)
> 200.1.4.0 2.2.2.2 0 0 (1)
R5#show IP BGP
BGP table version is a, local router ID is 5.5.5.5
Status Codes:s suppressed, D damped, H history, * valid, > Best, I-internal,
R Rib-failure, S Stale, M multipath, b backup-path, F Rt-filter,
X best-external, a additional-path, C rib-compressed,
Origin codes:i-IGP, E-EGP,? -Incomplete
RPKI validation codes:v Valid, I invalid, N not found
Network Next Hop Metric LocPrf Weight Path
> 1.1.1.1/32 45.1.1.4 0 1 I
> 5.5.5.5/32 0.0.0.0 0 32768 I
> 200.1.1.0 45.1.1.4 0 1 I
Extended Community Properties----neighbors must turn on transport community properties
R2 (config) #router BGP 23
R2 (config-router) # neighbor 12.1.1.1 Route-map AA in
R2 (CONFIG-ROUTE-MAP) #set Community 100000
R2#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 16
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
2
Refresh Epoch 5
1
12.1.1.1 from 12.1.1.1 (1.1.1.1)
Origin IGP, Metric 0, Localpref, valid, external, best
Community:internet 100000
R2 (config) #ip bgp-community new-format
R2 (config) #exit
APR 9 17:06:06.826:%sys-5-config_i:configured from the console by console
R2#show IP BGP 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 16
Paths: (1 available, best #1, table default)
Advertised to Update-groups:
2
Refresh Epoch 7
1
12.1.1.1 from 12.1.1.1 (1.1.1.1)
Origin IGP, Metric 0, Localpref, valid, external, best
Community:internet 1:34,464
Community Community Properties for BGP