반응형

6-4장. BGP(Border Gateway Protocol)라우팅 설정과 조정

 

학습 목표

- BGP 스플릿 호라이즌 규칙 문제를 해결할 수 있다.

 

 

BGP Split Horizon 규칙을 적용받지 않기 위한 방법 중 하나인 컨페더레이션(Confederation) 실습을 진행하기 전에 R2 ~ R4에서의 기존의 BGP설정을 (config)#no router bgp 200 명령어를 통해 BGP 설정을 삭제 후 똑같은  토톨로지를 통해 설정하여 정상적으로 통신이 되는지 확인해보도록 하겠습니다. 

 

 

[ 그림 6-4-1. BGP Split Horizon - Confederation 설정 ] - 후티(출처)

 

 

R2 컨페더레이션 설정 예)

R2(config)#router bgp 65032

R2(config-router)#bgp router-id 20.20.20.20

R2(config-router)#bgp confederation id 200 - # 실제 AS번호 지정

R2(config-router)#neighbor 5.5.5.1 remote-as 100

R2(config-router)#neighbor 30.30.30.30 remote-as 65032

R2(config-router)#neighbor 30.30.30.30 update-source loopback 0

R2(config-router)#neighbor 30.30.30.30 next-hop-self - # eBGP정보를 iBGP로 전송할 때 넥스트 홉 문제 해결

R2(config-router)#network 20.20.20.0 mask 255.255.255.0

 

R3 컨페더레이션 설정 예)

R3(config)#router bgp 65032

R3(config-router)#bgp router-id 30.30.30.30

R3(config-router)#bgp confederation id 200

R3(config-router)#bgp confederation peer 65034 - # 피어(네이버) 지정

R3(config-router)#neighbor 20.20.20.20 remote-as 65032

R3(config-router)#neighbor 20.20.20.20 update-source loopback 0

R3(config-router)#neighbor 40.40.40.40 remote-as 65034

R3(config-router)#neighbor 40.40.40.40 update-source loopback 0

R3(config-router)#neighbor 40.40.40.40 ebgp-multihop 2 - # 원격 eBGP 이웃이 직접 연결되지 않은 경우( 

R3(config-router)#network 30.30.30.0 mask 255.255.255.0

 

R4 컨페더레이션 설정 예)

R4(config)#router bgp 65034

R4(config-router)#bgp router-id 40.40.40.40

R4(config-router)#bgp confederation id 200

R4(config-router)#bgp confederation peer 65032

R4(config-router)#neighbor 30.30.30.30 remote-as 65032

R4(config-router)#neighbor 30.30.30.30 update-source loopback 0

R4(config-router)#neighbor 30.30.30.30 ebgp-multihop 2

R4(config-router)#network 40.40.40.0 mask 255.255.255.0

 

 

R2~R4는 동일 AS 200번내에 있는 iBGP 라우터들이지만 컨페더레이션을 이용하여 R2/R3 -  65032 AS로 R4 - 65034 AS로  설정하여 논리적으로 eBGP 연결이 되도록 하여 BGP 스플릿 호라이즌 규칙을 적용하지 않도록 하는 것으로 설정을 마치면 정상적인 라우팅이 발생하게 되며 #show ip bgp #ping #show ip route 등의 명령어로 상태 확인이 가능합니다. 아래는 R4에서의 BGP 테이블과 Ping을 통한 확인 내용입니다.

 

 

 

[ 그림 6-4-2. R4 설정 확인 ] - 후티(출처)

 

 

 

세부적인 설정과 내용은 유튜브 채널 'youtube.com/에듀쉐어'의 동영상을 통해 확인이 가능하며 구독/좋아요는 콘텐츠 제작하는데 있어 언제나 큰 힘이 됩니다. 감사합니다.^^

 

 

[ BGP Split-Horizon : Confederation 설정 실습 ] - 에듀쉐어

 

[에듀쉐어-강좌공유]

반응형

+ Recent posts