이 문서에서는 선택적 인수를 사용하여 BGP 경로 어그리게이션을 구성하는 방법에 대해 설명합니다.
Cisco에서는 다음과 같은 주제에 대해 알고 있는 것이 좋습니다.
이 문서의 정보는 Cisco IOS XE 소프트웨어 버전 17.x를 기반으로 합니다.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다. 이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다. 현재 네트워크가 작동 중인 경우 모든 명령의 잠재적인 영향을 미리 숙지하시기 바랍니다.
BGP 경로 어그리게이션을 사용하면 여러 특정 경로를 단일 요약 경로(종합 경로)로 결합하여 라우팅 테이블 크기 및 광고 오버헤드를 줄일 수 있습니다.
선택적 키워드는 다음과 같습니다.
기본적으로 aggregate-address 명령은 AS 경로를 상속하지 않고 하나 이상의 특정 경로가 있는 경우에만 요약 주소를 생성합니다.

이것은 rtr3 초기 컨피그레이션입니다.
rtr3#show running-config | sec router bgp
router bgp 65333
bgp log-neighbor-changes
neighbor 10.13.13.1 remote-as 65111
neighbor 10.23.23.2 remote-as 65222
neighbor 10.34.34.4 remote-as 65444
rtr3의 BGP 테이블입니다.
rtr3#show ip bgp
BGP table version is 9, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.1.1.0/32 10.13.13.1 0 0 65111 i
*> 10.1.1.1/32 10.13.13.1 0 0 65111 i
*> 10.1.1.2/32 10.13.13.1 0 0 65111 i
*> 10.1.1.3/32 10.13.13.1 0 0 65111 i
*> 10.2.2.0/32 10.23.23.2 0 0 65222 i
*> 10.2.2.1/32 10.23.23.2 0 0 65222 i
*> 10.2.2.2/32 10.23.23.2 0 0 65222 i
*> 10.2.2.3/32 10.23.23.2 0 0 65222 i
rtr3에 rtr1(AS 65111) 및 rtr2(AS 65222)에서 오는 모든 특정 접두사가 있는지 확인합니다. rtr3은 이러한 접두사를 rtr4에 광고하고 AS 65333을 AS PATH 특성에 추가합니다.
rtr4는 다음과 같은 정보를 수신합니다.
rtr4#show ip bgp
BGP table version is 9, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.1.1.0/32 10.34.34.3 0 65333 65111 i
*> 10.1.1.1/32 10.34.34.3 0 65333 65111 i
*> 10.1.1.2/32 10.34.34.3 0 65333 65111 i
*> 10.1.1.3/32 10.34.34.3 0 65333 65111 i
*> 10.2.2.0/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.1/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.2/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.3/32 10.34.34.3 0 65333 65222 i
종합 주소만 광고하도록 BGP를 구성합니다.
첫 번째 실제 예에서는 rtr4가 접두사 10.0.0.0/8만 받도록 합니다.
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.0.0.0 summary-only
rtr3(config-router)#exit
rtr3(config)#
집계를 생성한 후 rtr4의 BGP 테이블:
rtr4#show ip bgp
BGP table version is 18, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 10.34.34.3 0 0 65333 i
AS 경로가 65333(요약을 시작하는 라우터)를 확인합니다.
두 번째 실습 예에서는 원래 AS-PATH를 추적하는 방법을 살펴봅니다.
rtr3 컨피그레이션입니다.
rtr3#configure terminal
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.0.0.0 as-set summary-only
rtr3(config-router)#exit
rtr4의 BGP 테이블입니다.
rtr4#show ip bgp
BGP table version is 36, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 10.34.34.3 0 0 65333 {65111,65222} i
rtr3이 집계하는 모든 AS 경로가 어떻게 표시되는지 확인합니다.
경로 맵을 사용하여 BGP 접두사를 억제합니다.
세 번째 실제 예에서는 rtr1에서 오는 접두사를 필터링하도록 route-map을 구성합니다.
rtr3(config)#ip prefix-list suppress_rtr1 permit 10.1.1.0/24 le 32
rtr3(config)#route-map SUPPRESS-RTR1 permit 10
rtr3(config-route-map)#match ip address prefix-list suppress_rtr1
rtr3(config)#
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.0.0.0 suppress-map SUPPRESS-RTR1
rtr3(config-router)#end
rtr3#
rtr3의 BGP 테이블입니다.
rtr3#show ip bgp
BGP table version is 114, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 0.0.0.0 32768 i
s> 10.1.1.0/32 10.13.13.1 0 0 65111 i
s> 10.1.1.1/32 10.13.13.1 0 0 65111 i
s> 10.1.1.2/32 10.13.13.1 0 0 65111 i
s> 10.1.1.3/32 10.13.13.1 0 0 65111 i
*> 10.2.2.0/32 10.23.23.2 0 0 65222 i
*> 10.2.2.1/32 10.23.23.2 0 0 65222 i
*> 10.2.2.2/32 10.23.23.2 0 0 65222 i
*> 10.2.2.3/32 10.23.23.2 0 0 65222 i
rtr1에서 오는 접두사만 어떻게 억제되는지 확인합니다.
rtr4의 BGP 테이블입니다.
rtr4#show ip bgp
BGP table version is 114, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 10.34.34.3 0 0 65333 i
*> 10.2.2.0/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.1/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.2/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.3/32 10.34.34.3 0 65333 65222 i
rtr4#
범위 내의 접두사가 BGP 테이블에 존재하는 경우에만 요약 경로를 광고합니다.
네 번째 예에서는 이전에 구성한 것과 동일한 경로 맵을 사용하려고 합니다. 그러면 rtr1에서 오는 모든 접두사가 억제됩니다.
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.0.0.0 advertise-map SUPPRESS-RTR1 summary-only
advertise-map은 조건을 설정하며, 10.1.1.0/24 범위 내의 접두사가 BGP 테이블에 존재하는 경우에만 요약 전용 집계가 생성됩니다.
rtr3의 BGP 테이블입니다.
rtr3#show ip bgp
BGP table version is 148, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 0.0.0.0 32768 i
s> 10.1.1.0/32 10.13.13.1 0 0 65111 i
s> 10.1.1.1/32 10.13.13.1 0 0 65111 i
s> 10.1.1.2/32 10.13.13.1 0 0 65111 i
s> 10.1.1.3/32 10.13.13.1 0 0 65111 i
s> 10.2.2.0/32 10.23.23.2 0 0 65222 i
s> 10.2.2.1/32 10.23.23.2 0 0 65222 i
s> 10.2.2.2/32 10.23.23.2 0 0 65222 i
s> 10.2.2.3/32 10.23.23.2 0 0 65222 i
다음은 route-map과 일치하는 접두사가 없을 때의 출력입니다.
rtr3#show run | section router bgp
router bgp 65333
aggregate-address 10.0.0.0 255.0.0.0 summary-only advertise-map SUPPRESS-RTR1
neighbor 10.13.13.1 remote-as 65111
neighbor 10.23.23.2 remote-as 65222
neighbor 10.34.34.4 remote-as 65444
!
rtr3#show ip bgp
BGP table version is 31, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.2.2.0/32 10.23.23.2 0 0 65222 i
*> 10.2.2.1/32 10.23.23.2 0 0 65222 i
*> 10.2.2.2/32 10.23.23.2 0 0 65222 i
*> 10.2.2.3/32 10.23.23.2 0 0 65222 i
rtr2에서 오는 접두사는 억제되지 않으며 종합 경로가 생성되지 않습니다.
경로 맵으로 BGP 특성을 구성합니다.
rtr3(config)#route-map BGP-ATTR permit 10
rtr3(config-route-map)#set community no-export
rtr3(config-route-map)#exit
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.0.0.0 attribute-map BGP-ATTR summary-only
생성된 집계 주소를 확인하면 피어에 알리지 않음을 알 수 있습니다. 모든 네이버가 eBGP(external)이고 내보내기 안 함 well-known 커뮤니티를 설정하고 있기 때문에 이 시나리오에서는 이러한 상황이 예상됩니다. summary-only 인수를 사용한 결과 rtr4는 경로를 수신하지 않습니다.
rtr3의 BGP 테이블입니다
rtr3#show ip bgp 10.0.0.0
BGP routing table entry for 10.0.0.0/8, version 20
Paths: (1 available, best #1, table default, not advertised to EBGP peer)
Not advertised to any peer
Refresh Epoch 1
Local, (aggregated by 65333 10.34.34.3)
0.0.0.0 from 0.0.0.0 (10.34.34.3)
Origin IGP, localpref 100, weight 32768, valid, aggregated, local, atomic-aggregate, best
Community: no-export
rx pathid: 0, tx pathid: 0x0
Updated on Jun 12 2026 23:14:53 UTC
BGP 경로 어그리게이션이 제대로 작동하는지 확인하기 위해 수신 라우터(이 예에서는 rtr4)에서 보려는 항목만 수신하는지 확인할 수 있습니다. 예를 들어, summary, summary만 모든 특정 접두사, summary 및 일부 특정 접두사만 포함될 수 있습니다. 주로 아래 명령을 사용할 수 있습니다.
자세한 내용은 문제 해결 시나리오를 참조하십시오.
요약 경로가 수신되지 않고 특정 접두사가 여전히 표시됩니다.
rtr4#show ip bgp
BGP table version is 9, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.1.1.0/32 10.34.34.3 0 65333 65111 i
*> 10.1.1.1/32 10.34.34.3 0 65333 65111 i
*> 10.1.1.2/32 10.34.34.3 0 65333 65111 i
*> 10.1.1.3/32 10.34.34.3 0 65333 65111 i
*> 10.2.2.0/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.1/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.2/32 10.34.34.3 0 65333 65222 i
*> 10.2.2.3/32 10.34.34.3 0 65333 65222 i
summary-only가 aggregate-address에 대한 인수로 구성되고 서브넷 마스크가 올바른지 확인합니다.
rtr3 컨피그레이션입니다.
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.255.255.0 summary-only
rtr3(config-router)#exit
rtr3(config)#
이 예에서는 summary-address가 구성되었지만 서브넷 마스크가 올바르지 않습니다. 10.0.0.0/24 네트워크의 접두사만 집계에 포함되며, 이는 BGP 경로 집계에 대한 규칙을 위반합니다. rtr1 및 rtr2에서 오는 모든 접두사가 요약 범위에서 벗어나고 rtr3에서 BGP 테이블을 확인하면 억제가 발생하지 않습니다.
rtr3 - 수정된 컨피그레이션
rtr3(config)#router bgp 65333
rtr3(config-router)#aggregate-address 10.0.0.0 255.0.0.0 summary-only
rtr3(config-router)#exit
rtr3(config)#
이제 특정 접두사가 숨겨진 접두사로 플래그가 지정되었는지 확인합니다.
rtr3#show ip bgp
BGP table version is 18, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 0.0.0.0 32768 i
s> 10.1.1.0/32 10.13.13.1 0 0 65111 i
s> 10.1.1.1/32 10.13.13.1 0 0 65111 i
s> 10.1.1.2/32 10.13.13.1 0 0 65111 i
s> 10.1.1.3/32 10.13.13.1 0 0 65111 i
s> 10.2.2.0/32 10.23.23.2 0 0 65222 i
s> 10.2.2.1/32 10.23.23.2 0 0 65222 i
s> 10.2.2.2/32 10.23.23.2 0 0 65222 i
s> 10.2.2.3/32 10.23.23.2 0 0 65222 i
Suppress Map은 범위를 억제하도록 구성되었지만 억제되는 항목이 없습니다.
rtr3의 BGP 테이블을 고려하십시오. 10.2.2.0/24 접두사를 모두 억제하려고 하지만 구성을 적용한 후에는 작동하지 않습니다.
rtr3#show ip bgp
BGP table version is 37, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.1.1.0/32 10.13.13.1 0 0 65111 i
*> 10.1.1.1/32 10.13.13.1 0 0 65111 i
*> 10.1.1.2/32 10.13.13.1 0 0 65111 i
*> 10.1.1.3/32 10.13.13.1 0 0 65111 i
*> 10.2.2.0/32 10.23.23.2 0 0 65222 i
*> 10.2.2.1/32 10.23.23.2 0 0 65222 i
*> 10.2.2.2/32 10.23.23.2 0 0 65222 i
*> 10.2.2.3/32 10.23.23.2 0 0 65222 i
rtr3의 BGP 컨피그레이션을 보려면 선택합니다.
rtr3#show run | section router bgp
router bgp 65333
aggregate-address 10.0.0.0 255.0.0.0 suppress-map SUPPRESS-RTR2
neighbor 10.13.13.1 remote-as 65111
neighbor 10.23.23.2 remote-as 65222
neighbor 10.34.34.4 remote-as 65444
rtr3#
구성된 경로 맵을 확인합니다.
rtr3#show route-map SUPPRESS-RTR2
route-map SUPPRESS-RTR2, permit, sequence 10
Match clauses:
ip address prefix-lists: suppress-rtr2
Set clauses:
Policy routing matches: 0 packets, 0 bytes
구성된 접두사 목록을 확인합니다.
rtr3#show ip prefix-list suppress-rtr2
ip prefix-list suppress-rtr2: 1 entries
seq 5 permit 10.2.2.0/24
rtr3#
예제의 접두사 목록은 정확히 10.2.2.0 접두사와 일치하므로 더 구체적인 접두사는 억제되지 않습니다. 보다 구체적인 접두사를 매칭하려면 보다 작거나 같음 연산자를 사용해야 합니다.
접두사 목록의 컨피그레이션을 수정합니다.
rtr3#configure terminal
rtr3(config)#no ip prefix-list suppress-rtr2
rtr3(config)#ip prefix-list suppress-rtr2 permit 10.2.2.0/24 le 32
rtr3(config)#end
rtr3#
prefix-list suppress-rtr2의 올바른 컨피그레이션 이후의 rtr3 BGP 테이블입니다.
rtr3#show ip bgp
BGP table version is 14, local router ID is 10.34.34.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,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 0.0.0.0 32768 i
*> 10.1.1.0/32 10.13.13.1 0 0 65111 i
*> 10.1.1.1/32 10.13.13.1 0 0 65111 i
*> 10.1.1.2/32 10.13.13.1 0 0 65111 i
*> 10.1.1.3/32 10.13.13.1 0 0 65111 i
s> 10.2.2.0/32 10.23.23.2 0 0 65222 i
s> 10.2.2.1/32 10.23.23.2 0 0 65222 i
s> 10.2.2.2/32 10.23.23.2 0 0 65222 i
s> 10.2.2.3/32 10.23.23.2 0 0 65222 i
BGP 선택적 인수를 사용하여 종합 경로를 구성하는 방법을 배웠고, 경로 종합이 실패하게 할 수 있는 두 가지 일반적인 예도 제공했습니다. 이는 컨피그레이션에서 찾을 수 있는 가장 일반적인 실수입니다. 집계 경로를 생성하는 데 문제가 있고 문제가 있는 컨피그레이션을 찾을 수 없는 경우 debug ip bgp update 명령을 사용하여 더 구체적인 세부 정보를 수집합니다.
| 개정 | 게시 날짜 | 의견 |
|---|---|---|
1.0 |
22-Jun-2026
|
최초 릴리스 |