BGP confederation(컨페더레이션) 이론 및 실습
BGP confederation
컨페더레이션이란 AS내부에 사설 AS인 하위 AS를 생성해 하위 AS간에 eBGP 형식으로 연결하는 Fake eBGP로 하나의 공인 AS를 구성하여 라우팅 루프를 방지한다.
Topology
Command
//
Router(config-router)#bgp confederation identifier as-number // 공인 as
Router(config-router)#bgp confederation peers as-number // 상대방 as
//
Command (기본설정 제외)
R6(config)#router bgp 65100
R6(config-router)#bgp confederation identifier 400 // 공인 as
R6(config-router)#bgp confederation peers 65200 // 상대방 as
R6(config-router)#neighbor 8.8.8.8 remote-as 65100
R6(config-router)#neighbor 8.8.8.8 update-source loopback 0
R6(config-router)#neighbor 8.8.8.8 next-hop-self
R7(config)#router bgp 65200
R7(config-router)#bgp confederation identifier 400
R7(config-router)#bgp confederation peers 65100
R7(config-router)#neighbor 9.9.9.9 remote-as 65200
R7(config-router)#neighbor 9.9.9.9 update-source loopback 0
R7(config-router)#neighbor 8.8.8.8 remote-as 65100
R7(config-router)#neighbor 8.8.8.8 update-source loopback 0
R7(config-router)#neighbor 8.8.8.8 ebgp-multihop 3
R8(config)#router bgp 65100
R8(config-router)#bgp confederation identifier 400
R8(config-router)#bgp confederation peers 65200
R8(config-router)#neighbor 6.6.6.6 remote-as 65100
R8(config-router)#neighbor 6.6.6.6 update-source loopback 0
R8(config-router)#neighbor 7.7.7.7 remote-as 65200
R8(config-router)#neighbor 7.7.7.7 update-source loopback 0
R8(config-router)#neighbor 7.7.7.7 ebgp-multihop 3
R9(config)#router bgp 65200
R9(config-router)#bgp confederation identifier 400
R9(config-router)#bgp confederation peers 65100
R9(config-router)#neighbor 7.7.7.7 remote-as 65200
R9(config-router)#neighbor 7.7.7.7 update-source loopback 0
R9(config-router)#neighbor 7.7.7.7 next-hop-self
Check