예: IS-IS 네트워크에서 LDP 터널을 통한 원격 LFA 구성
이 예는 백업 보호를 확장하기 위해 IS-IS 네트워크에서 LDP 터널에 대한 원격 LFA를 구성하는 방법을 보여줍니다.
요구 사항
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
-
연결된 인터페이스에서 IS-IS 프로토콜과 LDP가 활성화된 MX 시리즈 라우터 6개.
-
모든 디바이스에서 실행되는 Junos OS 릴리스 14.2 이상
IS-IS 네트워크에서 원격 LFA over LDP 터널을 구성하기 전에 다음 사항을 확인하십시오.
-
LDP는 루프백 인터페이스에서 활성화됩니다. 루프백 인터페이스가 없으면 LDP 대상 인접성을 형성할 수 없습니다. LDP 대상 인접성 없이 원격 LFA를 구성할 수 없습니다.
-
원격 LFA는 비대칭 원격 이웃 검색을 허용해야 합니다. 즉, LDP 자동 대상 인접성을 위해 원격 이웃을 시작한 라우터에 주기적인 대상 Hello를 보내야 합니다.
-
링크 보호 또는 노드 링크 보호는 로컬 수리 지점(PLR)에서 구성해야 합니다.
개요
이 예에는 링 토폴로지에 6개의 라우터가 포함되어 있습니다. 직접 연결된 인터페이스에서 IS-IS 프로토콜을 구성합니다. 디바이스 R1은 PLR입니다. 이 예는 Junos OS가 백업 경로로 LDP 다음 홉 경로를 사용하여 디바이스 R1의 라우팅 테이블을 업데이트하는지 확인합니다.
구성
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브레이크를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 변경하고, 계층 수준에서 명령을 CLI로 [edit] 복사해 붙여 넣은 다음, 구성 모드에서 을 입력합니다 commit
.
라우터 R1
set interfaces ge-1/0/0 unit 1 description R1->R2 set interfaces ge-1/0/0 unit 1 family inet address 10.1.1.1/24 set interfaces ge-1/0/0 unit 1 family iso set interfaces ge-1/0/0 unit 1 family mpls set interfaces ge-1/5/0 unit 12 description R1->R6 set interfaces ge-1/5/0 unit 12 family inet address 10.1.6.12/24 set interfaces ge-1/5/0 unit 12 family iso set interfaces ge-1/5/0 unit 12 family mpls set interfaces lo0 unit 3 family inet address 10.255.102.128/32 set interfaces lo0 unit 3 family iso address 49.0001.1720.1600.1030.00 set protocols isis interface ge-1/0/0.1 set protocols isis interface ge-1/5/0.12 link-protection set protocols isis interface lo0.12 passive set protocols isis interface all level 2 metric 10 set protocols isis interface fxp0.0 disable set protocols isis spf-options delay 1000 set protocols isis interface all node-link-protection set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options node-link-degradation set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp auto-targeted-session set protocols ldp auto-targeted-session teardown-delay 60 set protocols ldp auto-targeted-session maximum-sessions 20 set protocols ldp deaggregate set policy-options policy-statement ecmp term 1 then load-balance per-packet set routing-options forwarding-table export ecmp
라우터 R2
set interfaces ge-1/0/1 unit 2 description R2>R1 set interfaces ge-1/0/1 unit 2 family inet address 10.1.1.2/24 set interfaces ge-1/0/1 unit 2 family iso set interfaces ge-1/0/1 unit 2 family mpls set interfaces ge-1/1/0 unit 3 description R2->R3 set interfaces ge-1/1/0 unit 3 family inet address 10.1.2.3/24 set interfaces ge-1/1/0 unit 3 family iso set interfaces ge-1/1/0 unit 3 family mpls set interfaces lo0 unit 5 family inet address 10.255.102.178/32 set interfaces lo0 unit 5 family iso address 49.0001.1720.1600.1050.00 set protocols isis interface ge-1/0/1.2 set protocols isis interface ge-1/1/0.3 set protocols isis interface lo0.3 passive set protocols isis interface all level 2 metric 10 set protocols isis interface fxp0.0 disable set protocols isis spf-options delay 1000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp auto-targeted-session set protocols ldp auto-targeted-session teardown-delay 60 set protocols ldp auto-targeted-session maximum-sessions 20 set protocols ldp deaggregate
라우터 R3
set interfaces ge-1/1/1 unit 4 description R3->R2 set interfaces ge-1/1/1 unit 4 family inet address 10.1.2.4/24 set interfaces ge-1/1/1 unit 4 family iso set interfaces ge-1/1/1 unit 4 family mpls set interfaces ge-1/2/0 unit 5 description R3->R4 set interfaces ge-1/2/0 unit 5 family inet address 10.1.3.5/24 set interfaces ge-1/2/0 unit 5 family iso set interfaces ge-1/2/0 unit 5 family mpls set interfaces lo0 unit 7 family inet address 10.255.102.146/32 set interfaces lo0 unit 7 family iso address 49.0001.1720.1600.1070.00 set protocols isis interface ge-1/1/1.4 set protocols isis interface ge-1/2/0.5 set protocols isis interface lo0.5 passive set protocols isis interface all level 2 metric 10 set protocols isis interface fxp0.0 disable set protocols isis spf-options delay 1000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp auto-targeted-session set protocols ldp auto-targeted-session teardown-delay 60 set protocols ldp auto-targeted-session maximum-sessions 20 set protocols ldp deaggregate
라우터 R4
set interfaces ge-1/2/1 unit 6 description R4->R3 set interfaces ge-1/2/1 unit 6 family inet address 10.1.3.6/24 set interfaces ge-1/2/1 unit 6 family iso set interfaces ge-1/2/1 unit 6 family mpls set interfaces ge-1/3/0 unit 7 description R4->R5 set interfaces ge-1/3/0 unit 7 family inet address 10.1.4.7/24 set interfaces ge-1/3/0 unit 7 family iso set interfaces ge-1/3/0 unit 7 family mpls set interfaces lo0 unit 10 family inet address 10.255.102.156/32 set interfaces lo0 unit 10 family iso address 49.0001.1720.1600.1010.00 set protocols isis interface ge-1/2/1.6 set protocols isis interface ge-1/3/0.7 set protocols isis interface lo0.7 passive set protocols isis interface all level 2 metric 10 set protocols isis interface fxp0.0 disable set protocols isis spf-options delay 1000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp auto-targeted-session set protocols ldp auto-targeted-session teardown-delay 60 set protocols ldp auto-targeted-session maximum-sessions 20 set protocols ldp deaggregate
라우터 R5
set interfaces ge-1/3/1 unit 8 description R5->R4 set interfaces ge-1/3/1 unit 8 family inet address 10.1.4.8/24 set interfaces ge-1/3/1 unit 8 family iso set interfaces ge-1/3/1 unit 8 family mpls set interfaces ge-1/4/0 unit 9 description R5->R6 set interfaces ge-1/4/0 unit 9 family inet address 10.1.5.9/24 set interfaces ge-1/4/0 unit 9 family iso set interfaces ge-1/4/0 unit 9 family mpls set interfaces lo0 unit 90 family inet address 10.255.102.166/32 set interfaces lo0 unit 90 family iso address 49.0001.1720.1600.1090.00 set protocols isis interface ge-1/3/1.8 set protocols isis interface ge-1/4/0.9 set protocols isis interface lo0.9 passive set protocols isis interface all level 2 metric 10 set protocols isis interface fxp0.0 disable set protocols isis spf-options delay 1000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set ldp auto-targeted-session set ldp auto-targeted-session teardown-delay 60 set ldp auto-targeted-session maximum-sessions 20 set protocols ldp deaggregate
라우터 R6
set interfaces ge-1/4/1 unit 10 description R6->R5 set interfaces ge-1/4/1 unit 10 family inet address 10.1.5.10/24 set interfaces ge-1/4/1 unit 10 family iso set interfaces ge-1/4/1 unit 10 family mpls set interfaces ge-1/5/0 unit 11 description R6->R1 set interfaces ge-1/5/0 unit 11 family inet address 10.1.6.11/24 set interfaces ge-1/5/0 unit 11 family iso set interfaces ge-1/5/0 unit 11 family mpls set interfaces lo0 unit 110 family inet address 10.255.102.136/32 set interfaces lo0 unit 110 family iso address 49.0001.1720.1600.1110.00 set protocols isis interface ge-1/4/1.10 set protocols isis interface ge-1/5/0.11 set protocols isis interface lo0.11 passive set protocols isis interface all level 2 metric 10 set protocols isis interface fxp0.0 disable set protocols isis spf-options delay 1000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp auto-targeted-session teardown-delay 60 set protocols ldp auto-targeted-session maximum-sessions 20 set protocols ldp deaggregate
디바이스 R1 구성
단계별 절차
다음 예제에서는 구성 계층의 다양한 수준을 탐색해야 합니다. CLI 탐색에 대한 정보는 CLI 사용자 가이드의 구성 모드에서 CLI 편집기 사용을 참조하십시오.
IGP 도메인의 모든 주니퍼 네트웍스 라우터에 대해 4단계와 5단계를 제외하고 이 절차를 반복하여 적절한 인터페이스 이름, 주소 및 기타 매개 변수를 수정합니다.
디바이스 R1 구성:
-
인터페이스를 구성합니다.
[edit interfaces] user@R1# set ge-1/0/0 unit 1 description R1->R2 user@R1# set ge-1/0/0 unit 1 family inet address 10.1.1.1/24 user@R1# set ge-1/0/0 unit 1 family iso user@R1# set ge-1/0/0 unit 1 family mpls user@R1# set ge-1/5/0 unit 12 description R1->R6 user@R1# set ge-1/5/0 unit 12 family inet address 10.1.6.12/24 user@R1# set ge-1/5/0 unit 12 family iso user@R1# set ge-1/5/0 unit 12 family mpls
-
디바이스에 루프백 주소를 할당합니다.
[edit interfaces lo0 unit 3] user@R1# set family inet address 10.255.102.128/32 user@R1# set family iso address 49.0001.1720.1600.1030.00
-
모든 인터페이스에서 레벨 2 및 메트릭 값에 대한 IS-IS 인터페이스를 구성하고, 보호된 인터페이스에서 링크 보호를 활성화합니다.
[edit protocols isis] user@R1# set interface all level 2 metric 10 user@R1# set interface lo0.12 passive user@R1# set interface fxp0.0 disable user@R1# set interface ge-1/0/0.1 user@R1# set interface ge-1/5/0.12 link-protection
-
IS-IS 노드 링크 보호를 활성화하여 백업 범위를 모든 LDP 레이블 전환 경로로 자동 확장합니다.
[edit protocols isis] user@R1# set spf-options delay 1000 user@R1# set interface all node-link-protection
-
동적 LDP 레이블 전환 경로를 사용하여 백업 다음 홉을 계산하는 원격 LFA 백업을 활성화합니다.
(선택 사항) 노드 링크 성능 저하 명령문을 포함하면 특정 대상에 대해 노드 보호 LFA가 구성되지 않은 경우에도 디바이스는 구성된 링크 보호 LFA를 기본 링크의 백업으로 사용합니다.
[edit protocols isis] user@R1# set backup-spf-options remote-backup-calculation user@R1# set backup-spf-options node-link-degradation
-
디바이스의 모든 인터페이스에 LDP 레이블 전환 경로를 사용하도록 MPLS를 구성합니다.
[edit protocols] user@R1# set mpls interface all user@R1# set mpls interface fxp0.0 disable user@R1# set ldp interface all user@R1# set ldp interface fxp0.0 disable
-
원격 LFA가 다운될 때 대상 LDP 세션이 유지되는 시간 간격을 지정하고, 메모리 사용을 최적화하기 위해 자동 대상 LDP 세션의 최대 수를 지정합니다.
[edit protocols ldp] user@R1# set auto-targeted-session user@R1# set auto-targeted-session teardown-delay 60 user@R1# set auto-targeted-session maximum-sessions 20
-
(선택 사항) FEC(Forwarding Equivalence Class) 분해를 활성화하여 글로벌 컨버전스 속도를 높입니다.
[edit protocols ldp] user@R1# set deaggregate
-
패킷 전달 엔진 로컬 복구를 사용하도록 설정하려면 라우팅 프로토콜 프로세스가 지정된 경로에 대한 모든 다음 홉을 설치하도록 강제하는 정책을 설정합니다.
이 정책은 패킷 전달 엔진이 지정된 대상으로 트래픽을 전달하는 데 사용하는 포워딩 테이블에 백업 경로가 설치되도록 합니다.
[edit policy-options] user@R1# set policy-options policy-statement ecmp term 1 user@R1# set then load-balance per-packet
-
내보내기 문을 사용하여 로컬 라우터의 포워딩 테이블에 정책을 적용합니다.
[edit routing-options forwarding-table] user@R1# set export ecmp
결과
구성 모드에서 , show protocols, show policy-options및 show routing-options 명령을 입력하여 show interfaces구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@R1# show interfaces ge-1/0/0 { unit 1 { description R1->R2; family inet { address 10.1.1.1/24; } family iso; family mpls; } } ge-1/5/0 { unit 12 { description R1->R6; family inet { address 10.1.6.12/24; } family iso; family mpls; } } lo0 { unit 10 { family inet { address 10.255.102.128/32; } family iso { address 49.0001.1720.1600.1030.00; } } }
user@R1# show protocols mpls { interface all; interface fxp0.0 { disable; } } isis { spf-options delay 1000; backup-spf-options { remote-backup-calculation; node-link-degradation; } interface ge-1/0/0.1; interface ge-1/5/0.12; { link-protection; } interface all { node-link-protection; level 2 metric 10; } interface fxp0.0 { disable; } interface lo0.12 { passive; } } ldp { auto-targeted-session { teardown-delay 60; maximum-sessions 20; } deaggregate; interface all; interface fxp0.0 { disable; } }
user@R1# show policy-options policy-options { policy-statement ecmp { term 1 { then { load-balance per-packet; } } } }
user@R1# show routing-options forwarding-table { export ecmp; }
디바이스 구성을 마쳤으면 구성 모드에서 을(를) 입력합니다 commit
.
확인
구성이 올바르게 작동하고 있는지 확인합니다.
경로 확인
목적
예상 경로가 학습되는지 확인합니다.
작업
디바이스 R1에서 작동 모드에서 명령을 실행하여 show route 라우팅 테이블에 경로를 표시합니다.
user@R1> show route 10.1.4/24 inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.1.4.0/24 *[IS-IS/15] 11:37:58, metric 30 > to 10.1.6.11 via ge-1/5/0 to 10.1.1.2 via ge-1/0/0, Push 299824 user@R1> show route 10.1.4/24 detail inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) 10.1.4.0/24 (1 entry, 1 announced) State: <FlashAll> *IS-IS Preference: 15 Level: 1 Next hop type: Router, Next hop index: 262154 Address: 0x98047cc Next-hop reference count: 8 Next hop: 10.1.6.11 via ge-1/5/0 weight 0x1, selected Session Id: 0x14b Next hop: 10.1.1.2 via ge-1/0/0 weight 0x101 uflags Remote neighbor path Label operation: Push 299824 Label TTL action: prop-ttl Load balance label: Label 299824: None; Session Id: 0x142 State:<Active Int> Age: 11:38:00 Metric: 30 Validation State: unverified Task: IS-IS Announcement bits (3): 0-LDP 1-IS-IS 3-KRT AS path: I
의미
출력에는 디바이스 R1의 라우팅 테이블에 있는 모든 경로가 표시됩니다.
IS-IS 경로 확인
목적
디바이스 R1의 IS-IS 라우팅 테이블에 모든 LDP 백업 경로를 표시합니다.
작업
디바이스 R1에서 운영 모드에서 명령을 실행하여 show isis route IS-IS 라우팅 테이블에 경로를 표시합니다.
user@R1> show isis route IS-IS routing table Current version: L1: 558 L2: 564 IPv4/IPv6 Routes ---------------- Prefix L Version Metric Type Interface NH Via Backup Score 10.1.2.0/24 1 558 20 int lt-1/2/0.1 IPV4 tp3-R2 10.1.3.0/24 1 558 30 int lt-1/2/0.1 IPV4 tp3-R2 10.1.4.0/24 1 558 30 int lt-1/2/0.12 IPV4 tp3-R6 lt-1/2/0.1 LSP LDP->tp3-R4(10.255.102.156) 10.1.5.0/24 1 558 20 int lt-1/2/0.12 IPV4 tp3-R6 lt-1/2/0.1 LSP LDP->tp3-R4(10.255.102.156) 10.255.102.136/32 1 558 10 int lt-1/2/0.12 IPV4 tp3-R6 lt-1/2/0.1 LSP LDP->tp3-R4(10.255.102.156) 10.255.102.146/32 1 558 20 int lt-1/2/0.1 IPV4 tp3-R2 10.255.102.156/32 1 558 30 int lt-1/2/0.1 IPV4 tp3-R2 lt-1/2/0.12 IPV4 tp3-R6 10.255.102.166/32 1 558 20 int lt-1/2/0.12 IPV4 tp3-R6 lt-1/2/0.1 LSP LDP->tp3-R4(10.255.102.156) 10.255.102.178/32 1 558 10 int lt-1/2/0.1 IPV4 tp3-R2
의미
출력에는 디바이스 R1의 IS-IS 라우팅 테이블에 있는 모든 LDP 백업 경로가 표시됩니다.
LDP 경로 확인
목적
자동 대상 LDP 경로를 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show ldp session auto-targeted detail .
user@R1> show ldp session auto-targeted detail Address: 10.255.102.156, State: Operational, Connection: Open, Hold time: 21 Session ID: 10.255.102.128:0--10.255.102.156:0 Next keepalive in 1 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: auto-targeted Keepalive interval: 10, Connect retry interval: 1 Local address: 10.255.102.128, Remote address: 10.255.102.156 Up for 11:38:23 Capabilities advertised: none Capabilities received: none Protection: disabled Session flags: none Local - Restart: disabled, Helper mode: enabled Remote - Restart: disabled, Helper mode: enabled Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited MTU discovery: disabled Nonstop routing state: Not in sync Next-hop addresses received: 10.1.3.6 10.1.4.7 10.255.102.156
의미
출력은 자동으로 대상 LDP 다음 홉을 보여줍니다.
지정된 백업 경로 노드 확인
목적
지정된 대상에 대해 결정된 원격 LFA 다음 홉을 표시합니다.
작업
운영 모드에서 명령을 입력합니다 show isis backup spf results .
user@R1> show isis backup spf results R6 IS-IS level 1 SPF results: R6.00 Primary next-hop: ge-1/5/0, IPV4, R6, SNPA: 0:5:85:88:f0:bc Root: R6, Root Metric: 10, Metric: 0, Root Preference: 0x0 Not eligible, IPV4, Reason: Primary next-hop link fate sharing Root: R2, Root Metric: 10, Metric: 20, Root Preference: 0x0 track-item: R6.00-00 track-item: R1.00-00 Not eligible, IPV4, Reason: Path loops Root: R4, Root Metric: 30, Metric: 20, Root Preference: 0x0 track-item: R6.00-00 track-item: R4.00-00 Eligible, Backup next-hop: ge-1/0/0, LSP, LDP->R4(10.255.102.156), Prefixes: 2 1 nodes IS-IS level 2 SPF results: R6.00 Primary next-hop: ge-1/5/0, IPV4, R6, SNPA: 0:5:85:88:f0:bc Root: R6, Root Metric: 10, Metric: 0, Root Preference: 0x0 Not eligible, IPV4, Reason: Primary next-hop link fate sharing Root: R2, Root Metric: 10, Metric: 20, Root Preference: 0x0 track-item: R6.00-00 track-item: R1.00-00 Not eligible, IPV4, Reason: Path loops Root: R4, Root Metric: 30, Metric: 20, Root Preference: 0x0 track-item: R6.00-00 track-item: R4.00-00 Eligible, Backup next-hop: ge-1/0/0, LSP, LDP->R4(10.255.102.156), Prefixes: 0 1 nodes
의미
출력은 특정 인터페이스 또는 노드가 원격 백업 경로로 지정되었는지 여부와 그 이유를 나타냅니다.