본문 바로가기

전체 글

(12)
[BGP] best path selection_9 9. lowest Peer IP Originator ID를 동일하게 하기 위해 R3, R4에 router-id = 10.10.10.10으로 동일하게 설정 *A:R2# show router bgp routes =============================================================================== BGP Router ID:2.2.2.2 AS:4766 Local AS:4766 =============================================================================== Legend - Status codes : u - used, s - suppressed, h - history, d - decayed, * ..
[BGP] best path selection_7 7. lowest Originator ID R1 기준으로 보았을 때, R2와 R5에서 ISIS metric 값을 동등하게 설정하였다. *A:R1>config>router# show router isis routes =============================================================================== Rtr Base ISIS Instance 0 Route Table =============================================================================== Prefix[Flags] Metric Lvl/Typ Ver. SysID/Hostname NextHop MT AdminTag/SID[F] -----..
[BGP] best path selection_6 6. lowest IGP next-hop cost R2, R5에서는 같은 대역이므로 비교할 수가 없기 때문에 R1에서 이전의 비교 결과를 토대로 확인해보면, *A:R1>config>router# show router bgp routes 20.1.11.0/24 =============================================================================== BGP Router ID:1.1.1.1 AS:4766 Local AS:4766 =============================================================================== Legend - Status codes : u - used, s - suppressed,..
[BGP] best path selection_5 5. EBGP peer > IBGP peer *A:R6>config>router>bgp# show router policy "upper" entry 10 from protocol static tag 100 exit to protocol bgp exit action accept as-path-prepend 500 1 origin igp next-hop 30.1.1.3 exit exit *A:R6>config>router>bgp# *A:R6>config>router>bgp# info ---------------------------------------------- min-route-advertisement 1 export "upper" router-id 10.10.10.10 next-hop-resoluti..
[BGP] best path selection_4 4. lowest MED *A:R3>config>router>bgp# info ---------------------------------------------- min-route-advertisement 1 med-out 100 export "upper" next-hop-resolution use-bgp-routes exit group "Uplink" family ipv4 neighbor 2.2.2.2 peer-as 4766 exit exit no shutdown ---------------------------------------------- *A:R4>config>router>bgp# info ---------------------------------------------- min-route-a..
[BGP] best path selection_3 3. low Origin lower origin have preference: IGP = 0, EGP = 1, INCOMPLETE = 2 해당 항목은 origin 코드를 보고 IGP를 우선한다는 내용이다. R3을 origin code igp, R4는 origin code egp로 설정 후 R2에서 확인해 보면 igp인 R3의 경로가 우선임을 알 수 있다. *A:R3>config>router# show router policy "upper" entry 10 from protocol static tag 100 exit to protocol bgp exit action accept as-path-prepend 500 1 origin igp local-preference 100 next-hop 30.1.1.1 ..
[BGP] best path selection_2 2. shortest AS path AS-Path는 해당 네트워크까지 가는 경로 상에 있는 AS 주소들을 기록해 놓는 속성이다. 이때, 해당 네트워크 정보가 소속된 AS 주소는 가장 오른쪽에 기록되며, AS와 AS 간에 라우팅 업데이트가 되면서 누적되는 AS 주소는 왼쪽 방향으로 차례대로 기록된다. 그리고 서로 다른 neighbor로부터 동일한 BGP 정보를 수신한다면, AS-Path 주소에 짧게 기록된 정보가 선출된다. *A:R6>config>router# show router policy "upper" entry 10 from protocol static tag 100 exit to protocol bgp exit action accept as-path-prepend 500 1 origin igp n..
[BGP] best path selection_1 1. higher Local Preference R3, R4에 local-preference 값을 100, 200으로 설정 한 뒤, R2에서 bgp best 경로를 확인해 보면, A:R3>config>router# show router policy "upper" entry 10 from protocol static tag 100 exit to protocol bgp exit action accept origin igp local-preference 100 next-hop 30.1.1.1 exit exit *A:R4>config>router# show router policy "upper" entry 10 from protocol static tag 100 exit to protocol bgp exit a..