route-filter-list
route-filter-list
route-filter-list route-filter-list-name { ip-addresses <exact | longer | orlonger | prefix-length-range | through | upto> label range start : end; ip-addresses <exact | longer | orlonger | prefix-length-range | through | upto> label-allocation-fallback-reject; ip-addresses exact label value; ip-addresses exact label-allocation-fallback-reject;
Hierarchy Level
[edit logical-systems logical-system-name policy-options], [edit policy-options]
route-filter-list (usage)
route-filter-list route-filter-list-name;
Hierarchy Level
[edit logical-systems logical-system-name policy-statement policy-statement-name term term-name from], [edit policy-options policy-statement policy-statement-name term term-name from]
Description
경로 필터 목록은 계층 수준에서 생성하는 개별 라우트 필터의 사용자 구성 [edit policy-options]
목록입니다. 목록의 각 항목은 대상 Prefix, 일치 유형 및 옵션 작업으로 구성된 완벽한 경로 필터 명령문으로 구성됩니다. 아래 예제와 같이 각기 다른 케이스에 대해 재구성할 필요 없이 필요한 모든 수의자 목록을 추가하여 다양한 정책에서 목록을 다시 사용할 수 있습니다.
[edit] user@router# show policy-options route-filter-list rf-test-list 203.0.113.0/24 address-mask 255.255.255.0; 192.0.2.0/26 orlonger reject; 198.51.100.8/29 exact accept;
일단 구성되면 계층 수준에서 해당 구성을 참조하는 route-filter-list
route-filter-list-name
데 policy-statement
[edit policy-options policy-statement policy-statement-name term term-name from]
사용됩니다. 경로 필터 목록은 다른 명령문과 함께 route-filter
사용할 수 있습니다.
몇 가지 예를 들면 다음과 같습니다.
[edit] user@router# show policy-options policy-statement test-route-filter-list-statement from { route-filter 198.51.100.32/29 exact accept; route-filter 192.0.2.1/32 exact; route-filter-list rf-test-list; } then reject;
한 작업이 엔트리와 연계된 경우, 또 다른 조치가 list-level 엔트리와 연관된 경우, list-level entry과 연관된 조치가 route-filter-list
우선적으로 실행됩니다.
policy-options { route-filter-list RFL-1 { 198.1.1.0/24 exact; 198.2.1.0/24 orlonger; } route-filter-list RFL-2 { 198.1.1.0/24 exact reject; 198.2.1.0/24 orlonger accept; } policy-statement pol { term 1 { from { route-filter-list RFL-1 longer accept; } } term 2 { from { route-filter-list RFL-2 longer reject; } } } }
다음은 주어진 prefix에 할당될 BGP(Border Gateway Protocol)-LU 레이블에 대한 정책 기반 제어를 지정하는 방법에 대한 예입니다.
[edit] user@host# show policy-options route-filter-list rfl-1{ 198.51.1.1/32 exact { label 1000101; next-hop 198.52.1.2; accept; label-allocation-fallback-reject; } 198.51.1.0/24 prefix-length-range /24-/32 { label range 1000000:1000200; next-hop 198.53.2.2; accept; } }
[edit] user@host# show policy-options policy-statement p-1{ from { route-filter-list rfl-1; } then accept; }
[edit] user@host# show protocols bgp group ibgp{ type internal; local-address 198.0.23.3; family inet { labeled-unicast { per-prefix-label; } } neighbor 198.0.12.1 { export p-1; } }
Options
일치(match) prefix를 지정할 때 특정 경로와 일치하거나 덜 정밀한 일치를 지정할 수 있습니다. 전체 목록에 적용되는 공통 작업이나 각 Prefix와 관련된 작업을 구성할 수 있습니다.
list-name
—일치할 경로의 경로 필터 목록.exact
—Prefix 길이와 정확하게 일치합니다.longer
—마스크는 Prefix 길이보다 압도적입니다.orlonger
—마스크가 Prefix 길이보다 높거나 같음.prefix-length-range
—2개의 Prefix 길이 사이에 마스크를 쓴다.upto
—2개의 Prefix 길이 사이에 마스크를 쓴다.
Required Privilege Level
라우팅—구성에서 이 진술을 볼 수 있습니다.
라우팅 제어—이 명령문을 구성에 추가하려면
Release Information
릴리스 16.1에 Junos OS 명령문이 도입되었습니다.
다음 목록 수준 PTX1000 릴리스 PTX1000 Junos OS, PTX10000 및 PTX10003 패킷 전송 라우터 릴리스 20.2R1 릴리스에서 지원됩니다. exact
longer
, orlonger
prefix-length-range
를, 및 upto
으로,