예: IS-IS(Intermediate System to Intermediate System)의 BFD 구성
이 예에서는 IS-IS 네트워크의 실패를 감지하기 위해 BFD(Bidirectional Forwarding Detection) 프로토콜을 구성하는 방법을 설명합니다.
BFD는 QFX10000 시리즈 스위치의 IPV6용 ISIS에서 지원되지 않습니다.
요구 사항
시작하기 전에 두 라우터에서 IS-IS를 구성하십시오. 필요한 IS-IS 구성에 대한 정보는 예제: IS-IS(Intermediate System to Intermediate System)를 참조하십시오.
CLI 빠른 구성 섹션에서 IS-IS 구성을 제공하지만 단계별 IS-IS 구성을 다루지는 않습니다.
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
-
Junos OS 릴리스 7.3 이상
-
Junos OS 릴리스 22.4를 사용하여 업데이트 및 재검증됨
-
-
M Series, MX 시리즈, T 시리즈 라우터
개요
이 예에서는 서로 연결된 두 개의 라우터를 보여 줍니다. 루프백 인터페이스는 각 라우터에서 구성됩니다. IS-IS(Intermediate System to Intermediate System) 및 BFD 프로토콜은 두 라우터 모두에서 구성됩니다.
구성
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브레이크를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 바꾸고 계층 수준에서 명령을 CLI [edit] 로 복사해 붙여 넣습니다.
라우터 R1
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.1/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces lo0 unit 0 family inet address 10.0.255.1/32 set interfaces lo0 unit 0 family iso address 49.0001.0010.0255.0001.00 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection version automatic set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-interval 200 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-receive-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection multiplier 2 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection no-adaptation set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval minimum-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval threshold 300 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection detection-time threshold 500 set protocols isis interface lo0.0
라우터 R2
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.2/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces lo0 unit 0 family inet address 10.0.255.2/32 set interfaces lo0 unit 0 family iso address 49.0001.0010.0255.0002.00 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection version automatic set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-interval 200 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-receive-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection multiplier 2 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection no-adaptation set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval minimum-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval threshold 300 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection detection-time threshold 500 set protocols isis interface lo0.0
절차
단계별 절차
다음 예제에서는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 대한 정보는 구성 모드에서 CLI 편집기 사용을 참조하십시오.
단순히 IS-IS(Intermediate System to Intermediate System)의 BFD를 구성하려면 문만 minimum-interval 필요합니다. BFD 프로토콜은 매개 변수를 지정하지 않고 문을 사용할 때 다른 모든 구성 문에 bfd-liveness-detection 대한 기본 매개 변수를 선택합니다.
기존 세션을 중지하거나 다시 시작하지 않고 언제든지 매개 변수를 변경할 수 있습니다. BFD는 자동으로 새로운 파라미터 값으로 조정됩니다. 그러나 값이 각 BFD 피어와 재동기화될 때까지 BFD 매개 변수에 대한 변경은 일어나지 않습니다.
라우터 R1 및 R2에서 IS-IS(Intermediate System to Intermediate System)의 BFD를 구성하려면 다음을 수행합니다.
R1에 대한 단계만 보여줍니다.
-
검출 시간 적응을 위한 임계값을 구성합니다. 이 임계값은 승수 수에 최소 간격을 곱한 값보다 커야 합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set detection-time threshold 500
-
오류 감지를 위한 최소 전송 및 수신 간격을 구성합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set minimum-interval 200
-
오류 감지를 위한 최소 수신 간격만 구성합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set minimum-receive-interval 100
-
BFD 적응을 비활성화합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set no-adaptation
-
전송 간격에 대한 임계값을 구성합니다. 최소 전송 간격보다 커야 합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set transmit-interval threshold 300
-
- 고장 감지를 위한 최소 전송 간격을 구성합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set transmit-interval minimum-interval 100
-
원래 인터페이스가 다운된 것으로 선언되도록 하는 이웃에서 수신하지 않은 hello 패킷의 수인 승수 번호를 구성합니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set multiplier 2
-
검출에 사용되는 BFD 버전을 구성합니다.
기본값은 버전이 자동으로 검색되도록 하는 것입니다.
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set version automatic
결과
구성 모드에서 명령을 실행하여 show protocols isis interface 구성을 확인합니다. 출력 결과가 의도한 구성대로 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@R1# show protocols isis interface ge-0/0/0.0 family inet
bfd-liveness-detection {
version automatic;
minimum-interval 200;
minimum-receive-interval 100;
multiplier 2;
no-adaptation;
transmit-interval {
minimum-interval 100;
threshold 300;
}
detection-time {
threshold 500;
}
}
확인
구성이 올바르게 작동하고 있는지 확인합니다.
라우터 R1과 R2 간의 연결 확인
목적
라우터 R1과 R2가 서로 연결할 수 있는지 확인합니다.
행동
다른 라우터를 ping하여 네트워크 토폴로지에 따라 두 라우터 간의 연결을 확인합니다.
user@R1> ping 10.0.0.2 count 2 PING 10.0.0.2 (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=2.148 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.923 ms --- 10.0.0.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.923/2.035/2.148/0.113 ms
의미
라우터 R1과 R2는 서로 ping할 수 있습니다.
IS-IS(Intermediate System to Intermediate System) 구성 확인
목적
IS-IS 인스턴스가 두 라우터 모두에서 실행되고 있는지 확인합니다.
행동
show isis database 문을 사용하여 IS-IS 인스턴스가 라우터 R1과 R2에서 모두 실행되고 있는지 확인합니다.
user@R1> show isis database IS-IS level 1 link-state database: LSP ID Sequence Checksum Lifetime Attributes R1.00-00 0x1b 0xa2d5 552 L1 L2 R1.02-00 0x2b 0x8da3 545 L1 L2 R2.00-00 0x1a 0x628d 543 L1 L2 3 LSPs IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes R1.00-00 0x1e 0xb9ba 552 L1 L2 R1.02-00 0x2b 0x8da3 545 L1 L2 R2.00-00 0x1d 0x877e 543 L1 L2 3 LSPs
의미
IS-IS(Intermediate System to Intermediate System)는 라우터 R1과 R2 모두에서 구성됩니다.
BFD 구성 확인
목적
BFD 인스턴스가 라우터 R1과 R2 모두에서 실행되고 있는지 확인합니다.
행동
show bfd session detail 문을 사용하여 BFD 인스턴스가 라우터에서 실행되고 있는지 확인합니다.
user@R1> show bfd session detail
Detect Transmit
Address State Interface Time Interval Multiplier
10.0.0.2 Up ge-0/0/0.0 0.200 0.100 2
Client ISIS L1, TX interval 0.100, RX interval 0.100
Client ISIS L2, TX interval 0.100, RX interval 0.100
Session up time 00:02:41, previous down time 00:00:09
Local diagnostic None, remote diagnostic None
Remote state Up, version 1
Session type: Single hop BFD
1 sessions, 2 clients
Cumulative transmit rate 10.0 pps, cumulative receive rate 10.0 pps
의미
BFD는 IS-IS 네트워크의 실패를 감지하기 위해 라우터 R1과 R2에 구성됩니다.
