Passion/Network

BGP에서 Route Reflector 설정

sunshout 2008. 7. 24. 21:53

BGP에서 Route Reflector 설정


Route Reflector는 iBGP라우터에서 모든 라우터들 간에 full mesh를 연결하기 어려운 상황에서 라우터들을 client와 server로 구분하고 모든 client는 server와 1:1 연결을 하고 각 server들간에는 full mesh를 구성하여 모든 라우터들이 full mesh처럼 연결되도록 하는 방법이다.

사용자 삽입 이미지


RR Server 설정 (192.168.1.1 라우터)

router bgp 65000

bgp router-id 192.168.1.1

no bgp default ipv4-unicast

bgp log-neighbor-changes


neighbor RRServer peer-group

neighbor RRServer remote-as 65000

neighbor RRServer update-source Loopback0


neighbor RRClient peer-group

neighbor RRClient remote-as 65000

neighbor RRClient update-source Loopback0


neighbor 192.168.1.2 peer-group RRServer

neighbor 192.168.1.3 peer-group RRServer

neighbor 192.168.1.4 peer-group RRServer


neighbor 10.1.1.1 peer-group RRClient

neighbor 10.1.1.2 peer-group RRClient

neighbor 10.1.1.3 peer-group RRClient


address-family ipv4

neighbor RRClient route-reflector-client

neighbor 192.168.1.2 activate

neighbor 192.168.1.3 activate

neighbor 192.168.1.4 activate

neighbor 10.1.1.1 activate

neighbor 10.1.1.2 activate

neighbor 10.1.1.3 activate


no auto-summary

no synchronization

exit-address-family


여기서는 RR Server와 RR Client들이 동일한 값들을 입력해야 하는 경우가 자주 생기기 때문에 이를 편하게 하기 위해서 peer-group을 만들고 공통 설정을 저장한다.

RRServer라는 peer-group을 만들어서 route reflector 들 간에 full-mesh 설정(파란색 설정값들)을 하고, RRClient라는 peer-group을 만들어서 route reflector client의 설정(빨간색 설정값들)을 넣는다.

여기서 10.1.1.1 ~ 3 번 라우터 들은 192.168.1.1 의 클라이언트로 동작하는데 이 설정은 192.168.1.1 라우터에 자신과 ibgp를 맺고 있는 라우터(10.1.1.1 ~ 3)들이 route-reflector-client라고 알려 주면 된다. (1)



이와는 반대로 RRClient 라우터들의 설정은 간단하다. RRServer와 ibgp 연결 하나만 하면 된다.


RR Client 설정 (10.1.1.1 라우터)

router bgp 65000

bgp router-id 192.168.1.1

no bgp default ipv4-unicast

bgp log-neighbor-changes


neighbor 192.168.1.1 remote-as 65000

neighbor 192.168.1.1 update-source Loopback0


address-family ipv4

neighbor 192.168.1.1 activate


no auto-summary

no synchronization

exit-address-family