IS-IS 및 OSPFv2의 여러 독립 IGP 인스턴스를 구성하는 방법
라우터에서 여러 IGP 인스턴스를 구성하고 실행하는 방법에 대해 알아보십시오.
IS-IS의 여러 IGP 인스턴스 구성
이점에 대해 알아보고 라우터에서 IS-IS의 여러 IGP(Interior Gateway Protocol) 인스턴스를 실행하는 방법에 대한 개요를 확인합니다.
멀티인스턴스 IS-IS의 이점
- IS-IS의 여러 IGP 인스턴스를 사용하여 단일 라우터에서 독립적인 IS-IS 도메인 간에 경로를 재배포할 수 있습니다.
- 독립적인 IGP 도메인에서 유연한 IS-IS 계층 구조를 구성할 수 있습니다.
- 여러 IS-IS 플러딩 도메인의 분리를 허용하므로 보다 확장 가능한 IS-IS 구축을 달성할 수 있습니다.
그림 1 은 라우터에서 IS-IS의 여러 IGP 인스턴스를 구성할 때의 몇 가지 이점을 보여줍니다. 예를 들어, 라우터 F는 두 개의 독립적인 IS-IS 인스턴스에 참여합니다. 라우터 F는 IS-IS 어그리게이션 네트워크-1 및 IS-IS 코어 네트워크를 두 개의 독립적인 IGP 도메인으로 처리하는 동시에 해당 도메인 간에 경로를 재배포합니다. 네트워크 운영자는 이러한 유연성을 활용하여 IS-IS 도메인의 계층을 구성할 수 있습니다.
또한 그림 1 은 IS-IS의 여러 IGP 인스턴스를 사용하여 메트로 네트워크를 독립적인 IS-IS 플러딩 도메인으로 분리하는 방법을 보여줍니다. 이 예에서 라우터 D와 E는 IS-IS 어그리게이션 네트워크-1뿐만 아니라 IS-IS 메트로-a, IS-IS 메트로-b 및 IS-IS 메트로-c 네트워크에 참여합니다. 라우터 D와 E는 서로 다른 IS-IS 도메인을 IS-IS 광고로 플러딩하지 않습니다. 대신 서로 다른 IS-IS 도메인 간에 특정 경로를 재분배하므로 보다 확장 가능한 메트로 구축이 가능합니다.
다중 인스턴스 IS-IS 개요
여러 독립적인 IS-IS(IS-IS) IGP 인스턴스를 라우터에서 동시에 구성하고 실행할 수 있습니다. 이러한 인스턴스는 기본 라우팅 인스턴스와 연결되며 기본 라우팅 테이블에 경로를 설치합니다. 각 IS-IS 인스턴스는 표준 Junos OS 라우팅 정책 구성을 사용하여 다른 IS-IS 인스턴스에 의해 라우팅 테이블에 설치된 경로를 내보낼 수도 있습니다. 기본적으로 서로 다른 IS-IS 인스턴스에 의해 설치된 경로는 동일한 경로 기본 설정을 갖습니다.
Junos OS는 IS-IS의 여러 IGP 인스턴스에서 동일한 논리적 인터페이스 구성을 지원하지 않습니다.
대부분의 구축 시나리오에서 라우터에 있는 하나의 IS-IS 인스턴스만 지정된 접두사에 대한 경로를 설치합니다. 따라서 여러 IS-IS 인스턴스에 대해 다른 경로 기본 설정을 구성할 필요가 없습니다. 그러나 여러 IS-IS 인스턴스가 라우팅 테이블에 동일한 접두사에 대한 경로를 설치하는 특정 구축 시나리오의 경우, 다른 IS-IS 인스턴스에 의해 설치된 경로에 대해 다른 경로 기본 설정을 설정할 수 있습니다. 이를 통해 라우팅 테이블은 최상의 경로 선호로 경로를 선택하고 해당 경로를 포워딩 테이블에 설치할 수 있습니다.
계층 및 병렬 구축 모두에 다중 IS-IS 인스턴스 기능을 사용할 수 있습니다. 계층적 구축의 경우, 서로 다른 IGP 인스턴스에 참여하는 라우터 그룹 간에 잘 정의된 경계가 있습니다. 병렬 구축에서는 서로 다른 IGP 인스턴스(일반적으로 2개 또는 3개 이하)가 전체 라우터 그룹에 걸쳐 있습니다. 계층 구축의 일부 도메인이 IGP 인스턴스를 병렬로 실행하는 혼합 구축도 가능합니다.
[edit protocols] 계층 수준에서 구성 문을 포함하여 isis-instance IS-IS의 여러 독립적인 IGP 인스턴스를 구성할 수 있습니다. [edit protocols isis-instance igp-instance-name] 계층 수준에서 사용하는 구성 문은 [edit protocols isis] 계층 수준에서 사용할 수 있는 것과 동일합니다.
isis-instance 구성 문은 [edit routing-instances routing-instance-name protocols] 계층 수준에서 지원되지 않습니다.
[edit protocols] 계층 수준에서 구성 문을 포함하여 ospf-instance OSPFv2의 여러 독립적인 IGP 인스턴스를 구성할 수 있습니다. [edit protocols ospf-instance igp-instance-name] 계층 수준에서 사용하는 구성 문은 [edit protocols ospf] 계층 수준에서 사용할 수 있는 것과 동일합니다.
ospf-instance 구성 문은 [edit routing-instances routing-instance-name protocols] 계층 수준에서 지원되지 않습니다.
라우터에서 세그먼트 라우팅(SR)을 사용하여 OSPFv2의 여러 IGP(Independent Interior Gateway Protocol) 인스턴스를 구성하고 실행할 수 있습니다. 두 개 이상의 OSPF 인스턴스를 생성하고 각 인스턴스에 SR-MPLS를 적용할 수 있습니다. OSPF의 여러 인스턴스는 서로 다른 접두사 세그먼트 식별자(접두사 SID)를 보급할 수 있습니다. 다른 인스턴스에서는 라우팅 결정을 내리는 데 이러한 SID를 사용할 수 있습니다.
SR과 결합된 멀티인스턴스 OSPF는 특히 크고 복잡한 네트워크에서 네트워크 유연성, 확장성 및 트래픽 엔지니어링에 대한 제어를 향상시킵니다.
예: 메트로 플러딩 도메인에서 독립적인 IS-IS 인스턴스 구성
이 예에서는 IS-IS의 여러 IGP 인스턴스를 실행하는 독립적인 메트로 플러딩 도메인을 구성하는 방법에 대해 알아보십시오.
개요
이 예는 메트로 플러딩 도메인에서 IS-IS의 여러 독립 IGP 인스턴스를 구성하고 실행하는 방법을 보여줍니다.
토폴로지
그림 2 는 IS-IS의 독립적인 IGP 인스턴스를 실행하는 메트로 플러딩 도메인(메트로-A 및 메트로-B)의 예를 보여줍니다. 토폴로지에서 라우터 R3과 R4는 메트로 IS-IS 도메인(IS-IS 메트로-a 및 IS-IS 메트로-b)과 IS-IS 코어 네트워크 도메인에 참여합니다. 라우터 R3 및 R4는 서로 다른 IS-IS 도메인을 IS-IS 광고로 플러딩하지 않습니다. 대신 서로 다른 IS-IS 도메인 간에 특정 경로를 재배포하므로 보다 확장 가능한 메트로 구축이 가능합니다.
요구 사항
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
- MX 시리즈 라우터
- 모든 디바이스에서 실행되는 Junos OS 릴리스 21.1R1 이상
네트워크 서비스 모드를 향상된 IP로 구성해야 합니다. 향상된 IP 구성은 라우터가 향상된 모드 기능을 사용하도록 보장합니다.
[edit] user@CE1#set chassis network-services enhanced-ip
명령문을 구성 enhanced-ip 하고 구성을 커밋하면 라우터를 재부팅하라는 다음 경고 메시지가 나타납니다.
'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
재부팅하면 라우터에 FPC가 표시됩니다.
[ show chassis network-services를 참조하십시오.]
구성
라우터에서 IS-IS의 여러 IGP 인스턴스를 구성하고 실행하려면 다음 작업을 수행합니다.
CLI 빠른 구성
이 예제를 빠르게 구성하려면 다음 명령을 복사하여 텍스트 파일에 붙여 넣고 줄 바꿈을 제거한 다음 네트워크 구성과 일치하는 데 필요한 세부 정보를 변경한 다음 명령을 복사하여 [edit] 계층 수준의 CLI에 붙여넣습니다.
디바이스 R1
set interfaces ge-0/0/1 description R1-to-R4 set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/2 description R1-to-R3 set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.100.1/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0001.00 set protocols isis interface ge-0/0/1.0 level 2 metric 100 set protocols isis interface ge-0/0/1.0 level 1 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 level 1 disable set protocols isis interface ge-0/0/2.0 level 2 metric 100 set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface lo0.0 passive set routing-options router-id 192.168.100.1
디바이스 R2
set interfaces ge-0/0/1 description R2-to-R3 set interfaces ge-0/0/1 unit 0 family inet address 192.168.3.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/2 description R2-to-R4 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.100.2/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0002.00 set protocols isis interface ge-0/0/1.0 level 1 disable set protocols isis interface ge-0/0/1.0 level 2 metric 100 set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 level 1 disable set protocols isis interface ge-0/0/2.0 level 2 metric 100 set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface lo0.0 passive set routing-options router-id 192.168.100.2
디바이스 R3
set interfaces ge-0/0/1 description R3-to-R2 set interfaces ge-0/0/1 unit 0 family inet address 192.168.3.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/2 description R3-to-R1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/3 description R3-to-R5 set interfaces ge-0/0/3 unit 0 family inet address 192.168.6.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/4 description R3-to-R4 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 10 set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 1 vlan-id 11 set interfaces ge-0/0/4 unit 1 family inet address 192.168.9.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 2 vlan-id 12 set interfaces ge-0/0/4 unit 2 family inet address 192.168.10.1/24 set interfaces ge-0/0/4 unit 2 family iso set interfaces lo0 unit 0 family inet address 192.168.100.3/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0003.00 set policy-options policy-statement export-direct-loopback from protocol direct set policy-options policy-statement export-direct-loopback from route-filter 192.168.100.3/32 exact set policy-options policy-statement export-direct-loopback then accept set policy-options policy-statement export-isis from protocol isis set policy-options policy-statement export-isis from level 2 set policy-options policy-statement export-isis from route-filter 192.168.100.0/24 longer set policy-options policy-statement export-isis then accept set policy-options policy-statement export-isis-metro-a from igp-instance metro-a set policy-options policy-statement export-isis-metro-a from protocol isis set policy-options policy-statement export-isis-metro-a from level 2 set policy-options policy-statement export-isis-metro-a from route-filter 192.168.100.0/24 longer set policy-options policy-statement export-isis-metro-a then accept set policy-options policy-statement export-isis-metro-b from igp-instance metro-b set policy-options policy-statement export-isis-metro-b from protocol isis set policy-options policy-statement export-isis-metro-b from level 2 set policy-options policy-statement export-isis-metro-b from route-filter 192.168.100.0/24 longer set policy-options policy-statement export-isis-metro-b then accept set protocols isis interface ge-0/0/3.0 level 1 disable set protocols isis interface ge-0/0/3.0 level 2 metric 100 set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface ge-0/0/4.0 level 1 disable set protocols isis interface ge-0/0/4.0 level 2 metric 100 set protocols isis interface ge-0/0/4.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis export export-isis-metro-a set protocols isis export export-isis-metro-b set protocols isis-instance metro-b interface ge-0/0/1.0 level 1 disable set protocols isis-instance metro-b interface ge-0/0/1.0 level 2 metric 100 set protocols isis-instance metro-b interface ge-0/0/1.0 point-to-point set protocols isis-instance metro-b interface ge-0/0/4.2 level 1 disable set protocols isis-instance metro-b interface ge-0/0/4.2 level 2 metric 100 set protocols isis-instance metro-b interface ge-0/0/4.2 point-to-point set protocols isis-instance metro-b export export-isis set protocols isis-instance metro-b export export-direct-loopback set protocols isis-instance metro-b export export-isis-metro-a set protocols isis-instance metro-a interface ge-0/0/2.0 level 1 disable set protocols isis-instance metro-a interface ge-0/0/2.0 level 2 metric 100 set protocols isis-instance metro-a interface ge-0/0/2.0 point-to-point set protocols isis-instance metro-a interface ge-0/0/4.1 level 1 disable set protocols isis-instance metro-a interface ge-0/0/4.1 level 2 metric 100 set protocols isis-instance metro-a interface ge-0/0/4.1 point-to-point set protocols isis-instance metro-a export export-isis set protocols isis-instance metro-a export export-direct-loopback set protocols isis-instance metro-a export export-isis-metro-b set routing-options router-id 192.168.100.3
디바이스 R4
set interfaces ge-0/0/1 description R4-to-R1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/2 description R4-to-R2 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/3 description R4-to-R6 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/4 description R4-to-R3 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 10 set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.2/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 1 vlan-id 11 set interfaces ge-0/0/4 unit 1 family inet address 192.168.9.2/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 2 vlan-id 12 set interfaces ge-0/0/4 unit 2 family inet address 192.168.10.2/24 set interfaces ge-0/0/4 unit 2 family iso set interfaces lo0 unit 0 family inet address 192.168.100.4/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0004.00 set policy-options policy-statement export-direct-loopback from protocol direct set policy-options policy-statement export-direct-loopback from route-filter 192.168.100.4/32 exact set policy-options policy-statement export-direct-loopback then accept set policy-options policy-statement export-isis from protocol isis set policy-options policy-statement export-isis from level 2 set policy-options policy-statement export-isis from route-filter 192.168.100.0/24 longer set policy-options policy-statement export-isis then accept set policy-options policy-statement export-isis-metro-a from igp-instance metro-a set policy-options policy-statement export-isis-metro-a from protocol isis set policy-options policy-statement export-isis-metro-a from level 2 set policy-options policy-statement export-isis-metro-a from route-filter 192.168.100.0/24 longer set policy-options policy-statement export-isis-metro-a then accept set policy-options policy-statement export-isis-metro-b from igp-instance metro-b set policy-options policy-statement export-isis-metro-b from protocol isis set policy-options policy-statement export-isis-metro-b from level 2 set policy-options policy-statement export-isis-metro-b from route-filter 192.168.100.0/24 longer set policy-options policy-statement export-isis-metro-b then accept set protocols isis interface ge-0/0/3.0 level 1 disable set protocols isis interface ge-0/0/3.0 level 2 metric 100 set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface ge-0/0/4.0 level 1 disable set protocols isis interface ge-0/0/4.0 level 2 metric 100 set protocols isis interface ge-0/0/4.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis export export-isis-metro-a set protocols isis export export-isis-metro-b set protocols isis-instance metro-a interface ge-0/0/1.0 level 1 disable set protocols isis-instance metro-a interface ge-0/0/1.0 level 2 metric 100 set protocols isis-instance metro-a interface ge-0/0/1.0 point-to-point set protocols isis-instance metro-a interface ge-0/0/4.1 level 1 disable set protocols isis-instance metro-a interface ge-0/0/4.1 level 2 metric 100 set protocols isis-instance metro-a interface ge-0/0/4.1 point-to-point set protocols isis-instance metro-a export export-isis set protocols isis-instance metro-a export export-direct-loopback set protocols isis-instance metro-a export export-isis-metro-b set protocols isis-instance metro-b interface ge-0/0/2.0 level 1 disable set protocols isis-instance metro-b interface ge-0/0/2.0 level 2 metric 100 set protocols isis-instance metro-b interface ge-0/0/2.0 point-to-point set protocols isis-instance metro-b interface ge-0/0/4.2 level 1 disable set protocols isis-instance metro-b interface ge-0/0/4.2 level 2 metric 100 set protocols isis-instance metro-b interface ge-0/0/4.2 point-to-point set protocols isis-instance metro-b export export-isis set protocols isis-instance metro-b export export-direct-loopback set protocols isis-instance metro-b export export-isis-metro-a set routing-options router-id 192.168.100.4
디바이스 R5
set interfaces ge-0/0/2 description R5-to-R6 set interfaces ge-0/0/2 unit 0 family inet address 192.168.8.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/3 description R5-to-R3 set interfaces ge-0/0/3 unit 0 family inet address 192.168.6.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.100.5/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0005.00 set protocols isis interface ge-0/0/2.0 level 1 disable set protocols isis interface ge-0/0/2.0 level 2 metric 100 set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 level 1 disable set protocols isis interface ge-0/0/3.0 level 2 metric 100 set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 passive set routing-options router-id 192.168.100.5
디바이스 R6
set interfaces ge-0/0/2 description R6-to-R5 set interfaces ge-0/0/2 unit 0 family inet address 192.168.8.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/3 description R6-to-R4 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.100.6/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0006.00 set protocols isis interface ge-0/0/2.0 level 1 disable set protocols isis interface ge-0/0/2.0 level 2 metric 100 set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 level 1 disable set protocols isis interface ge-0/0/3.0 level 2 metric 100 set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 passive set routing-options router-id 192.168.100.6
R1 구성
단계별 절차
다음 예에서는 구성 계층에서 다양한 수준을 탐색해야 합니다. CLI 탐색에 대한 정보는 CLI 사용자 가이드의 구성 모드에서 CLI 편집기 사용을 참조하십시오.
이 예의 단계를 사용하여 R2, R5 및 R6 라우터도 구성할 수 있습니다. 이러한 라우터에서 사용되는 인터페이스 ID, IP 주소 및 루프백 주소를 이해하려면 CLI 빠른 구성 및 그림 2 를 참조하십시오.
R1 구성:
-
IP(
inet) 및 ISO 제품군 지원을 활성화하도록 인터페이스를 구성합니다.user@R1# set interfaces ge-0/0/1 description R1-to-R4 user@R1# set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.1/24 user@R1# set interfaces ge-0/0/1 unit 0 family iso user@R1# set interfaces ge-0/0/2 description R1-to-R3 user@R1# set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 user@R1# set interfaces ge-0/0/2 unit 0 family iso
-
루프백 인터페이스를 생성하고 IP 및 NET 주소를 구성합니다.
user@R1# set interfaces lo0 unit 0 family inet address 192.168.100.1/32 user@R1# set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0001.00
-
도메인에서 라우터를 식별하는 라우팅 옵션을 구성합니다.
user@R1# set routing-options router-id 192.168.100.1
-
인터페이스에서 IS-IS를 활성화합니다.
user@R1# set protocols isis interface ge-0/0/1.0 level 2 metric 100 user@R1# set protocols isis interface ge-0/0/1.0 level 1 disable user@R1# set protocols isis interface ge-0/0/1.0 point-to-point user@R1# set protocols isis interface ge-0/0/2.0 level 1 disable user@R1# set protocols isis interface ge-0/0/2.0 level 2 metric 100 user@R1# set protocols isis interface ge-0/0/2.0 point-to-point user@R1# set protocols isis interface lo0.0 passive
결과
구성 모드에서 , show routing-options및 show protocols 명령을 show interfaces입력하여 구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정합니다.
interfaces {
ge-0/0/1 {
description R1-to-R4;
unit 0 {
family inet {
address 192.168.1.1/24;
}
family iso;
}
}
ge-0/0/2 {
description R1-to-R3;
unit 0 {
family inet {
address 192.168.2.1/24;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 192.168.100.1/32;
}
family iso {
address 49.0002.0192.0168.0001.00;
}
}
}
}
protocols {
isis {
interface ge-0/0/1.0 {
level 2 metric 100;
level 1 disable;
point-to-point;
}
interface ge-0/0/2.0 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
interface lo0.0 {
passive;
}
}
}
routing-options {
router-id 192.168.100.1;
}
R3 구성
단계별 절차
다음 예에서는 구성 계층에서 다양한 수준을 탐색해야 합니다. CLI 탐색에 대한 정보는 CLI 사용자 가이드의 구성 모드에서 CLI 편집기 사용을 참조하십시오.
이 예의 단계를 사용하여 R4 라우터를 구성할 수도 있습니다. 라우터에서 사용되는 인터페이스 ID, IP 주소 및 루프백 주소를 이해하려면 CLI 빠른 구성 및 그림 2 를 참조하십시오.
R3 구성:
-
R1, R2 및 R5에 연결하는 인터페이스를 구성하여 IP 및 ISO 제품군 지원을 활성화합니다.
user@R3# set interfaces ge-0/0/1 description R3-to-R2 user@R3# set interfaces ge-0/0/1 unit 0 family inet address 192.168.3.2/24 user@R3# set interfaces ge-0/0/1 unit 0 family iso user@R3# set interfaces ge-0/0/2 description R3-to-R1 user@R3# set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.2/24 user@R3# set interfaces ge-0/0/2 unit 0 family iso user@R3# set interfaces ge-0/0/3 description R3-to-R5 user@R3# set interfaces ge-0/0/3 unit 0 family inet address 192.168.6.1/24 user@R3# set interfaces ge-0/0/3 unit 0 family iso
-
R3과 R4를 연결하는 3개의 하위 인터페이스(논리적 인터페이스)를 구성합니다(IS-IS 표준 인스턴스 1개 및 IS-IS 메트로 인스턴스 2개(IS-IS 메트로-a 및 IS-IS 메트로-b)).
참고:표준 IS-IS 인스턴스는 [
edit protocols isis] 계층 수준에서 구성된 IS-IS IGP 인스턴스를 나타냅니다.user@R3# set interfaces ge-0/0/4 description R3-to-R4 user@R3# set interfaces ge-0/0/4 vlan-tagging user@R3# set interfaces ge-0/0/4 unit 0 vlan-id 10 user@R3# set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 user@R3# set interfaces ge-0/0/4 unit 0 family iso user@R3# set interfaces ge-0/0/4 unit 1 vlan-id 11 user@R3# set interfaces ge-0/0/4 unit 1 family inet address 192.168.9.1/24 user@R3# set interfaces ge-0/0/4 unit 1 family iso user@R3# set interfaces ge-0/0/4 unit 2 vlan-id 12 user@R3# set interfaces ge-0/0/4 unit 2 family inet address 192.168.10.1/24 user@R3# set interfaces ge-0/0/4 unit 2 family iso
-
루프백 인터페이스를 생성하고 IP 및 NET 주소를 구성합니다.
user@R3# set interfaces lo0 unit 0 family inet address 192.168.100.3/32 user@R3# set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0003.00
-
필요에 따라 IS-IS 도메인 전체에 경로가 분산될 수 있도록 IS-IS 메트로 인스턴스(IS-IS 메트로-a 및 IS-IS 메트로-b) 및 IS-IS 표준 인스턴스(코어 네트워크) 라우터의 루프백 주소를 재분배하도록 정책을 구성합니다.
-
R3의 루프백 주소를 배포하도록 정책을 구성합니다.
user@R3# set policy-options policy-statement export-direct-loopback from protocol direct user@R3# set policy-options policy-statement export-direct-loopback from route-filter 192.168.100.3/32 exact user@R3# set policy-options policy-statement export-direct-loopback then accept
-
R5 및 R6 라우터(표준 IS-IS 인스턴스)의 루프백 주소를 배포하도록 정책을 구성합니다.
user@R3# set policy-options policy-statement export-isis from protocol isis user@R3# set policy-options policy-statement export-isis from level 2 user@R3# set policy-options policy-statement export-isis from route-filter 192.168.100.0/24 longer user@R3# set policy-options policy-statement export-isis then accept
-
R1(IS-IS 메트로-a 인스턴스)의 루프백 주소를 배포하도록 정책을 구성합니다.
user@R3# set policy-options policy-statement export-isis-metro-a from igp-instance metro-a user@R3# set policy-options policy-statement export-isis-metro-a from protocol isis user@R3# set policy-options policy-statement export-isis-metro-a from level 2 user@R3# set policy-options policy-statement export-isis-metro-a from route-filter 192.168.100.0/24 longer user@R3# set policy-options policy-statement export-isis-metro-a then accept
-
R2(IS-IS 메트로-b 인스턴스)의 루프백 주소를 배포하도록 정책을 구성합니다.
user@R3# set policy-options policy-statement export-isis-metro-b from igp-instance metro-b user@R3# set policy-options policy-statement export-isis-metro-b from protocol isis user@R3# set policy-options policy-statement export-isis-metro-b from level 2 user@R3# set policy-options policy-statement export-isis-metro-b from route-filter 192.168.100.0/24 longer user@R3# set policy-options policy-statement export-isis-metro-b then accept
-
-
표준 인스턴스 인터페이스(R3에서 R5로 연결) 및 하위 인터페이스(R3에서 R4로 연결)에서 IS-IS를 활성화합니다.
user@R3# set protocols isis interface ge-0/0/3.0 level 1 disable user@R3# set protocols isis interface ge-0/0/3.0 level 2 metric 100 user@R3# set protocols isis interface ge-0/0/3.0 point-to-point user@R3# set protocols isis interface ge-0/0/4.0 level 1 disable user@R3# set protocols isis interface ge-0/0/4.0 level 2 metric 100 user@R3# set protocols isis interface ge-0/0/4.0 point-to-point user@R3# set protocols isis interface lo0.0 passive
-
IS-IS 메트로-a 및 IS-IS 메트로-b 인스턴스에서 IS-IS 표준 인스턴스로 루프백 주소를 내보내도록 IS-IS를 구성합니다. 이 구성은 전체 메트로 도메인을 플러딩하는 대신 특정 경로를 배포합니다.
user@R3# set protocols isis export export-isis-metro-a user@R3# set protocols isis export export-isis-metro-b
-
IS-IS 메트로-b 인스턴스 인터페이스(R3에서 R2로 연결) 및 하위 인터페이스(R3에서 R4로 연결)에서 IS-IS를 활성화합니다.
user@R3# set protocols isis-instance metro-b interface ge-0/0/1.0 level 1 disable user@R3# set protocols isis-instance metro-b interface ge-0/0/1.0 level 2 metric 100 user@R3# set protocols isis-instance metro-b interface ge-0/0/1.0 point-to-point user@R3# set protocols isis-instance metro-b interface ge-0/0/4.2 level 1 disable user@R3# set protocols isis-instance metro-b interface ge-0/0/4.2 level 2 metric 100 user@R3# set protocols isis-instance metro-b interface ge-0/0/4.2 point-to-point
-
IS-IS 메트로-a 및 표준 IS-IS 인스턴스의 루프백 주소를 IS-IS 메트로-b 인스턴스로 내보내도록 IS-IS를 구성합니다. 이 구성은 전체 표준 IS-IS 인스턴스 및 메트로-a 도메인 인스턴스를 플러딩하는 대신 특정 경로를 배포합니다.
user@R3# set protocols isis-instance metro-b export export-isis user@R3# set protocols isis-instance metro-b export export-direct-loopback user@R3# set protocols isis-instance metro-b export export-isis-metro-a
-
IS-IS 메트로-a 인스턴스 인터페이스(R3에서 R1로 연결) 및 하위 인터페이스(R3에서 R4로 연결)에서 IS-IS를 활성화합니다.
user@R3# set protocols isis-instance metro-a interface ge-0/0/2.0 level 1 disable user@R3# set protocols isis-instance metro-a interface ge-0/0/2.0 level 2 metric 100 user@R3# set protocols isis-instance metro-a interface ge-0/0/2.0 point-to-point user@R3# set protocols isis-instance metro-a interface ge-0/0/4.1 level 1 disable user@R3# set protocols isis-instance metro-a interface ge-0/0/4.1 level 2 metric 100 user@R3# set protocols isis-instance metro-a interface ge-0/0/4.1 point-to-point
-
IS-IS 메트로-b 및 표준 IS-IS 인스턴스의 루프백 주소를 IS-IS 메트로-a 인스턴스로 내보내도록 IS-IS를 구성합니다. 이 구성은 전체 표준 IS-IS 인스턴스 및 metro-b 도메인 인스턴스를 플러딩하는 대신 특정 경로를 배포합니다.
user@R3# set protocols isis-instance metro-a export export-isis user@R3# set protocols isis-instance metro-a export export-direct-loopback user@R3# set protocols isis-instance metro-a export export-isis-metro-b
-
도메인에서 라우터를 식별하는 라우팅 옵션을 구성합니다.
user@R3# set routing-options router-id 192.168.100.3
결과
구성 모드에서 , show routing-options및 show protocols 명령을 show interfaces입력하여 구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정합니다.
interfaces {
ge-0/0/1 {
description R3-to-R2;
unit 0 {
family inet {
address 192.168.3.2/24;
}
family iso;
}
}
ge-0/0/2 {
description R3-to-R1;
unit 0 {
family inet {
address 192.168.2.2/24;
}
family iso;
}
}
ge-0/0/3 {
description R3-to-R5;
unit 0 {
family inet {
address 192.168.6.1/24;
}
family iso;
}
}
ge-0/0/4 {
description R3-to-R4;
vlan-tagging;
unit 0 {
vlan-id 10;
family inet {
address 192.168.5.1/24;
}
family iso;
}
unit 1 {
vlan-id 11;
family inet {
address 192.168.9.1/24;
}
family iso;
}
unit 2 {
vlan-id 12;
family inet {
address 192.168.10.1/24;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 192.168.100.3/32;
}
family iso {
address 49.0002.0192.0168.0003.00;
}
}
}
}
policy-options {
policy-statement export-direct-loopback {
from {
protocol direct;
route-filter 192.168.100.3/32 exact;
}
then accept;
}
policy-statement export-isis {
from {
protocol isis;
level 2;
route-filter 192.168.100.0/24 longer;
}
then accept;
}
policy-statement export-isis-metro-a {
from {
igp-instance metro-a;
protocol isis;
level 2;
route-filter 192.168.100.0/24 longer;
}
then accept;
}
policy-statement export-isis-metro-b {
from {
igp-instance metro-b;
protocol isis;
level 2;
route-filter 192.168.100.0/24 longer;
}
then accept;
}
}
protocols {
isis {
interface ge-0/0/3.0 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
interface ge-0/0/4.0 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
interface lo0.0 {
passive;
}
export [ export-isis-metro-a export-isis-metro-b ];
}
isis-instance metro-b {
interface ge-0/0/1.0 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
interface ge-0/0/4.2 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
export [ export-isis export-direct-loopback export-isis-metro-a ];
}
isis-instance metro-a {
interface ge-0/0/2.0 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
interface ge-0/0/4.1 {
level 1 disable;
level 2 metric 100;
point-to-point;
}
export [ export-isis export-direct-loopback export-isis-metro-b ];
}
}
routing-options {
router-id 192.168.100.3;
}
검증
구성이 제대로 작동하는지 확인하려면 다음 작업을 수행하십시오.
IS-IS 광고 확인
목적
PDU 패킷에 대한 데이터가 들어 있는 IS-IS LSDB(Link-State Database)에서 IS-IS 광고 항목을 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show isis database level 2 .
R3에서
user@R3>show isis database level 2 IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes R6.00-00 0x75d 0x1ff7 1181 L1 L2 R5.00-00 0x75b 0xffdc 741 L1 L2 R4.00-00 0x780 0x4e1 552 L1 L2 R3.00-00 0x7f0 0x8643 496 L1 L2 4 LSPs
user@R3>show isis database level 2 igp-instance metro-a IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes R1.00-00 0x136 0x46e5 1046 L1 L2 R4.00-00 0x781 0xf65e 768 L1 L2 R3.00-00 0x7f2 0x871b 764 L1 L2 3 LSPs
user@R3>show isis database level 2 igp-instance metro-b IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes R2.00-00 0x13a 0x7997 1013 L1 L2 R4.00-00 0x781 0x86ba 771 L1 L2 R3.00-00 0x7f2 0x1288 510 L1 L2 3 LSPs
R1에서
user@R1>show isis database level 2 IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes R1.00-00 0x136 0x46e5 851 L1 L2 R4.00-00 0x781 0xf65e 571 L1 L2 R3.00-00 0x7f2 0x871b 565 L1 L2 3 LSPs
의미
R3의 이 출력은 R3이 표준 IS-IS 인스턴스인 R4, R5 및 R6의 IS-IS 보급을 보다는 것을 보여줍니다. R3은 또한 R1(IS-IS metro-a), R2(IS-IS metro-b) 및 R4(IS-IS metro-a 및 IS-IS metro-b 모두)의 IS-IS 보급을 확인합니다. 따라서 R3는 IS-IS 메트로-a 인스턴스, IS-IS 메트로-b 인스턴스 및 표준 IS-IS 인스턴스(코어 네트워크) 간에 IS-IS 경로를 재배포하는 공통 라우터임을 알 수 있습니다.
R1의 출력은 R1이 R3과 R4의 IS-IS 광고만 보다는 것을 보여줍니다. R1은 R2의 IS-IS 광고를 않습니다. 따라서 IS-IS 메트로-a 및 IS-IS 메트로-b는 별도의 IS-IS 플러딩 도메인임을 알 수 있습니다. 이 속성을 사용하여 확장 가능한 네트워크를 구축할 수 있습니다.
라우팅 테이블 확인
목적
라우팅 테이블의 경로 항목을 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show route table inet.0 route-destination address extensive .
R3에서
user@R3>show route table inet.0 192.168.100.1 extensive
inet.0: 28 destinations, 28 routes (28 active, 0 holddown, 0 hidden)
192.168.100.1/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 192.168.100.1/32 -> {192.168.2.1}
IS-IS level 1, LSP fragment 0
IS-IS level 2, LSP fragment 0
IS-IS level 1, LSP fragment 0
IS-IS level 2, LSP fragment 0
*IS-IS Preference: 18
Level: 2
Next hop type: Router, Next hop index: 601
Address: 0xc5b21cc
Next-hop reference count: 2
Next hop: 192.168.2.1 via ge-0/0/2.0, selected
Session Id: 0x140
State: <Active Int>
Age: 2d 18:10:36 Metric: 63
Validation State: unverified
ORR Generation-ID: 0
Task: IS-IS-metro-a
Announcement bits (3): 0-KRT 2-IS-IS 10-IS-IS-metro-b
AS path: I
Thread: junos-main
user@R3>show route table inet.0 192.168.100.2 extensive
inet.0: 28 destinations, 28 routes (28 active, 0 holddown, 0 hidden)
192.168.100.2/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 192.168.100.2/32 -> {192.168.3.1}
IS-IS level 1, LSP fragment 0
IS-IS level 2, LSP fragment 0
IS-IS level 1, LSP fragment 0
IS-IS level 2, LSP fragment 0
*IS-IS Preference: 18
Level: 2
Next hop type: Router, Next hop index: 602
Address: 0xc5b2234
Next-hop reference count: 2
Next hop: 192.168.3.1 via ge-0/0/1.0, selected
Session Id: 0x141
State: <Active Int>
Age: 2d 18:18:48 Metric: 63
Validation State: unverified
ORR Generation-ID: 0
Task: IS-IS-metro-b
Announcement bits (3): 0-KRT 2-IS-IS 4-IS-IS-metro-a
AS path: I
Thread: junos-main
의미
출력은 R1(192.168.100.1)의 루프백 주소가 IS-IS 메트로-a 인스턴스(IS-IS-metro-a)에 매핑되고 R2(192.168.100.2)의 루프백 주소가 R3에서 구성된 IS-IS 메트로-b 인스턴스(IS-IS-metro-b)에 매핑되는 것을 보여줍니다.
IS-IS 라우팅 테이블의 경로 확인
목적
IS-IS 라우팅 테이블의 경로를 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show isis route .
R3에서
user@R3>show isis route
IS-IS routing table Current version: L1: 1885 L2: 1956
IPv4/IPv6 Routes
----------------
Prefix L Version Metric Type Interface NH Via Backup Score
192.168.7.0/24 2 1956 126 int ge-0/0/4.0 IPV4 R4
192.168.8.0/24 2 1956 126 int ge-0/0/3.0 IPV4 R5
192.168.100.4/32 2 1956 63 int ge-0/0/4.0 IPV4 R4
192.168.100.5/32 2 1956 63 int ge-0/0/3.0 IPV4 R5
192.168.100.6/32 2 1956 126 int ge-0/0/3.0 IPV4 R5
ge-0/0/4.0 IPV4 R4
user@R3>show isis route igp-instance metro-a
IS-IS routing table Current version: L1: 1889 L2: 1961
IPv4/IPv6 Routes
----------------
Prefix L Version Metric Type Interface NH Via Backup Score
192.168.1.0/24 2 1961 126 int ge-0/0/4.1 IPV4 R4
ge-0/0/2.0 IPV4 R1
192.168.100.1/32 2 1961 63 int ge-0/0/2.0 IPV4 R1
user@R3>show isis route igp-instance metro-b
IS-IS routing table Current version: L1: 1892 L2: 1949
IPv4/IPv6 Routes
----------------
Prefix L Version Metric Type Interface NH Via Backup Score
192.168.4.0/24 2 1949 126 int ge-0/0/4.2 IPV4 R4
ge-0/0/1.0 IPV4 R2
192.168.100.2/32 2 1949 63 int ge-0/0/1.0 IPV4 R2
R1에서
user@R1>show isis route
IS-IS routing table Current version: L1: 313 L2: 392
IPv4/IPv6 Routes
----------------
Prefix L Version Metric Type Interface NH Via Backup Score
192.168.9.0/24 2 392 126 int ge-0/0/2.0 IPV4 R3
ge-0/0/1.0 IPV4 R4
192.168.100.2/32 2 392 126 int ge-0/0/2.0 IPV4 R3
ge-0/0/1.0 IPV4 R4
192.168.100.3/32 2 392 73 int ge-0/0/2.0 IPV4 R3
192.168.100.4/32 2 392 73 int ge-0/0/1.0 IPV4 R4
192.168.100.5/32 2 392 126 int ge-0/0/2.0 IPV4 R3
ge-0/0/1.0 IPV4 R4
192.168.100.6/32 2 392 126 int ge-0/0/2.0 IPV4 R3
ge-0/0/1.0 IPV4 R4
의미
R3의 출력은 R1, R2, R4, R5 및 R6의 루프백 주소와 IS-IS 인스턴스 매핑 정보를 보여줍니다.
R1의 출력은 R2, R3, R4, R5 및 R6의 루프백 주소를 보여줍니다.
IS-IS 인터페이스 확인
목적
IS-IS 지원 인터페이스에 대한 상태 정보를 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show isis interface .
R3에서
user@R3>show isis interface IS-IS interface database: Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric ge-0/0/3.0 2 0x1 Disabled Point to Point 10/100 ge-0/0/4.0 2 0x1 Disabled Point to Point 10/100 lo0.0 3 0x1 Passive Passive 0/0
user@R3>show isis interface igp-instance metro-a IS-IS interface database: Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric ge-0/0/2.0 2 0x1 Disabled Point to Point 10/100 ge-0/0/4.1 2 0x1 Disabled Point to Point 10/100
user@R3>show isis interface igp-instance metro-b IS-IS interface database: Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric ge-0/0/1.0 2 0x1 Disabled Point to Point 10/100 ge-0/0/4.2 2 0x1 Disabled Point to Point 10/100
R1에서
user@R1>show isis interface IS-IS interface database: Interface L CirID Level 1 DR Level 2 DR L1/L2 Metric ge-0/0/1.0 2 0x1 Disabled Point to Point 10/100 ge-0/0/2.0 2 0x1 Disabled Point to Point 10/100 lo0.0 3 0x1 Passive Passive 0/0
의미
출력은 서로 다른 IS-IS 인스턴스에 매핑된 인터페이스를 보여줍니다.
예: 세그먼트 라우팅을 사용하여 OSPFv2의 여러 독립 인스턴스 구성
이 예는 세그먼트 라우팅을 사용하여 OSPFv2의 여러 IGP 인스턴스를 구성하는 데 유용합니다.
당사의 콘텐츠 테스트 팀은 이 예제를 검증하고 업데이트했습니다.
| 읽기 시간 |
30분 |
| 구성 시간 |
20분 |
사전 요구 사항 예
| 하드웨어 요구 사항 |
3개의 MX 시리즈 라우터. |
| 소프트웨어 요구 사항 |
모든 디바이스에서 실행되는 Junos OS 릴리스 24.4R1 이상. |
시작하기 전에
| 이점 |
세그먼트 라우팅을 사용하여 OSPFv2의 여러 독립 인스턴스를 구성하면 특히 크고 복잡한 네트워크에서 네트워크 유연성, 확장성 및 트래픽 엔지니어링에 대한 제어가 향상됩니다. |
| 자세히 알아보기 |
기능 개요
| 사용된 기술 |
|
| 기본 검증 작업 |
|
토폴로지 개요
이 구성 예는 세 개의 디바이스 R1, R2 및 R3을 보여줍니다. 디바이스 R1과 디바이스 R2 사이에, 그리고 디바이스 R2와 디바이스 R3 사이에는 두 개의 하위 인터페이스가 구성됩니다. 각 디바이스는 세그먼트 라우팅이 활성화된 상태에서 여러 개의 최단 경로 우선(OSPF) 인스턴스를 실행합니다. 네트워크를 통해 경로 제어를 제공하도록 SR-MPLS를 구성합니다. 디바이스의 두 하위 인터페이스 각각에서 실행되는 OSPF metro-edge 인스턴스가 있습니다.
| 호스트 이름 |
역할 |
기능 |
|---|---|---|
| R1, R2, and R3 |
디바이스에는 세그먼트 라우팅이 활성화된 하위 인터페이스에 구성된 다중 인스턴스 OSPF가 있습니다. |
디바이스는 OSPF 다중 인스턴스에 참여하고, 경로를 보급하며, 접두사 SID를 사용하여 트래픽을 다른 디바이스로 전달합니다. |
토폴로지 일러스트레이션
R2 구성 단계
R2의 전체 샘플 구성은 다음을 참조하십시오. 부록 1: 모든 디바이스에서 명령 설정
이 섹션에서는 이 예에서 R2 디바이스를 구성하는 데 필요한 주요 구성 작업을 중점적으로 설명합니다.
-
디바이스 인터페이스의 논리적 장치에서 호스트 이름,
enhanced-ip모드, IPv4 주소와 같은 기본 디바이스 설정을 구성합니다.IP 주소로 루프백 인터페이스를 구성하고 MPLS를 활성화합니다.
동일한 AS에 속하는 라우팅 디바이스 집합 내에서 라우팅 정보를 전파하도록 라우터 ID 및 AS(Autonomous System) 번호를 구성합니다.
VLAN 태깅을 활성화하고 서로 다른 VLAN ID를 가진 두 인터페이스의 논리적 단위를 구성합니다.
각 논리 장치에서 MPLS를 활성화합니다. 각 인터페이스의 논리적 장치에서 나가는 패킷에 적용할 수 있는 최대 MPLS 레이블 수를 구성합니다.
패킷의 로드 밸런싱을 위한 정책을 정의하고 패킷별 정책을 적용하여 트래픽의 로드 밸런싱을 활성화합니다.
정확한 접두사를 기반으로 경로와 일치하는 정책 문을 구성하고 일치하는 경로에 세그먼트 식별자를 할당합니다.
계층 수준에서
edit protocol mplsMPLS 트래픽 엔지니어링, 세그먼트 라우팅 글로벌 블록(SRGB) 레이블 범위를 구성하여 세그먼트 라우팅 도메인에서 레이블을 보다 예측 가능하도록 하며, 링크에 대해 구성된 srgb 레이블에서 레이블을 할당할 수 있도록 MPLS 레이블 범위를 구성합니다.[edit] set system host-name R2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 1 family inet address 10.0.0.2/24 set interfaces ge-0/0/0 unit 2 family inet address 10.0.0.12/24 set interfaces ge-0/0/1 unit 1 family inet address 10.2.2.1/24 set interfaces ge-0/0/1 unit 2 family inet address 10.2.2.11/24
[edit] set interfaces lo0 unit 0 family inet address 10.1.255.2/32 set interfaces lo0 unit 0 family mpls
[edit] set routing-options router-id 10.1.255.2 set routing-options autonomous-system 100
[edit] set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 2 vlan-id 2 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 2 vlan-id 2
[edit] set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 5 set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 5 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 5 set interfaces ge-0/0/1 unit 2 family mpls maximum-labels 5
[edit] set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement pplb then accept set routing-options forwarding-table export pplb
[edit] set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.255.2/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then accept
[edit] set protocols mpls traffic-engineering set protocols mpls label-range srgb-label-range 800000 879999 set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable
하위 인터페이스(R2에서 R1로, R2에서 R3로 연결)에서 를
ospf-instancemetro-edge구성합니다.[edit] set protocols ospf-instance metro-edge area 0.0.0.0 interface all
OSPF
metro-edge인스턴스가 접두사 sids와 함께 세그먼트 라우팅을 사용하도록 활성화합니다.[edit] set protocols ospf-instance metro-edge source-packet-routing prefix-segment prefix-sid
- 노드 세그먼트의 IPv4 인덱스 값을 구성합니다.
[edit] set protocols ospf-instance metro-edge source-packet-routing node-segment ipv4-index 1
OSPF
metro-edge인스턴스의 루프백 주소를 패시브로 구성하고 관리 인터페이스(fxp0.0)를 비활성화합니다.[edit] set protocols ospf-instance metro-edge area 0.0.0.0 interface lo0.0 passive set protocols ospf-instance metro-edge area 0.0.0.0 interface fxp0.0 disable
검증
| 명령 | 검증 작업 |
|---|---|
| show route protocol ospf table inet.0 extensive |
|
| ospf 스프링 sid-database igp-instance 표시 igp-instance | OSPF 인스턴스에 대한 OSPF 세그먼트 라우팅 데이터베이스를 확인합니다. |
| ospf neighbor igp-instance 표시 igp-instance | 특정 OSPF 인스턴스에 대한 neighbor를 확인합니다. |
| ospf 데이터베이스 igp-instance 표시 igp-instance | IGP 인스턴스와 연결된 OSPF LSDB(Link-State Database)에서 IGP 광고 항목을 확인합니다. |
| ospf 인터페이스 igp-인스턴스 표시 igp-instance | IGP 인스턴스에 매핑된 인터페이스를 확인합니다. |
| ospf 경로 igp-instance 표시 igp-instance | R1과 R3의 경로 및 최단 경로 우선(OSPF) 인스턴스 매핑 정보를 확인합니다. |
라우팅 테이블 확인
목적
라우팅 테이블의 경로 항목을 확인합니다
작업
운영 모드에서 명령을 실행합니다 show route table inet.0 route-destination address extensive .
user@R2>show route protocol ospf table inet.0 10.1.255.1 extensive
inet.0: 19 destinations, 21 routes (19 active, 0 holddown, 0 hidden)
10.1.255.1/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 10.1.255.1/32 -> {list:10.0.0.1, 10.0.0.11}
*OSPF Preference: 10/10
Next hop type: Router, Next hop index: 0
Address: 0x8b32234
Next-hop reference count: 2, Next-hop session id: 0
Kernel Table Id: 0
Next hop: 10.0.0.1 via ge-0/0/0.1, selected
Session Id: 0
Next hop: 10.0.0.11 via ge-0/0/0.2
Session Id: 0
State: <Active Int>
Local AS: 100
Age: 1w4d 16:01:19 Metric: 1
Validation State: unverified
Area: 0.0.0.0
Task: OSPF-metro-edge
Announcement bits (1): 0-KRT
AS path: I
Thread: junos-main
user@R2>show route protocol ospf table inet.0 10.1.255.3 extensive
inet.0: 19 destinations, 21 routes (19 active, 0 holddown, 0 hidden)
10.1.255.3/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 10.1.255.3/32 -> {list:10.2.2.2, 10.2.2.12}
*OSPF Preference: 10/10
Next hop type: Router, Next hop index: 0
Address: 0x8b316f4
Next-hop reference count: 2, Next-hop session id: 0
Kernel Table Id: 0
Next hop: 10.2.2.2 via ge-0/0/1.1, selected
Session Id: 0
Next hop: 10.2.2.12 via ge-0/0/1.2
Session Id: 0
State: <Active Int>
Local AS: 100
Age: 1w4d 16:13:55 Metric: 1
Validation State: unverified
Area: 0.0.0.0
Task: OSPF-metro-edge
Announcement bits (1): 0-KRT
AS path: I
Thread: junos-main
의미
출력은 R1(10.1.255.1)의 루프백 주소와 R3(10.1.255.2)의 루프백 주소가 R2에서 구성된 대로 OSPF igp-instance 메트로 에지 에 매핑되는 것을 보여줍니다.
OSPF 보급 확인
목적
IGP 인스턴스와 연결된 OSPF LSDB(Link-State Database)에서 IGP 광고 항목을 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show ospf database igp-instance igp-instance .
user@R2>show ospf database igp-instance metro-edge OSPF database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router 10.1.255.1 10.1.255.1 0x80000013 1110 0x22 0xe6e9 72 Router *10.1.255.2 10.1.255.2 0x80000015 1084 0x22 0x7be2 96 Router 10.1.255.3 10.1.255.3 0x80000013 1585 0x22 0x491 72 Network *10.0.0.2 10.1.255.2 0x80000010 2959 0x22 0x6791 32 Network *10.0.0.12 10.1.255.2 0x80000010 2209 0x22 0x3eb 32 Network 10.2.2.2 10.1.255.3 0x80000010 2085 0x22 0x4ba6 32 Network 10.2.2.12 10.1.255.3 0x80000010 1085 0x22 0xe601 32 OpaqArea 7.0.0.1 10.1.255.1 0x80000012 193 0x22 0x8c0 44 OpaqArea*7.0.0.1 10.1.255.2 0x80000012 511 0x22 0x2a9b 44 OpaqArea 7.0.0.1 10.1.255.3 0x80000012 585 0x22 0x4c76 44 OpaqArea 8.0.0.1 10.1.255.1 0x80000010 2610 0x22 0x4683 48 OpaqArea*8.0.0.1 10.1.255.2 0x80000010 2584 0x22 0xac01 52 OpaqArea 8.0.0.1 10.1.255.3 0x80000010 2584 0x22 0x7d06 52 OpaqArea 8.0.0.2 10.1.255.1 0x80000010 1860 0x22 0x4f55 48 OpaqArea*8.0.0.2 10.1.255.2 0x80000011 334 0x22 0xf393 52 OpaqArea 8.0.0.2 10.1.255.3 0x80000011 84 0x22 0xc498 52 OpaqArea*8.0.0.3 10.1.255.2 0x80000010 1834 0x22 0x445a 48 OpaqArea*8.0.0.4 10.1.255.2 0x80000010 1459 0x22 0x4d2c 48
의미
OSPF 라우팅 테이블의 경로 확인
목적
OSPF 라우팅 테이블의 경로를 확인합니다
작업
운영 모드에서 명령을 실행합니다 show ospf route .
user@R2>show ospf route igp-instance metro-edge
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
10.1.255.1 Intra Router IP 1 ge-0/0/0.1 10.0.0.1
ge-0/0/0.2 10.0.0.11
10.1.255.3 Intra Router IP 1 ge-0/0/1.1 10.2.2.2
ge-0/0/1.2 10.2.2.12
10.0.0.0/24 Intra Network IP 1 ge-0/0/0.1
ge-0/0/0.2
10.1.255.1/32 Intra Network IP 1 ge-0/0/0.1 10.0.0.1
ge-0/0/0.2 10.0.0.11
10.1.255.2/32 Intra Network IP 0 lo0.0
10.1.255.3/32 Intra Network IP 1 ge-0/0/1.1 10.2.2.2
ge-0/0/1.2 10.2.2.12
10.2.2.0/24 Intra Network IP 1 ge-0/0/1.1
ge-0/0/1.2
299840 Intra Network Mpls 0 ge-0/0/0.2 10.0.0.11
299840 (S=0) Intra Network Mpls 0 ge-0/0/0.2 10.0.0.11
299856 Intra Network Mpls 0 ge-0/0/0.1 10.0.0.1
299856 (S=0) Intra Network Mpls 0 ge-0/0/0.1 10.0.0.1
299904 Intra Network Mpls 0 ge-0/0/1.2 10.2.2.12
299904 (S=0) Intra Network Mpls 0 ge-0/0/1.2 10.2.2.12
299920 Intra Network Mpls 0 ge-0/0/1.1 10.2.2.2
299920 (S=0) Intra Network Mpls 0 ge-0/0/1.1 10.2.2.2
의미
R2의 출력은 R1과 R3의 루프백 주소와 최단 경로 우선(OSPF) 인스턴스 매핑 정보를 보여줍니다.
OSPF 세그먼트 라우팅 데이터베이스 확인
목적
OSPF 인스턴스 메트로-에지에 대한 OSPF 세그먼트 라우팅 데이터베이스를 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show ospf spring sid-database igp-instance igp-instance .
user@R2>show ospf spring sid-database igp-instance metro-edge OSPF database, Area 0.0.0.0 SID Prefix Advertised-by Route-type 1000 10.1.255.1/32 10.1.255.1 Intra-Area 1001 10.1.255.2/32 10.1.255.2 Intra-Area 1002 10.1.255.3/32 10.1.255.3 Intra-Area
의미
출력은 OSPF(메트로-에지)가 접두사 SID를 보급하는 여러 인스턴스를 보여줍니다.
OSPF 인터페이스 확인
목적
OSPF 인스턴스 활성화 인터페이스에 대한 상태 정보를 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show ospf interface igp-instance igp-instance .
user@R2>show ospf interface igp-instance metro-edge Interface State Area DR ID BDR ID Nbrs ge-0/0/0.1 DR 0.0.0.0 10.1.255.2 10.1.255.1 1 ge-0/0/0.2 DR 0.0.0.0 10.1.255.2 10.1.255.1 1 ge-0/0/1.1 DR 0.0.0.0 10.1.255.2 10.1.255.3 1 ge-0/0/1.2 DR 0.0.0.0 10.1.255.2 10.1.255.3 1 lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0 lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0
의미
출력은 OSPF 인스턴스(메트로 에지)에 매핑된 R2의 하위 인터페이스를 보여줍니다.
OSPF 인접 라우터 확인
목적
구성된 링크 간의 인접성을 확인합니다.
작업
운영 모드에서 명령을 실행합니다 show ospf neighbor igp-instance igp-instance .
user@R2>show ospf neighbor igp-instance metro-edge Address Interface State ID Pri Dead 10.0.0.1 ge-0/0/0.1 Full 10.1.255.1 128 35 10.0.0.11 ge-0/0/0.2 Full 10.1.255.1 128 39 10.2.2.2 ge-0/0/1.1 Full 10.1.255.3 128 33 10.2.2.12 ge-0/0/1.2 Full 10.1.255.3 128 36
의미
디바이스 R2는 디바이스 R1 및 디바이스 R3과 인접성을 설정했으며 상태 출력 필드 Full에 표시된 바와 같이 입니다.
부록 1: 모든 디바이스에서 명령 설정
이 예제를 빠르게 구성하려면 다음 명령을 복사하여 텍스트 파일에 붙여 넣고 줄 바꿈을 제거한 다음 네트워크 구성과 일치하는 데 필요한 세부 정보를 변경한 다음 명령을 복사하여 [edit] 계층 수준의 CLI에 붙여넣습니다.
R1
set system host-name R1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.0.1/24 set interfaces ge-0/0/0 unit 2 family inet address 10.0.0.11/24 set interfaces ge-0/0/0 unit 2 enable set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 2 vlan-id 2 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 5 set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 5 set interfaces lo0 unit 0 family inet address 10.1.255.1/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement pplb then accept set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.255.1/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1000 set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 10.1.255.1 set routing-options autonomous-system 100 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range srgb-label-range 800000 879999 set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf-instance metro-edge source-packet-routing prefix-segment prefix-sid set protocols ospf-instance metro-edge source-packet-routing node-segment ipv4-index 0 set protocols ospf-instance metro-edge area 0.0.0.0 interface all set protocols ospf-instance metro-edge area 0.0.0.0 interface lo0.0 passive set protocols ospf-instance metro-edge area 0.0.0.0 interface fxp0.0 disable
R2
set system host-name R2 set interfaces ge-0/0/0 unit 1 family inet address 10.0.0.2/24 set interfaces ge-0/0/0 unit 2 family inet address 10.0.0.12/24 set interfaces ge-0/0/1 unit 1 family inet address 10.2.2.1/24 set interfaces ge-0/0/1 unit 2 family inet address 10.2.2.11/24 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 2 vlan-id 2 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 2 vlan-id 2 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 5 set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 5 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 5 set interfaces ge-0/0/1 unit 2 family mpls maximum-labels 5 set interfaces lo0 unit 0 family inet address 10.1.255.2/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement pplb then accept set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.255.2/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 10.1.255.2 set routing-options autonomous-system 100 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range srgb-label-range 800000 879999 set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf-instance metro-edge source-packet-routing prefix-segment prefix-sid set protocols ospf-instance metro-edge source-packet-routing node-segment ipv4-index 1 set protocols ospf-instance metro-edge area 0.0.0.0 interface all set protocols ospf-instance metro-edge area 0.0.0.0 interface lo0.0 passive set protocols ospf-instance metro-edge area 0.0.0.0 interface fxp0.0 disable
R3
set system host-name R3 set interfaces ge-0/0/0 unit 1 family inet address 10.2.2.2/24 set interfaces ge-0/0/0 unit 2 family inet address 10.2.2.12/24 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 2 vlan-id 2 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 5 set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 5 set interfaces lo0 unit 0 family inet address 10.1.255.3/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement pplb then accept set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.255.3/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 10.1.255.3 set routing-options autonomous-system 100 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range srgb-label-range 800000 879999 set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf-instance metro-edge source-packet-routing prefix-segment prefix-sid set protocols ospf-instance metro-edge source-packet-routing node-segment ipv4-index 2 set protocols ospf-instance metro-edge area 0.0.0.0 interface lo0.0 passive set protocols ospf-instance metro-edge area 0.0.0.0 interface all set protocols ospf-instance metro-edge area 0.0.0.0 interface fxp0.0 disable
변경 내역 표
기능 지원은 사용 중인 플랫폼과 릴리스에 따라 결정됩니다. 기능 탐색기를 사용하여 플랫폼에서 기능이 지원되는지 확인합니다.