상세 컨텐츠

본문 제목

[EVE-NG] eBGP 설정 (ebgp-multihop)

네트워크

by 검은체리 2019. 8. 20. 19:54

본문

eBGP 구성도

1. 해당 구성으로 IOS-EX와 IOS의 eBGP 테스트 진행중 간단히 구성도 및 설정 저장

 - BGP 는 기본적으로 Direct Connect를 위한 프로토콜 (eBGP TTL=1)

 - 하지만 위와 같이 AS간 떨어져 있는 구성일 경우 ebgp-multihop으로 TTL을 255까지 수정 가능  

 

2. TIP

 - R1, R3 Static route 설정시 defualt route (0.0.0.0 0.0.0.0)로 설정시 neighbor 안되었음. 

 

R1

!
interface Loopback1
 ip address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet1
 ip address 10.10.10.1 255.255.255.0

!

router bgp 100
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 network 1.1.1.1 mask 255.255.255.255
 neighbor 192.168.2.2 remote-as 200
 neighbor 192.168.2.2 ebgp-multihop 2

!

ip route 192.168.2.0 255.255.255.0 10.10.10.2

R2

!

interface Loopback1 
 ip address 2.2.2.2 255.255.255.255 

!
interface GigabitEthernet 0/0
 ip address 10.10.10.2 255.255.255.0

!

interface GigabitEthernet 0/1
 ip address 192.168.2.1 255.255.255.0

R3

interface Loopback1
 ip address 3.3.3.3 255.255.255.255
!
interface GigabitEthernet0/0
 ip address 192.168.2.2 255.255.255.0

!

router bgp 200
 bgp router-id 3.3.3.3
 bgp log-neighbor-changes
 network 3.3.3.3 mask 255.255.255.255
 neighbor 10.10.10.1 remote-as 100
 neighbor 10.10.10.1 ebgp-multihop 2 
!
ip route 10.10.10.0 255.255.255.0 192.168.2.1

 

 


검증 (Verify)

R1에서 BGP확인

R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
              t secondary path, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   1.1.1.1/32       0.0.0.0                  0         32768 i
 *>   3.3.3.3/32       192.168.2.2              0             0 200 i
R1#
R1#
R1#sh ip bgp summary 
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 3, main routing table version 3
2 network entries using 496 bytes of memory
2 path entries using 256 bytes of memory
2/2 BGP path/bestpath attribute entries using 544 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
BGP using 1320 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
192.168.2.2     4          200      23      23        3    0    0 00:16:47        1

R3에서 BGP 확인

R3#sh ip bgp
BGP table version is 3, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       10.10.10.1               0             0 100 i
 *>  3.3.3.3/32       0.0.0.0                  0         32768 i
R3#
R3#
R3#sh ip bgp summary 
BGP router identifier 3.3.3.3, local AS number 200
BGP table version is 3, main routing table version 3
2 network entries using 288 bytes of memory
2 path entries using 160 bytes of memory
2/2 BGP path/bestpath attribute entries using 304 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
BGP using 776 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.10.1      4          100      24      24        3    0    0 00:17:18        1

관련글 더보기