귀하의 경험을 개선할 수 있도록 도와주십시오.

귀하의 의견을 알려주십시오.

2분이 소요되는 설문 조사에 시간을 내주시겠습니까?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
keyboard_arrow_right

이 기계 번역이 도움이 되었습니까?

starstarstarstarstar
Go to English page
면책 조항:

이 페이지는 타사 기계 번역 소프트웨어를 사용해 번역됩니다. 주니퍼 네트웍스에서는 우수한 품질의 번역을 제공하기 위한 합리적인 수준의 노력을 기울이지만 해당 컨텐츠의 정확성을 보장할 수 없습니다. 본 번역에 포함된 정보의 정확성과 관련해 의문이 있는 경우 영문 버전을 참조하시기 바랍니다. 다운로드 가능한 PDF는 영어로만 제공됩니다.

RPD 인프라에서 경로 접두사에 대한 우선 순위 구성

date_range 19-Jan-25

접두사 우선 순위 지정은 사용자가 더 나은 컨버전스를 위해 특정 경로 또는 접두사의 우선 순위를 지정하고 차별화된 서비스를 제공하는 데 도움이 됩니다. 경로 수가 많은 네트워크에서는 네트워크 토폴로지의 변경으로 인해 경로가 업데이트되는 순서를 제어하는 것이 중요한 경우가 있습니다. 시스템 수준에서 Junos OS는 휴리스틱을 기반으로 합리적인 기본값을 구현하여 경로가 업데이트되는 순서를 결정합니다. 그러나 기본 동작이 항상 최적인 것은 아닙니다. 접두사 우선 순위 지정은 사용자가 경로가 LDP 또는 OSPF에서 rpd로, rpd에서 커널로 업데이트되는 순서를 제어할 수 있는 기능을 제공합니다. Junos OS 정책 언어는 사용자가 프로토콜의 기존 가져오기 정책을 통해 접두사에 대한 상대적 우선 순위(높음 및 낮음)를 설정할 수 있도록 확장되었습니다. 태그가 지정된 우선 순위에 따라 경로는 서로 다른 우선 순위 대기열에 배치됩니다. 토폴로지가 변경되는 경우, 우선 순위가 높은 접두사가 라우팅 테이블에서 먼저 업데이트되고 그 다음에 낮은 우선 순위가 높은 접두사가 업데이트됩니다. 동일한 우선 순위 수준 내에서 경로는 사전순으로 계속 업데이트됩니다. 명시적으로 우선 순위가 할당되지 않은 경로는 중간 우선 순위로 처리됩니다.

OSPF, LDP 및 BGP와 같은 프로토콜에 대해 rpd에서 접두사 우선 순위 구성을 시작하기 전에:

  • 라우터 인터페이스를 구성합니다.

  • MPLS를 구성합니다.

  • OSPF, BGP 및 LDP 프로토콜을 구성합니다.

OSPF 프로토콜의 우선 순위를 high 구성하려면 다음을 수행합니다.

  1. 정책 용어를 구성합니다.
    content_copy zoom_out_map
    [edit policy-options policy-statement policy-name]
    user@host# set term term-name
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement ospf-prio]
    user@host# set term t1
    
  2. OSPF의 경로를 수락하도록 정책 용어를 구성합니다.
    content_copy zoom_out_map
    [edit policy-options policy-statement ospf-prio  term t1]
    user@host# set from protocol ospf
    
  3. 우선 순위를 high설정할 일치 조건으로 원하는 경로를 지정합니다.
    content_copy zoom_out_map
    [edit policy-options policy-statement ospf-prio term t1]
    user@host# set from route-filter destination-prefix match-type
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement ospf-prio term t1]
    user@host# set from route-filter 172.16.25.3/32 exact
    
  4. 이전 조건이 일치하는 경우 경로를 수락하고 경로에 대한 우선 순위를 high 설정하도록 지정합니다.
    content_copy zoom_out_map
    [edit policy-options policy-statement ospf-prio term t1]
    user@host# set then priority high
    user@host# set then accept
    
  5. 구성을 확인합니다.
    content_copy zoom_out_map
    [edit]
    user@host# show policy-options
    policy-statement ospf-prio {
        term t1 {
            from {
                route-filter 172.16.25.3/32 exact;
                }
            then {
                    priority high;
                    accept;
                    }
                }
        }
    

LDP는 OSPF에서 상속됩니다.

LDP의 우선 순위 high 구성 방법:

  1. OSPF에서 가져오는 정책 용어를 구성합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement policy-name]
    user@host# set term term-name
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement ospf-import]
    user@host# set term ospf_ldp
    
  2. OSPF에서 경로 및 우선 순위를 수락하도록 용어를 구성합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement ospf_import term ospf_ldp]
    user@host# set from protocol ospf
    user@host# set from route-filter destination-prefix match-type
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement ospf_import term ospf_ldp]
    user@host# set from protocol ospf 
    user@host# set from route-filter 172.16.25.3/32 exact
    
  3. 구성을 확인합니다.

    content_copy zoom_out_map
    [edit]
    user@host# show policy-options
    policy-statement ospf-import {
        term ospf_ldp {
            from {
                protocol ospf ;
                route-filter 172.16.25.3/32 exact;
                }
            then {
                    priority high;
                    accept;
                    }
                }
        }
    

BGP 프로토콜의 우선 순위를 high 구성하려면 다음을 수행합니다.

  1. 정책 용어를 구성합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement policy-name]
    user@host# set term term-name
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp]
    user@host# set term bgp_prio
    
  2. 원하는 경로를 일치 조건으로 지정합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp term bgp_prio]
    user@host# set from protocol bgp
    user@host# set from route-filter destination-prefix match-type
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp term bgp_prio]
    user@host# set from protocol bgp
    user@host# set from route-filter 172.16.50.1/32 exact
    
  3. 경로를 수락하도록 지정하고 이전 조건이 일치하는 경우 경로의 우선 순위를 high 설정합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp term bgp_prio]
    user@host# set then priority high
    user@host# set then accept
    
  4. 구성을 확인합니다.

    content_copy zoom_out_map
    policy-statement prio_for_bgp {
        term bgp_prio {
            from {
                protocol bgp;
                route-filter 172.16.50.1/32 exact;
                }
                    then {
                        priority high;
                        accept;
                        }
        }
    }
    
주:

BGP의 경우, L3VPN의 경우 RD(Route Distinguisher) 값을 기반으로 우선 순위를 구성할 수도 있습니다. 예를 들어 route-distinguisher 51.51.51.51:111을 사용하여 BGP의 우선 순위를 구성할 수 있습니다.

RD(route-distinguisher) 값을 기반으로 BGP의 우선 순위를 구성하려면 다음을 수행합니다.

  1. 정책 용어를 구성합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement policy-name]
    user@host# set term term-name
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp]
    user@host# set term bgp_prio
    
  2. 원하는 경로를 일치 조건으로 지정합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp term bgp_prio]
    user@host# set from rib bgp.l3vpn.0
    user@host# set from route-filter destination-prefix match-type
    user@host# set from route-distinguisher route-distinguisher value
    

    예:

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp term bgp_prio]
    user@host# set from rib bgp.l3vpn.0
    user@host# set from route-filter 172.16.1.1/32 exact
    user@host# set from route-distinguisher RD1
    
  3. 경로를 수락하도록 지정하고 이전 조건이 일치하는 경우 경로의 우선 순위를 high 설정합니다.

    content_copy zoom_out_map
    [edit policy-options policy-statement prio-for-bgp term bgp_prio]
    user@host# set then priority high
    user@host# set then accept
    
  4. 구성을 확인합니다.

    content_copy zoom_out_map
    policy-statement prio_for_bgp {
        term bgp_prio {
            from {
                protocol rib bgp.l3vpn.0;
                route-filter 172.16.1.1/32 exact;
                route-distinguisher RD1;
                }
                    then {
                        priority high;
                        accept;
                        }
        }
    }
    
주:

낮은 우선 순위 접두사는 라우팅 테이블에서 우선 순위가 높은 접두사 이후에만 설치됩니다. 낮은 우선 순위로 설정하려는 경로의 우선 순위 high 와 유사하게 우선 순위를 low 구성할 수도 있습니다.

주:

우선 순위는 경로가 RIB에서 FIB로 푸시되는 경우에만 적용됩니다. 따라서 이미 설치된 경로의 우선 순위는 수정할 수 없습니다. 이미 설치된 경로의 우선 순위를 변경하는 것은 의미가 없습니다. 이미 설치된 경로의 우선순위를 변경하려고 하면 show output 차이가 있습니다.

content_copy zoom_out_map
user@R1> show route 172.16.25.3 extensive | match state
 State: <FlashAll>   
              State:   <Active Int HighPriority>     <=== OSPF                 
        Validation State: unverified
        State: <FlashAll>   
              State:   <Active Int>                  <=== LDP                 
        Validation State: unverified          
    

경로가 FIB에 이미 설치되어 있으므로 LDP는 우선 순위를 높음으로 표시하지 않습니다.

라우팅 데몬을 다시 시작하여 경로를 제거하고 다시 추가하면 OSPF 및 LDP 프로토콜 관점 모두에서 적절한 우선 순위가 반영됩니다.

content_copy zoom_out_map
user@R1> restart routing
Routing protocols process signalled but still running, waiting 8 seconds more
Routing protocols process started, pid 4512

user@R1> show route 172.16.25.3 extensive |match state
 State: <FlashAll>   
              State:   <Active Int HighPriority>     <=== OSPF                 
        Validation State: unverified
        State: <FlashAll>   
              State:   <Active Int HighPriority>     <=== LDP                 
        Validation State: unverified          
    
footer-navigation