Cisco IOS 기준으로 iBGP 설정 명령어는 기본적으로 router bgp 안에서 neighbor ... remote-as를 사용하는 방식입니다.
예를 들어 AS 100 내부의 R1과 R2가 iBGP로 연결되어 있다고 하면:
R1
R1(config)# router bgp 100
R1(config-router)# neighbor 2.2.2.2 remote-as 100
R2
R2(config)# router bgp 100
R2(config-router)# neighbor 1.1.1.1 remote-as 100
핵심은 이것입니다.
neighbor 상대방_IP remote-as 내_AS번호
내 AS 번호와 상대방 AS 번호가 같으면 iBGP입니다.
반대로:
neighbor 2.2.2.2 remote-as 200
처럼 AS 번호가 다르면 eBGP입니다.
Loopback을 이용한 일반적인 iBGP 구성
실무나 CCIE에서는 물리 인터페이스보다 Loopback을 BGP Router-ID/Neighbor 주소로 사용하는 경우가 많습니다.
R1:
R1(config)# interface loopback0
R1(config-if)# ip address 1.1.1.1 255.255.255.255
R1(config)# router bgp 100
R1(config-router)# neighbor 2.2.2.2 remote-as 100
R1(config-router)# neighbor 2.2.2.2 update-source loopback0
R2:
R2(config)# interface loopback0
R2(config-if)# ip address 2.2.2.2 255.255.255.255
R2(config)# router bgp 100
R2(config-router)# neighbor 1.1.1.1 remote-as 100
R2(config-router)# neighbor 1.1.1.1 update-source loopback0
그리고 Loopback 1.1.1.1 ↔ 2.2.2.2까지 도달할 수 있도록 OSPF/EIGRP/정적 라우팅 등의 IGP가 먼저 구성되어 있어야 합니다.
즉 구조는:
AS 100
┌───────────────────┐
│ │
R1 ═════ iBGP ═════ R2
│ │
└───────────────────┘
↑ ↑
IGP IGP
확인 명령어
show ip bgp summary
가장 중요합니다.
예를 들어:
Neighbor V AS MsgRcvd MsgSent State/PfxRcd
2.2.2.2 4 100 10 10 5
State/PfxRcd에 숫자가 나오면 iBGP 세션이 정상적으로 Established되어 있고 BGP 경로를 받고 있다는 의미입니다.
추가로:
show ip bgp
show ip bgp neighbors
show ip route bgp
카페 게시글
도사의컴퓨터강의
iBGP 명령어....??
김종록
추천 0
조회 4
26.08.26 07:28
댓글 0
다음검색