예: 네트워크 속도를 높이기 위해 IS-IS를 위해 SPRING에서 Anycast 및 Prefix Segment 구성
이 예는 네트워킹(SPRING) 또는 세그먼트 라우팅(SR)의 소스 패킷 라우팅에서 접두사 세그먼트, 세그먼트 라우팅 글로벌 블록(SRGB), Adjacency Segment Hold Time 및 명시적 null flag를 구성하는 방법을 보여줍니다. 이 구성은 네트워크 속도를 증가시켜 네트워크를 단순화하는 데 도움이 됩니다.
요구 사항
이 예는 다음과 같은 하드웨어 및 소프트웨어 구성 요소를 사용합니다.
MX 시리즈 라우터 8개.
Junos OS 모든 디바이스에서 릴리스 17.2 이상 실행 중입니다.
SPRING에서 접두사 세그먼트를 구성하기 전에 라우팅 및 신호 전송 프로토콜을 구성해야 합니다.
개요
Junos OS 릴리스 17.2 이상에서는 정책을 구성하여 IS-IS에 보급되는 접두사에 접두사 세그먼트 식별자(SID) 및 노드 SID를 제공할 수 있습니다. 접두사 세그먼트 인덱스는 특정 접두사에 할당된 인덱스입니다. 이는 네트워크의 다른 모든 원격 라우터에서 접두사들을 해당 세그먼트 라우팅 글로벌 블록(SRGB)으로 인덱싱하여 세그먼트 식별자를 도출하고 이 접두사로 향하는 트래픽을 포워딩하는 데 사용됩니다. 접두사 SID는 IPv4 및 IPv6 접두사 모두를 지원합니다. IGP 애니캐스트 세그먼트는 라우터 집합을 식별하는 IGP 접두사 세그먼트입니다. 애니캐스트 세그먼트 또는 애니캐스트 SID는 애니캐스트 세트의 가장 가까운 노드로 향하는 equal-cost multipath-aware shortest-path를 기반으로 포워딩을 적용합니다. 애니캐스트 그룹 내에서 모든 라우터는 동일한 SID 값을 가진 동일한 접두사에 대해 광고합니다. IS-IS 프로토콜은 인접성, 수준 및 주소 패밀리(각각 IPv4 및 IPv6용)당 Adjacency Segment를 생성합니다.
토폴로지
그림 1은 라우터 R0에서 R7까지 SPRING에서 구성된 SRGB, 접두사 세그먼트 및 Adjacency Hold Time을 보여줍니다.
구성
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브러브를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 바꾸고 계층 수준에서 명령을 CLI [edit] 로 복사해 붙여 넣은 다음, 구성 모드에서 을(를) 입력 commit
합니다.
이 토폴로지에서 IPv4 접두사 시연. IPv6 접두사에도 동일한 것이 적용됩니다.
R0
set chassis network-services enhanced-ip 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 1 family inet address 10.0.1.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 1 vlan-id 1 set interfaces ge-0/0/2 unit 1 family inet address 192.10.12.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 5 set interfaces lo0 unit 0 family inet address 203.0.113.1/24 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set routing-options autonomous-system 100 set routing-options router-id 203.0.113.1 set routing-options forwarding-table export pplb set routing-options forwarding-table chained-composite-next-hop ingress l3vpn set protocols rsvp interface all link-protection set protocols mpls traffic-engineering set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis graceful-restart restart-duration 30 set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/2.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.1/24 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 prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R1
set chassis network-services enhanced-ip 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 1 family inet address 192.0.2.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls 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 1 family inet address 10.0.2.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.2/24 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set routing-options router-id 203.0.113.2 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls traffic-engineering set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options per-prefix-calculation set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering family inet shortcuts set protocols isis graceful-restart restart-duration 30 set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis label-switched-path to_r2 set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.2/24 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 prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement setpref from protocol isis set policy-options policy-statement setpref from level 2 set policy-options policy-statement setpref then preference 11 set policy-options policy-statement setpref then local-preference 11 set policy-options policy-statement setpref then accept
R2
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 encapsulation flexible-ethernet-services set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.2.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 encapsulation flexible-ethernet-services set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.3.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.3/24 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set routing-options router-id 203.0.113.3 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls label-switched-path to_r1 to 203.0.113.2 set protocols mpls label-switched-path to_r1 primary path1 deactivate protocols mpls label-switched-path to_r1 set protocols mpls path 10.0.2.1 set protocols mpls path path1 10.0.2.1 strict set protocols mpls interface all set protocols isis export leakl2tol1 set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis label-switched-path to_r1 set policy-options policy-statement leakl2tol1 from protocol isis set policy-options policy-statement leakl2tol1 from level 2 set policy-options policy-statement leakl2tol1 to protocol isis set policy-options policy-statement leakl2tol1 to level 1 set policy-options policy-statement leakl2tol1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.3/24 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 prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R3
set chassis network-services enhanced-ip 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 1 family inet address 10-.0.3.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls 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 1 family inet address 10.0.4.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.4/24 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set routing-options router-id 203.0.113.4 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.4/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R4
set chassis network-services enhanced-ip 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 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls 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 1 family inet address 10.0.1.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.5/24 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set routing-options router-id 203.0.113.5 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.5/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R5
set chassis network-services enhanced-ip 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 1 family inet address 10.0.5.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls 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 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.6/24 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set routing-options router-id 203.0.113.6 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export leakl2tol1 set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement leakl2tol1 from protocol isis set policy-options policy-statement leakl2tol1 from level 2 set policy-options policy-statement leakl2tol1 to protocol isis set policy-options policy-statement leakl2tol1 to level 1 set policy-options policy-statement leakl2tol1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.6/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R6
set chassis network-services enhanced-ip 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 1 family inet address 10.0.5.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls 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 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.7/24 set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 set routing-options router-id 203.0.113.7 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.7/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1006 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R7
set chassis network-services enhanced-ip 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 1 family inet address 10.0.4.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 1 vlan-id 1 set interfaces ge-0/0/2 unit 1 family inet address 10.0.7.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.8/24 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set routing-options router-id 203.0.113.8 set routing-options autonomous-system 100 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls explicit-null set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface ge-0/0/2.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.8/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1007 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement setpref from protocol isis set policy-options policy-statement setpref from level 2 set policy-options policy-statement setpref then preference 11 set policy-options policy-statement setpref then local-preference 11 set policy-options policy-statement setpref then accept set policy-options policy-statement stat term 1 from protocol static set policy-options policy-statement stat term 1 then accept
라우터 R4 구성
단계별 절차
다음 예는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 대한 정보는 Junos OS CLI 사용자 가이드의 구성 모드에서 CLI 편집기 사용을 참조하십시오.
다음을 참조하여 라우터 R4를 구성하십시오.
각 라우터에 대한 적절한 인터페이스 이름, 주소 및 기타 매개 변수를 수정한 후 SPRING 도메인의 모든 라우터에 이 절차를 반복합니다.
SRGB 기능은 MPC 및 MIC 인터페이스만 있는 라우터에서 지원되므로 MX 시리즈 라우터에서 향상된 IP 모드를 구성합니다. 이 구성을 커밋한 후 시스템 재부팅이 필요합니다.
[edit chassis] user@R4# set network-services enhanced-ip
인터페이스를 구성합니다.
[edit interfaces] user@R4# set ge-0/0/0 vlan-tagging user@R4# set ge-0/0/0 unit 1 vlan-id 1 user@R4# set ge-0/0/0 unit 1 family inet address 10.0.6.2/24 user@R4# set ge-0/0/0 unit 1 family iso user@R4# set ge-0/0/0 unit 1 family mpls user@R4# set ge-0/0/1 vlan-tagging user@R4# set ge-0/0/1 unit 1 vlan-id 1 user@R4# set ge-0/0/1 unit 1 family inet address 10.0.1.2/24 user@R4# set ge-0/0/1 unit 1 family iso user@R4# set ge-0/0/1 unit 1 family mpls user@R4# set lo0 unit 0 family inet address 203.0.113.5/24 user@R4# set lo0 unit 0 family iso address 49.0001.0004.0404.0400
라우팅 옵션에 대한 라우터 ID를 구성합니다.
[edit routing-options] user@R4# set router-id 203.0.113.5
포워딩 테이블 대한 내보내기 정책을 구성합니다.
[edit routing-options] user@R4# set forwarding-table export pplb
모든 인터페이스에서 RSVP 링크 보호를 활성화합니다.
[edit protocols rsvp] user@R4# set interface all link-protection
MPLS 인터페이스를 구성합니다.
[edit protocols mpls] user@R4# set interface all
IS-IS 프로토콜에 대한 내보내기 정책을 구성합니다.
[edit protocols isis] user@R4# set export prefix-sid
원격 LFA(loop-free alternate) 백업 다음 홉을 계산하고 IS-IS 프로토콜을 보호하기 위해 SPRING 라우팅 경로를 사용하도록 백업 최단 경로 우선 옵션을 구성합니다.
[edit protocols isis] user@R4# set backup-spf-options remote-backup-calculation user@R4# set backup-spf-options use-source-packet-routing
IS-IS 프로토콜에 대한 SPRING에서 Adjacency Segment Hold Time을 구성합니다.
[edit protocols isis] user@R4# set source-packet-routing adjacency-segment hold-time 240000
IS-IS 프로토콜에 대한 SPRING에서 세그먼트 라우팅 글로벌 블록(SRGB)에 대한 시작 레이블 및 인덱스 범위를 구성합니다.
[edit protocols isis] user@R4# set source-packet-routing srgb start-label 800000 user@R4# set source-packet-routing srgb index-range 40000
IS-IS 프로토콜에 대해 SPRING에서 명시적 null을 구성합니다.
[edit protocols isis] user@R4# set source-packet-routing explicit-null
인터페이스를 구성하여 링크 및 노드 장애를 모두 보호합니다.
[edit protocols isis] user@R4# set interface ge-0/0/0.1 node-link-protection user@R4# set interface ge-0/0/1.1 node-link-protection user@R4# set interface all node-link-protection
관리 인터페이스를 비활성화하고 IS-IS 프로토콜에 대한 패시브로 루프백 주소를 구성합니다.
[edit protocols isis] user@R4# set interface fxp0.0 disable user@R4# set interface lo0.0 passive
라우팅 정책 패킷당 로드 밸런싱을 구성합니다.
[edit policy-options policy-statement pplb] user@R4# set then load-balance per-packet
라우팅 정책 용어에 대한 경로 필터를 구성합니다.
[edit policy-options policy-statement prefix-sid] user@R4# set term 1 from route-filter 203.0.113.5/24 exact
라우팅 정책 용어에 대한 접두사 세그먼트의 인덱스 및 노드 세그먼트를 구성합니다.
[edit policy-options policy-statement prefix-sid] user@R4# set term 1 then prefix-segment index 1004 user@R4# set term 1 then prefix-segment node-segment user@R4# set term 1 then accept
결과
구성 모드에서 , , show interfaces, show protocolsshow policy-options및 show routing-options 명령을 입력show chassis하여 구성을 확인합니다. 출력에 의도한 구성이 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정합니다.
user@R4# show chassis network-services enhanced-ip;
user@R4# show interfaces ge-0/0/0 { vlan-tagging; unit 1 { vlan-id 1; family inet { address 10.0.6.2/24; } family iso; } } ge-0/0/1 { vlan-tagging; unit 1{ vlan-id 1; family inet { address 10.0.1.2/24; } family iso; family mpls ; } } lo0 { unit 0 { family inet { address 203.0.113.5/24; } family iso { address 49.0001.0004.0404.0400; } } }
user@R4# show protocols rsvp { interface all { link-protection; } } mpls { interface all; } isis { export prefix-sid; backup-spf-options { remote-backup-calculation; use-source-packet-routing; } source-packet-routing { adjacency-segment hold-time 240000; srgb start-label 800000 index-range 40000; explicit-null; } interface ge-0/0/0.1 { node-link-protection; } interface ge-0/0/1.1 { node-link-protection; } interface all { node-link-protection; } interface fxp0.0 { disable; } interface lo0.0 { passive; } }
user@R4# show policy-options policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 203.0.113.5/24 exact; } then { prefix-segment index 1004 node-segment; accept; } } }
user@R4# show routing-options router-id 203.0.113.5; forwarding-table { export pplb; }
확인
구성이 제대로 작동하는지 확인합니다.
- IS-IS 인접 경로 확인
- IS-IS 개요 정보 확인
- IS-IS 프로토콜에 대한 세그먼트 라우팅 경로 항목 확인
- IS-IS 프로토콜에 대한 MPLS 세그먼트 라우팅 경로 항목 확인
IS-IS 인접 경로 확인
목적
라우터 R4의 인접성을 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show isis adjacency detail
.
user@R4> show isis adjacency detail
R5
Interface: ge-0/0/0.0, Level: 1, State: Up, Expires in 25 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:55:22 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:e:2b:0
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R5.02, IP addresses: 10.0.6.2
Level 1 IPv4 Adj-SID: 16
R5
Interface: ge-0/0/0.0, Level: 2, State: Up, Expires in 25 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:55:22 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:e:2b:0
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R5.02, IP addresses: 10.0.6.2
Level 2 IPv4 Adj-SID: 17
R0
Interface: ge-0/0/1.0, Level: 1, State: Up, Expires in 7 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:49:06 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:5e:8e:1
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R1.02, IP addresses: 10.0.1.1
Level 1 IPv4 Adj-SID: 18
R0
Interface: ge-0/0/1.0, Level: 2, State: Up, Expires in 8 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:49:06 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:5e:8e:1
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R1.02, IP addresses: 10.0.1.1
Level 2 IPv4 Adj-SID: 19
의미
출력에는 라우터 R0 및 R5가 있는 라우터 R4의 IS-IS 인접 세부 정보가 표시됩니다.
IS-IS 개요 정보 확인
목적
라우터 R4의 IS-IS 개요 정보를 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show isis overview
.
user@R4> show isis overview
Instance: master
Router ID: 203.0.113.5
Hostname: R4
Sysid: 0100.0404.0404
Areaid: 47.0005.80ff.f800.0000.0108.0001
Adjacency holddown: enabled
Maximum Areas: 3
LSP life time: 1200
Attached bit evaluation: enabled
SPF delay: 200 msec, SPF holddown: 5000 msec, SPF rapid runs: 3
IPv4 is enabled, IPv6 is enabled, SPRING based MPLS is enabled
Traffic engineering: enabled
Restart: Disabled
Helper mode: Enabled
Layer2-map: Disabled
Source Packet Routing (SPRING): Enabled
SRGB Config Range:
SRGB Start-Label : 800000, SRGB Index-Range : 40000
SRGB Block Allocation: Success
SRGB Start Index : 800000, SRGB Size : 40000, Label-Range: [ 800000, 839999 ]
Node Segments: Disabled
Level 1
Internal route preference: 15
External route preference: 160
Prefix export count: 0
Wide metrics are enabled, Narrow metrics are enabled
Source Packet Routing is enabled
Level 2
Internal route preference: 18
External route preference: 165
Prefix export count: 0
Wide metrics are enabled, Narrow metrics are enabled
Source Packet Routing is enabled
의미
출력에는 라우터 R4의 SPRING 세부 정보와 함께 라우팅 인스턴스의 IS-IS 개요 정보가 표시됩니다.
IS-IS 프로토콜에 대한 세그먼트 라우팅 경로 항목 확인
목적
IS-IS 프로토콜에 대한 라우팅 테이블 inet.3의 세그먼트 라우팅 경로 항목을 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show route table inet.3 protocol isis
.
user@R4> show route table inet.3 protocol isis
inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
203.0.113.0/24 *[L-ISIS/14] 00:09:31, metric 10
to 10.0.6.2 via ge-0/0/0.0, Push 0
> to 10.0.1.1 via ge-0/0/1.0, Push 0
203.0.113.2/32 *[L-ISIS/14] 00:02:44, metric 20
> to 10.0.1.1 via ge-0/0/1.0, Push 801001
의미
출력은 IS-IS 프로토콜에 대한 라우팅 테이블 inet.3의 세그먼트 라우팅 경로를 보여줍니다.
IS-IS 프로토콜에 대한 MPLS 세그먼트 라우팅 경로 항목 확인
목적
IS-IS 프로토콜에 대한 MPLS 세그먼트 라우팅 경로 항목을 확인합니다.
작업
운영 모드에서 명령을 입력합니다 show route table mpls.0 protocol isis
.
user@R4> show route table mpls.0 protocol isis
mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 2d 01:56:20, metric 1
to table inet.0
0(S=0) *[MPLS/0] 2d 01:56:20, metric 1
to table mpls.0
1 *[MPLS/0] 2d 01:56:20, metric 1
Receive
2 *[MPLS/0] 2d 01:56:20, metric 1
to table inet6.0
2(S=0) *[MPLS/0] 2d 01:56:20, metric 1
to table mpls.0
13 *[MPLS/0] 2d 01:56:20, metric 1
Receive
16 *[L-ISIS/14] 2d 01:52:56, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
16(S=0) *[L-ISIS/14] 00:01:34, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
17 *[L-ISIS/14] 2d 01:52:56, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
17(S=0) *[L-ISIS/14] 00:10:49, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
18 *[L-ISIS/14] 2d 01:46:40, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
18(S=0) *[L-ISIS/14] 00:01:34, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
19 *[L-ISIS/14] 2d 01:46:40, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
19(S=0) *[L-ISIS/14] 00:10:49, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
801000 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801000
> to 10.0.1.1 via ge-0/0/1.0, Swap 0
801000(S=0) *[L-ISIS/14] 00:01:34, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801000
> to 10.0.1.1 via ge-0/0/1.0, Pop
801001 *[L-ISIS/14] 2d 01:46:14, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801001
> to 10.0.1.1 via ge-0/0/1.0, Swap 801001
801002 *[L-ISIS/14] 1d 21:57:31, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801002
> to 10.0.1.1 via ge-0/0/1.0, Swap 801002
801003 *[L-ISIS/14] 1d 21:56:57, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801003
> to 10.0.1.1 via ge-0/0/1.0, Swap 801003
801005 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 0
> to 10.0.1.1 via ge-0/0/1.0, Swap 801005
801005(S=0) *[L-ISIS/14] 00:01:34, metric 10
to 10.0.6.2 via ge-0/0/0.0, Pop
> to 10.0.1.1 via ge-0/0/1.0, Swap 801005
801006 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801006
> to 10.0.1.1 via ge-0/0/1.0, Swap 801006
801007 *[L-ISIS/14] 1d 21:56:24, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801007
> to 10.0.1.1 via ge-0/0/1.0, Swap 801007
의미
출력은 프로토콜 IS-IS에 대한 MPLS 세그먼트 라우팅 경로 항목을 보여줍니다.