이 문서에서는 두 브랜치 라우터가 ISP를 통해 연결되고 두 라우터 간에 BGP(Border Gateway Protocol)를 실행하는 시나리오를 설명합니다. 서로 다른 위치에 있는 두 브랜치 라우터(R1 및 R2)는 동일한 AS 번호를 공유합니다. 브랜치(이 경우 R1)에서 SP(Service Provider) 네트워크로 경로가 도착하면 고객 AS로 태그가 지정됩니다. SP가 다른 브랜치 라우터(R2)에 전달하면 기본적으로 다른 브랜치에서 동일한 AS 번호를 사용하여 SP와 함께 BGP를 실행 중이면 경로가 삭제됩니다. 이 시나리오에서는 다른 쪽의 BGP에서 업데이트를 삽입할 수 있도록 neighbor allowas-in 명령이 실행됩니다. 이 문서에서는 BGP의 Allois-in 기능을 이해하는 데 도움이 되는 샘플 컨피그레이션을 제공합니다.
참고: 이 기능은 실제 eBGP 피어에만 사용할 수 있습니다. 다른 연합 하위 AS의 멤버인 두 피어에 대해서는 이 기능을 사용할 수 없습니다.
이 문서에 대한 특정 요건이 없습니다.
이 문서는 특정 소프트웨어 및 하드웨어 버전으로 한정되지 않습니다.
문서 규칙에 대한 자세한 내용은 Cisco 기술 팁 표기 규칙을 참고하십시오.
이 섹션에서는 이 문서에서 설명하는 기능을 구성하는 데 필요한 정보를 제공합니다.
참고: 명령 조회 도구(등록된 고객만 해당)를 사용하여 이 문서에 사용된 명령에 대한 자세한 내용을 확인하십시오.
이 문서에서는 다음 네트워크 설정을 사용합니다.
이 문서에서는 다음 구성을 사용합니다.
Router_A의 컨피그레이션 |
---|
Router_A#interface Loopback1 ip address 1.1.1.1 255.255.255.255 ! interface Loopback2 ip address 2.2.2.2 255.255.255.255 ! interface Loopback3 ip address 3.3.3.3 255.255.255.255 ! interface GigabitEthernet0/1 no switchport ip address 192.1.12.2 255.255.255.0 ! router eigrp 100 network 1.1.1.1 0.0.0.0 network 2.2.2.2 0.0.0.0 network 3.3.3.3 0.0.0.0 network 192.1.12.0 auto-summary ! |
라우터 R1의 컨피그레이션 |
---|
R1#interface Loopback22 ip address 22.22.22.22 255.255.255.255 ! interface FastEthernet0/0 ip address 192.1.12.1 255.255.255.0 duplex auto speed auto ! interface Serial1/0 ip address 172.16.12.1 255.255.255.0 ! ! router eigrp 100 network 192.1.12.0 no auto-summary ! router bgp 121 no synchronization bgp router-id 22.22.22.22 bgp log-neighbor-changes network 22.22.22.22 mask 255.255.255.255 !--- This is the advertising loopback address. redistribute eigrp 100 !--- This shows the redistributing internal routes in BGP. neighbor 172.16.12.2 remote-as 500 !--- This shows the EBGP connection with ISP. neighbor 172.16.12.2 ebgp-multihop 5 no auto-summary ! |
다음 예에서는 EIGRP가 Router_A와 R1 사이에서 실행됨을 보여 줍니다.
r1#show ip eigrp neighbors IP-EIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 192.1.12.2 Fa0/0 14 01:17:12 828 4968 0 7
다음 예에서는 라우터 R1이 EIGRP를 통해 Router_A에서 경로를 학습하는 방법을 보여줍니다.
r1#show ip route eigrp 100 D 1.0.0.0/8 [90/156160] via 192.1.12.2, 00:02:24, FastEthernet0/0 D 2.0.0.0/8 [90/156160] via 192.1.12.2, 00:02:24, FastEthernet0/0 D 3.0.0.0/8 [90/156160] via 192.1.12.2, 00:02:24, FastEthernet0/0
다음 예에서는 라우터 R1이 BGP AS500을 실행하는 ISP와 BGP 연결을 설정하는 방법을 보여 줍니다.
r1#show ip bgp summary BGP router identifier 22.22.22.22, local AS number 121 BGP table version is 19, main routing table version 19 7 network entries using 924 bytes of memory 7 path entries using 364 bytes of memory 5/4 BGP path/bestpath attribute entries using 840 bytes of memory 1 BGP AS-PATH entries using 24 bytes of memory 0 BGP route-map cache entries using 0 bytes of memory 0 BGP filter-list cache entries using 0 bytes of memory Bitfield cache entries: current 1 (at peak 2) using 32 bytes of memory BGP using 2184 total bytes of memory BGP activity 40/33 prefixes, 42/35 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 172.16.12.2 4 500 86 76 19 0 0 00:25:13 2
다음 예에서는 R1이 BGP 학습 경로를 어떻게 발표하는지 보여줍니다.
r1#show ip bgp BGP table version is 19, local router ID is 22.22.22.22 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0 192.1.12.2 156160 32768 ? *> 2.0.0.0 192.1.12.2 156160 32768 ? *> 3.0.0.0 192.1.12.2 156160 32768 ? *> 10.10.12.0/24 172.16.12.2 0 0 500 i *> 22.22.22.22/32 0.0.0.0 0 32768 i r> 172.16.12.0/24 172.16.12.2 0 0 500 i *> 192.1.12.0 0.0.0.0 0 32768 ?
r1#ping 10.10.12.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.12.2, timeout is 2 seconds: !!!!! !--- This is the connectivity with Router 2 across the Internet cloud.
라우터 R2의 컨피그레이션 |
---|
R2#interface Loopback33 ip address 33.33.33.33 255.255.255.255 ! interface Serial1/0 ip address 10.10.12.1 255.255.255.0 router bgp 121 no synchronization bgp router-id 33.33.33.33 bgp log-neighbor-changes network 33.33.33.33 mask 255.255.255.255 !--- This is the advertising loopback address. neighbor 10.10.12.2 remote-as 500 !--- This is the EBGP connection with ISP. neighbor 10.10.12.2 ebgp-multihop 5 no auto-summary |
라우터 R2는 라우터 R1에서 경로를 학습하지 않습니다.
이는 BGP가 라우팅 루프를 피하려고 하기 때문에 자연스럽게 발생합니다. 예를 들어 중복된 ASN(Autonomous System Numbers)이 포함된 모든 접두사의 재변환은 기본적으로 비활성화되어 있습니다.
재배포된 EIGRP 경로(1.0.0.0, 2.0.0.0, 3.0.0.0) 및 R1에서 BGP 내부 경로 22.22.22.22은 인터넷을 통해 동일한 ASN에서 시작되므로 R2에서 수신되지 않습니다. R2는 AS-PATH에 자체 AS 번호(121)를 표시하므로 R2는 해당 경로를 사용하지 않습니다.
r2#show ip bgp BGP table version is 20, local router ID is 33.33.33.33 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path r> 10.10.12.0/24 10.10.12.2 0 0 500 i *> 33.33.33.33/32 0.0.0.0 0 32768 i *> 172.16.12.0/24 10.10.12.2 0 0 500 i
중복 ASN이 포함된 모든 접두사를 재배포할 수 있도록 하려면 라우터 R2의 라우터 컨피그레이션 모드에서 neighbor allowas-in 명령을 사용합니다.
r2(config-router)#neighbor 10.10.12.2 allowas-in r2#clear ip bgp* r2#show ip bgp BGP table version is 10, local router ID is 33.33.33.33 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.0.0.0 10.10.12.2 0 500 121 ? *> 2.0.0.0 10.10.12.2 0 500 121 ? *> 3.0.0.0 10.10.12.2 0 500 121 ? r> 10.10.12.0/24 10.10.12.2 0 0 500 i *> 22.22.22.22/32 10.10.12.2 0 500 121 i * 33.33.33.33/32 10.10.12.2 0 500 121 i *> 0.0.0.0 0 32768 i *> 172.16.12.0/24 10.10.12.2 0 0 500 i *> 192.1.12.0 10.10.12.2 0 500 121 ?
이제 R1에서 R2로 ping을 시도합니다.
r2#ping 22.22.22.22 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 22.22.22.22, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 56/57/60 ms
현재 이 구성에 대해 사용 가능한 확인 절차가 없습니다.
메시지: %BGP% 인접 디바이스 A.B.C.D 수신 가짜 경로: AS 루프 오류 메시지가 수신됩니다.
이 알림은 CE 라우터에서 수신한 BGP 경로가 AS 경로에 고유한 AS 번호가 있으며 CE 라우터의 라우터 루프로 간주된다는 것을 의미합니다. 이를 해결하려면 이전 예와 같이 할당 인 기능을 사용하여 CE 라우터를 구성합니다.
개정 | 게시 날짜 | 의견 |
---|---|---|
1.0 |
16-Feb-2015 |
최초 릴리스 |