Dell Networking SONiC: OSPF(Open Shortest Path First)

Resumen: 이 문서에서는 Dell Networking SONiC의 OSPF(Open Shortest Path First)에 대해 설명합니다. 이 문서에서는 Dell SONiC 4.1을 실행하는 스위치를 사용합니다.

Este artículo se aplica a Este artículo no se aplica a Este artículo no está vinculado a ningún producto específico. No se identifican todas las versiones del producto en este artículo.

Instrucciones

 
필수 구성 요소
표준 인터페이스 명명은 개념을 설명하는 데 사용됩니다. Dell 문서 202172 Dell Networking S-Series: 기본 인터페이스 구성 - Sonic 4.0을 참조하여 인터페이스 네이밍에 관한 자세한 정보를 알아보십시오.

인덱스

 

최단 경로부터
열기OSPFv2
활성화인터페이스
에서 OSPF 활성화OSPF 라우터 ID
구성OSPF 영역 수준 인증 유형
구성OSPF 인터페이스 수준 인증 유형 및 키
구성OSPF 패시브 인터페이스
구성OSPF 가상 링크
구성OSPF 영역 바로 가기
구성OSPF RFC 호환성
구성OSPF 인접성 로깅
구성OSPF LSA 타이머
구성OSPF SPF 스로틀 타이머
구성OSPF 최대 메트릭 광고
구성OSPF 경로 거리
구성OSPF 자동 비용 참조 대역폭
구성OSPF 스텁 영역 및 해당 매개변수
구성OSPF 영역 간 요약 경로 필터
구성OSPF 경로 재배포
구성OSPF 기본 경로 발신

구성OSPF 인터페이스 매개변수
OSPF 운영 데이터 표시 명령
OSPFv2 graceful restart

 

최단 경로부터 열기

 

OSPF(Open Shortest Path First Protocol)는 RFC2328에 설명된 링크 상태 IGRP(Interior Gateway Routing Protocol)입니다.

OSPF는 LSA(Link State Advertisement)라는 메시지에서 링크 상태 정보를 설명하며, 이 정보는 플러딩이라는 프로세스를 통해 링크 상태 라우팅 도메인의 다른 모든 라우터로 전파됩니다. 따라서 각 OSPF 라우터는 모든 링크 상태 메시지의 LSDB(Link State Database)를 구축합니다. LSDB의 이 LSA 컬렉션에서 각 라우터는 Edgar Djikstras Shortest Path First 알고리즘을 사용하여 몇 가지 공통 메트릭을 기반으로 다른 라우터에 대한 최단 경로를 계산할 수 있습니다.

Enterprise SONiC은 라우팅 프로토콜을 실행하는 데 FRR 패키지를 사용합니다. OSPFv2는 맞춤형 FRR 소프트웨어 패키지에서도 채택됩니다. OPSFv2 라우팅 데몬은 BGP, 고정 경로와 같은 다른 라우팅 프로토콜 디먼과 함께 BGP Docker 컨테이너 내에 상주합니다.

지원되는 OSPFv2 기능:

  • 이더넷, 루프백, VLAN 및 포트 채널 IPv4 인터페이스의 OSPF 구성
  • 기본 및 사용자 정의 VRF에 대한 OSPFv2 구성
  • 다중 OSPF 영역 및 stub 영역
  • Type-1-Type-5 LSA 
  • 가상 링크 및 패시브 인터페이스
  • OSPF 인터페이스 세션의 BFD
  • 일반 텍스트 및 MD(Message Digest) 암호 암호화
  • Type-3 요약 LSA 접두사 필터링 및 대체
  • 경로 유형 BGP, 정적, 연결됨, 커널 및 기본 경로에서 OSPFv2로의 경로 재배포
  • 경로 재배포의 경로 맵 기반 필터링
  • OSPF ECMP 라우트
  • 50K 외부 라우트 및 5K 내부 라우트 접두사
 

OSPFv2 활성화

VRF 내에서 OSPF 라우터를 구성하여 OSPFv2를 활성화합니다. 이 명령을 사용하여 VRF 내에서 OSPFv2를 구성합니다. OSPF를 구성하면 모드가 OSPF 라우터 컨피그레이션 모드로 변경됩니다.

OSPF를 전역적으로 활성화하려면 기본 vrf:
 

DELLSONiC(conf)# router ospf

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(conf)# router ospf


또는 기본값이 아닌 vrf인 OSPF를 활성화합니다.
 

DELLSONiC(conf)# router ospf vrf Vrf-name
 
  • Vrf-name - VRF 이름 문자열
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(conf)# router ospf vrf Vrf-blue


OSPF 라우터 세부 정보를 봅니다.
 

DELLSONiC# show ip ospf
VRF Name: default
 OSPF Routing Process, Router ID: 10.10.201.1
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 OpaqueCapability flag is disabled
 Graceful-Restart is disabled
 Initial SPF scheduling delay 0 millisec(s)
 Minimum hold time between consecutive SPFs 50 millisec(s)
 Maximum hold time between consecutive SPFs 5000 millisec(s)
 Hold time multiplier is currently 1
 SPF algorithm last executed 1d2h7m51s ago
 Last SPF duration 23 usecs
 SPF timer is inactive
 LSA minimum interval 5000 msecs
 LSA minimum arrival 1000 msecs
 Write Multiplier set to 20
 Refresh timer 10 secs
 Maximum multiple paths(ECMP) supported  256
 Number of external LSA 0. Checksum Sum 0x00000000
 Number of opaque AS LSA 0. Checksum Sum 0x00000000
 Number of areas attached to this router: 1
Area ID: 0.0.0.0 (Backbone)
   Number of interfaces in this area: Total: 1 , Active: 1
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   SPF algorithm executed 4 times
   Number of LSA 3
   Number of router LSA 2. Checksum Sum 0x0000ec6e
   Number of network LSA 1. Checksum Sum 0x00001a25
   Number of summary LSA 0. Checksum Sum 0x00000000
   Number of ASBR summary LSA 0. Checksum Sum 0x00000000
   Number of NSSA LSA 0. Checksum Sum 0x00000000
   Number of opaque link LSA 0. Checksum Sum 0x00000000
   Number of opaque area LSA 0. Checksum Sum 0x00000000 DELLSONiC# show ip ospf vrf Vrf-Blue
VRF Name: Vrf-Blue
 OSPF Routing Process, Router ID: 0.0.0.0
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 OpaqueCapability flag is disabled
{output truncated}


인터페이스에서 OSPF 활성화


인터페이스에서 OSPF를 활성화하기 전에 IP 주소가 있는 IPv4 인터페이스를 구성하고 인터페이스를 필요한 VRF에 바인딩합니다. IPv4 인터페이스에서 OSPF를 활성화하려면 OSPF Area-ID를 인터페이스와 연결해야 합니다. OSPF는 이더넷, VLAN, 포트 채널 및 루프백 인터페이스에서 활성화할 수 있습니다.

두 OSPF 라우터를 연결하는 인터페이스에서 OSPF를 활성화하여 두 OSPF 라우터 간에 OSPF 세션을 활성화합니다. 이러한 연결 인터페이스는 OSPF 라우터가 구성된 VRF 내에 있어야 하며 동일한 Area-ID에 속해야 합니다.

interface mode 명령을 사용하여 IPv4 인터페이스에서 OSPF를 활성화하거나 비활성화합니다. 영역 ID는 10진수 형식의 부호 없는 32비트 정수 또는 점으로 구분된 Ipv4와 같은 형식일 수 있습니다.

다음 두 컨피그레이션 유형을 사용하여 인터페이스에서 OSPF 활성화:

인터페이스 컨피그레이션 모드에서 OSPF 영역을 구성합니다.
 
DELLSONiC(config-if-Vlan100)# ip ospf area area-id
 
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295


예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Vlan 100
DELLSONiC(config-if-Vlan100)# ip ospf area 0
or
DELLSONiC(config-if-Vlan100)# ip ospf area 0.0.0.0

OSPFv2 라우터 컨피그레이션 모드에서 인터페이스의 네트워크 주소를 OSPF 영역에 바인딩하거나 연결하여:
 
참고: network 명령을 사용하여 인터페이스를 OSPF 영역에 연결하는 경우 interface 명령의 IPv4 주소 접두사 길이는 network 문의 접두사 길이보다 크거나 커야 합니다(즉, 더 작은 네트워크).
 
DELLSONiC(config-router-ospf)# network network-prefix area area-id
 
  • network-prefix - A.B.C.D/마스크
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# network 10.10.150.0/24 area 0.0.0.0
or
DELLSONiC(config-router-ospf)# network 10.10.150.0/24 area 0

VRF 내에서 사용자는 위의 컨피그레이션 유형 중 하나를 사용해야 합니다. 즉, VRF 내에서 한 번에 두 컨피그레이션 유형 컨피그레이션을 모두 사용할 수 없습니다.
 

예:

 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Vlan 100
DELLSONiC(config-if-Vlan100)# ip vrf forwarding Vrf-Blue
DELLSONiC(config-if-Vlan100)# ip ospf area 0
or
DELLSONiC(config-if-Vlan100)# ip ospf area 0.0.0.0  
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf vrf Vrf-Blue
DELLSONiC(config-router-ospf)# network 10.10.150.0/24 area 0.0.0.0
DELLSONiC(config-router-ospf)# network 10.10.150.0/24 area 0


OSPF 세션 보기

 
DELLSONiC# show ip ospf neighbor

Neighbor ID  Pri      State        Dead Time         Address             Interface                     RXmtL RqstL DBsmL            
10.10.150.2   1      Full/DR       32.346s         10.10.150.2        Vlan100:10.10.150.1                0     0     0


OSPF 라우터 ID 구성


VRF 내의 모든 OSPF 라우터에 대해 OSPFv2 라우터 식별자를 명시적으로 구성합니다. 라우터 ID 구성은 선택 사항입니다. 라우터 ID를 구성하면 소프트웨어가 해당 라우터 ID를 OSPF 라우터 ID로 선택합니다.
라우터 ID가 구성되지 않을 때마다 라우터 ID가 아래 기본 설정에 따라 선택됩니다.
  • 가장 최근에 사용한 라우터 ID 값; (사용자가 라우터 ID를 구성 해제할 때 발생할 수 있음)
  • 라우터 ID의 FRR 권장 값입니다. FRR은 아래 순서로 라우터 ID를 선택합니다.
    1. FRR 전역 모드 구성 라우터 ID 값(있는 경우)
    2. SONiC 물리적 및 루프백 인터페이스 IPv4 주소 중 가장 높은 IPv4 주소 값.
이 router mode 명령을 사용하여 OSPF 라우터 ID를 구성하거나 구성 해제합니다. 라우터 ID는 10진수 형식의 32비트 부호 없는 정수 또는 점으로 구분된 Ipv4와 같은 형식일 수 있습니다. OSPF 라우터 ID는 전체 OSPF 도메인 내에서 고유해야 합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# ospf router-id router-id

제거하려면:
 
DELLSONiC(config-router-ospf)# no ospf router-id router-id
 
  • router-id - 십진수 또는 점으로 구분된 형식의 OSPF 라우터 ID

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# ospf router-id 1.1.1.1


OSPF 영역 수준 인증 유형 구성


영역별로 OSPFv2 인증 유형을 구성할 수 있습니다. 인증이 구성되면 해당 영역 내에서 구성된 모든 인터페이스가 구성된 인증 유형을 사용합니다. 인터페이스 모드 인증 유형이 구성된 경우 해당 인터페이스 모드 인증 유형이 영역 레벨 구성보다 우선합니다.

사용자가 구성하지 않은 경우 인증 유형은 none입니다. 사용자는 일반 텍스트 인증 유형 또는 메시지 다이제스트 유형 인증을 활성화할 수 있습니다. 영역에 대한 인증 유형이 구성될 때마다 사용자는 해당 영역에 속하는 모든 OSPF 인터페이스에서 해당 인증 키(비밀번호)를 구성해야 합니다.

이 router mode 명령을 사용하여 영역에 대한 OSPF 인증을 구성하거나 구성 해제합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# area area-id authentication [message-digest]

제거하려면:
 
DELLSONiC(config-router-ospf)# no area area-id authentication [message-digest]
 
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295
 
예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# area 0 authentication
or
DELLSONiC(config-router-ospf)# area 0 authentication message-digest


OSPF 인터페이스 수준 인증 유형 및 키 구성


OSPFv2 인증 유형 및 개별 OSPF 인터페이스에 대한 인증 키 또는 암호를 구성합니다. 사용자가 구성하지 않은 경우 인증 유형은 없음입니다. 사용자는 일반 텍스트 인증 유형 또는 메시지 다이제스트 유형 인증을 활성화할 수 있습니다. 인터페이스에 대해 인증 유형을 구성할 때마다 사용자는 해당 OSPF 인터페이스에 해당하는 인증 키(비밀번호)를 구성해야 합니다.

일반 텍스트 인증은 최대 8자까지 가능합니다. MD5(Message Digest) 인증 키는 최대 16자까지 가능합니다. MD5 인증 유형은 인터페이스 및 인터페이스 IP당 최대 255개의 인증 키를 허용할 수 있습니다. 모든 MD5 인증 키는 값 범위가 1에서 255 사이인 인증 키-ID로 고유하게 식별됩니다. 인증 키는 암호화된 형태로 저장됩니다.

이 interface mode 명령을 사용하여 OSPF 메시지 인증을 구성하거나 구성 해제합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf authentication [null | message-digest] [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# ip ospf authentication-key key [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# ip ospf message-digest-key key-id md5 key [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf authentication [null | message-digest] [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# no ip ospf authentication-key [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# no ip ospf message-digest-key key-id md5 [if-ip-addr]
 
  • key - 인증 키 암호(최대 8자 또는 16자 문자열)
  • key-id - MD5 인증 키 식별자(1 - 255)
  • if-ip-addr - 인터페이스 IP 주소 - A.B.C.D

  예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth 1/47
DELLSONiC(config-if-Eth1/47)# ip ospf authentication
DELLSONiC(config-if-Eth1/47)# ip ospf authentication-key dellospfpswrd

DELLSONiC(config-if-Eth1/47)# ip ospf authentication 10.10.3.2
DELLSONiC(config-if-Eth1/47)# ip ospf authentication-key dellospfpswrd 10.10.3.2

DELLSONiC(config-if-Eth1/47)# ip ospf authentication message-digest
DELLSONiC(config-if-Eth1/47)# ip ospf message-digest-key 1 md5 dellospfpswrd
DELLSONiC(config-if-Eth1/47)# ip ospf message-digest-key 2 md5 dellospfpswrd

DELLSONiC(config-if-Eth1/47)# ip ospf authentication null


OSPF 패시브 인터페이스 구성


라우터 모드 구성을 사용하여 OSPFv2 패시브 인터페이스를 구성합니다. 패시브 인터페이스에서 OSPF는 OSPF hello를 트리거하거나 OSPF 세션을 시작하지 않습니다. 패시브 인터페이스는 라우터-LSA에서 스텁 링크로 광고됩니다. 기본적으로 모든 최단 경로 우선(OSPF) 인터페이스를 패시브 인터페이스로 구성하려면 옵션을 입력합니다 passive-interface default . 모든 인터페이스 또는 지정된 인터페이스를 다시 활성화하려면 no passive-interface 명령을 사용합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# passive-interface {default | Eth | Loopback | PortChannel | Vlan } [if-ip-addr]

제거하려면:
 
DELLSONiC(config-router-ospf)# no passive-interface {default | Eth | Loopback | PortChannel | Vlan } [if-ip-addr]
 
  • 이더넷 | 루프백 | 포트 채널 | VLAN - 인터페이스 이름
  • if-ip-addr - 인터페이스 IP 주소 - A.B.C.D

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# passive-interface default
DELLSONiC(config-router-ospf)# no passive-interface Eth 1/47


OSPF 가상 링크 구성


OSPFv2 가상 링크는 비백본 영역에서 백본 라우터를 연결하는 데 사용됩니다. 트랜짓 영역이라고 하는 가상 링크가 구성되는 영역에는 전체 라우팅 정보가 있어야 합니다. 대중 교통 영역은 스텁 영역일 수 없습니다. 양쪽 엔드 백본 라우터에서 가상 링크를 구성해야 합니다.

아래와 같이 OSPF 라우터 모드 컨피그레이션을 사용하여 가상 링크를 구성합니다. 단일 가상 링크 명령은 가상 링크와 관련된 모든 매개변수를 구성하는 옵션을 제공합니다. 가상 링크에는 일반 텍스트 암호, 메시지 다이제스트 기반 암호가 있거나 암호가 전혀 구성되지 않았을 수 있습니다. 일반 텍스트 및 메시지 다이제스트 암호가 구성되면 해당 authentication-key 또는 message-digest-key 매개 변수를 구성해야 합니다. 인증 키(비밀번호)는 구성에서 암호화된 형식으로 저장됩니다. 사용자는 인증 키를 구성하는 동안 항상 실제 암호를 제공해야 합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# area area-id virtual-link remote-id [ authentication [ null | message-digest ] | authentication-key key | message-digest-key key-id md5 key | dead-interval time-value | hello-interval time-value | retransmit-interval time-value | transmit-delay time-value ]

제거하려면:
 
DELLSONiC(config-router-ospf)# no area area-id virtual-link remote-id [ authentication [ null | message-digest ] | authentication-key key | message-digest-key key-id md5 key | dead-interval time-value | hello-interval time-value | retransmit-interval time-value | transmit-delay time-value ]
 
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295
  • remote-id - 점으로 구분된 형식의 원격 라우터 ID - A.B.C.D
  • key - 인증 키 암호(최대 8자 또는 16자 문자열)
  • key-id - MD5 인증 키 식별자(1 - 255)
  • time-value - 초 단위의 시간 간격 값(1 - 65535)
예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9

DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 authentication
DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 authentication-key dellospfpswrd

DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 authentication
message-digest
DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9
message-digest-key 19 md5 dellospfpswrd

DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 authentication null

DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 dead-interval 60
DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 hello-interval 20
DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 retransmit-interval 15
DELLSONiC(config-router-ospf)# area 19 virtual-link 1.1.1.9 transmit-delay 10


OSPF ABR 유형 구성


OSPF 라우터 ABR은 Cisco, IBM, 바로 가기 또는 표준 유형일 수 있습니다. "Cisco" 및 "IBM" 유형은 동일합니다. ABR 동작에 대한 OSPF 표준에서는 백본에 연결할 수 있는 연결된 비백본 영역에 다른 ABR이 있는 경우에도 백본에 대한 링크가 다운된 경우 ABR이 비백본 영역을 통과하는 경로를 고려하는 것을 허용하지 않습니다. 이 제한은 주로 라우팅 루프를 방지하기 위해 존재합니다.

이 릴리스의 기본값인 "Cisco" 또는 "IBM" ABR 유형을 사용하면 이 제한이 해제되어 ABR이 비백본 영역을 통해 다른 ABR에서 학습한 요약을 고려할 수 있으므로 백본 링크가 다운된 경우에만 최후의 수단으로 비백본 영역을 통해 라우팅할 수 있습니다.

ospf abr-type 명령은 아래와 같이 ABR 유형을 구성하거나 구성 해제하는 데 사용됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# ospf abr-type [ cisco | ibm | shortcut | standard ]

제거하려면:
 
DELLSONiC(config-router-ospf)# no ospf abr-type [ cisco | ibm | shortcut | standard ]

예:

 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# ospf abr-type standard


OSPF 영역 바로 가기 구성


OSPF 백본 영역은 비백본 영역 간의 라우팅 배포를 담당합니다. 백본 영역은 연속적이어야 하지만 항상 물리적 인접성을 의미하지는 않습니다. 가상 연결을 사용하여 백본 영역 라우터 연결을 달성할 수 있습니다.

바로 가기 유형을 구성하여 백본 영역에 대한 바로 가기 경로를 활성화 또는 비활성화할 수 있습니다. 바로 가기 유형이 기본값인 경우 ABR에 백본 영역에 대한 링크가 없거나 이 링크가 손실된 경우에만 해당 영역이 바로 가기에 사용됩니다. 바로 가기 유형이 'enable'이면 해당 지역을 통과하는 경로가 더 저렴할 때마다 해당 지역이 지름길로 사용됩니다. 바로 가기 유형이 '사용 안 함'인 경우 ABR은 해당 영역을 경로 바로 가기를 위해 사용하지 않습니다.

OSPF 라우터 컨피그레이션 모드에서 OSPFv2 영역 바로 가기 유형을 구성하거나 구성 해제합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# area area-id shortcut {default | enable | disable}

제거하려면:
 
DELLSONiC(config-router-ospf)# no area area-id shortcut

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# area 1 shortcut enable


OSPF RFC 호환성 구성


RFC1583의 후속 버전인 OSPFv2 RFC2328는 섹션 16.4의 섹션 G.2(변경 사항)에 따라 이전 버전의 OSPFv2에서 가능했던 라우팅 루프를 방지하는 경로 기본 설정 알고리즘의 변경을 제안합니다. 보다 구체적으로 말하자면, 영역 간 경로와 영역 내 백본 경로가 이제 동일한 기본 설정이지만 여전히 둘 다 외부 경로보다 선호됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# compatible rfc1583

제거하려면:
 
DELLSONiC(config-router-ospf)# no compatible rfc1583

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# compatible rfc1583


OSPF 인접성 로깅 구성


인접성 로그를 구성하여 OSPFv2 인접성 상태 로그를 활성화합니다. 선택적 detail 인수를 사용하면 인접 상태의 모든 변경 사항이 표시됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# log-adjacency-changes [detail]

제거하려면:
 
DELLSONiC(config-router-ospf)# no log-adjacency-changes

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# log-adjacency-changes detail
 

OSPF LSA 타이머 구성


OSPFv2 LSA 새로 고침 간격, 최소 간격 및 스로틀 타이머 구성:


 
DELLSONiC(config-router-ospf)# refresh timer refresh-time
DELLSONiC(config-router-ospf)#  timers lsa min-arrival min-arr-time
DELLSONiC(config-router-ospf)#  timers throttle lsa all throttle-time

제거하려면:
 
DELLSONiC(config-router-ospf)# no refresh timer
DELLSONiC(config-router-ospf)# no timers lsa min-arrival
DELLSONiC(config-router-ospf)# no timers throttle lsa all
 
  • refresh-time - 새로 고침 시간(10-1800초)
  • min-arr-time - 최소 도착 시간(0 - 600000밀리초)
  • throttle-time - 스로틀 시간(0 - 5000밀리초)
예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)#  refresh timer 40
DELLSONiC(config-router-ospf)#  timers lsa min-arrival 30
DELLSONiC(config-router-ospf)#  timers throttle lsa all 150


OSPF SPF 스로틀 타이머 구성


OSPFv2 SPF 알고리즘 스로틀 타이머는 SPF가 계산되는 시점과 계산을 트리거한 이벤트 사이의 초기 지연, 초기 보류 시간 및 최대 보류 시간을 설정합니다. 시간은 밀리초 단위로 지정되며 0에서 600000밀리초 사이여야 합니다.

initial-delay는 SPF 계산을 지연할 최소 시간을 지정합니다. 따라서 이전 SPF 계산의 보류 시간 외에 발생하는 이벤트 후 SPF 계산이 지연되는 시간에 영향을 미치며 최소 보류 시간으로도 사용됩니다.

연속 SPF 계산은 항상 최소 '보류 시간'밀리초로 구분됩니다. hold-time은 적응형이며 처음에는 명령으로 구성된 initial-hold-time으로 throttle 설정됩니다. 이전 SPF 계산의 홀드 타임 내에 발생하는 이벤트로 인해 홀드 타임이 초기 보류 시간으로 증가하며, 명령으로 구성된 maximum-hold-time에 의해 throttle 제한됩니다. SPF 트리거 이벤트가 발생하지 않고 적응형 홀드 시간이 경과하면 현재 홀드 시간이 초기 홀드 시간으로 재설정됩니다. 명령을 사용하여 현재 보류 시간을 볼 수 show ip ospf 있으며, 여기서 초기 보류 시간의 승수로 표현
됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# timers throttle spf initial-delay initial-hold-time max-hold-time

제거하려면:
 
DELLSONiC(config-router-ospf)# no timers throttle spf
 
  • initial-delay — 시간 값(0 - 600000밀리초)
  • initial-hold-time — 시간 값(0 - 600000밀리초)
  • max-hold-time — 시간 값(0-600000밀리초)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# timers throttle spf 200 400 10000

위의 예에서 초기 지연은 200ms로 설정되고, 초기 보류 시간은 400ms로, 최대 보류 시간은 10초로 설정됩니다. 따라서 이벤트(SPF 계산 필요)와 SPF 계산 사이에는 항상 최소 200ms가 있습니다. 추가 연속 SPF 계산은 항상 400ms에서 10초 사이로 구분되며, 이전 SPF 계산의 보류 시간 내에 SPF 트리거 이벤트가 발생할 때마다 보류 시간이 400ms씩 증가합니다.


OSPF 최대 메트릭 광고 구성


RFC 313에 따라 OSPFv2는 라우터-LSA의 전송 링크를 무한 거리(최대 메트릭)로 설명하므로 다른 라우터는 라우터를 통해 네트워크에 연결할 수 있는 동시에 라우터를 통한 전송 경로를 계산하지 않습니다.
이 지원은 관리적으로(즉, 무기한) 또는 조건부로 사용하도록 설정할 수 있습니다. max-metric 라우터 LSA의 조건부 활성화는 시작 후 몇 초 동안 가능할 수 있습니다.

시작 후 일정 기간 동안 이 기능을 활성화하면 OSPF가 다른 라우터에서 사용하는 기존 경로에 영향을 주지 않고 먼저 완전히 통합될 수 있으며, 연결된 스텁 링크 및/또는 재배포된 경로에 계속 연결할 수 있습니다.

이 기능을 관리적으로 활성화하면 어떤 이유로든 관리자가 무기한으로 개입할 수 있습니다. 컨피그레이션이 저장되면 stub-router 명령의 이 관리 형식도 저장됩니다. 나중에 시스템 또는 Docker를 다시 시작하면 수동으로 구성 해제될 때까지 명령이 적용됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# max-metric router-lsa administrative
DELLSONiC(config-router-ospf)#  max-metric router-lsa on-startup time-value

제거하려면:
 
DELLSONiC(config-router-ospf)# no max-metric router-lsa administrative
DELLSONiC(config-router-ospf)#  no max-metric router-lsa on-startup
 
  • time-value - 시간 값(5-86400초)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# max-metric router-lsa administrative
DELLSONiC(config-router-ospf)# max-metric router-lsa on-startup 60
 

OSPF 경로 거리 구성


라우터 내에서 사용자가 구성한 라우팅 거리를 사용하여 OSPFv2 계산된 경로를 할당합니다. 모든 OSPFv2 생성 경로에서 거리 값을 구성할 수 있습니다. 거리 값 컨피그레이션은 현재 라우터와 관련하여 영역 내 경로, 영역 간 경로 및 외부 경로와 같은 OSPF 경로의 소스를 기반으로 수행할 수도 있습니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# distance distance-value
DELLSONiC(config-router-ospf)# distance ospf intra-area distance-value
DELLSONiC(config-router-ospf)# distance ospf inter-area distance-value
DELLSONiC(config-router-ospf)# distance ospf external distance-value

제거하려면:
 
DELLSONiC(config-router-ospf)# no distance
DELLSONiC(config-router-ospf)# no distance ospf intra-area
DELLSONiC(config-router-ospf)# no distance ospf inter-area
DELLSONiC(config-router-ospf)# no distance ospf external
 
  • distance-value - 모든 유형의 경로에 대한 거리 값(1... 255)
예:
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# distance 25
DELLSONiC(config-router-ospf)# distance ospf intra-area 30
DELLSONiC(config-router-ospf)# distance ospf inter-area 30
DELLSONiC(config-router-ospf)# distance ospf external 60


OSPF 자동 비용 참조 대역폭 구성


OSPFv2는 OSPF 인터페이스 비용을 기반으로 경로 비용을 계산합니다. 인터페이스 비용은 수동으로 구성하거나 자동으로 계산할 수 있습니다. 수동으로 구성된 인터페이스 비용이 자동으로 계산된 인터페이스 비용보다 우선합니다.

인터페이스 비용 자동 계산은 참조 대역폭 및 인터페이스/링크 대역폭을 고려하여 이루어집니다. 참조 대역폭의 비용은 비용 1로 간주됩니다. 기본 참조 대역폭은 100기가바이트입니다. 링크 대역폭은 구성된 링크 대역폭, 링크 실제 속도 또는 기본 링크 대역폭(10G) 중 원하는 순서로 선택됩니다. 링크 비용은 아래와 같이 계산됩니다.

링크 비용 = (참조 대역폭) / (링크 대역폭 + 0.5)

계산된 링크 비용은 1보다 작을 수 있으며, 이 경우 항상 링크 비용 1로 반올림됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# auto-cost reference-bandwidth ref-bandwidth

제거하려면:
 
DELLSONiC(config-router-ospf)# no auto-cost reference-bandwidth
 
  • ref-bandwidth - 참조 대역폭(1-4294967메가비트)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# auto-cost reference-bandwidth 10000


OSPF 스텁 영역 및 해당 매개변수 구성


OSPFv2 영역을 요약 경로가 있거나 없는 스텁 영역으로 구성합니다. 스텁 영역은 라우터가 OSPF 외부의 경로를 시작하지 않는 영역입니다. 따라서 이 영역은 ABR을 통해 모든 외부 경로에 연결할 수 있는 것으로 간주되는 영역입니다. 따라서 이러한 영역에 대한 ABR은 AS-External LSA 또는 ASBR-Summary LSA를 영역에 전달할 필요가 없습니다. 기본 경로 요약과 함께 Network-Summary LSA만 이러한 영역에 전달해야 합니다. ABR이 지정된 스텁 영역에 영역 간 요약을 삽입하는 것을 방지하는 요약 스텁 영역이 없습니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# area area-id stub [no-summary]
DELLSONiC(config-router-ospf)# area area-id default-cost cost-value

제거하려면:
 
DELLSONiC(config-router-ospf)# no area area-id stub [no-summary]
DELLSONiC(config-router-ospf)# no area area-id default-cost
 
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295
  • 비용 값 - 기본 비용(0-16777215)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# area 1 stub
DELLSONiC(config-router-ospf)# area 2 stub no-summary
DELLSONiC(config-router-ospf)# area 2 default-cost 30
 

OSPF 영역 간 요약 경로 필터 구성


접두사 목록 및 범위 목록을 사용하여 ABR에서 OSPFv2 영역 간 요약 LSA 경로 전파를 관리합니다.

in prefix 목록을 사용하여 ABR의 영역으로 들어오는 경로를 필터링합니다. 마찬가지로 out 접두사 목록을 사용하여 영역에서 나가는 경로를 필터링합니다.

범위 목록은 영역의 접두사 광고를 관리하는 데에도 사용할 수 있습니다. 범위 목록을 사용하면 접두사와 비용 또는 보급할 경로 접두사를 수정할 수 있습니다. 이 옵션은 지정된 영역의 영역 내 경로를 다른 영역에 발표된 하나의 Type-3 요약-LSA로 요약합니다. 이 컨피그레이션은 ABR에서만 사용할 수 있으며 라우터 LSA 및 네트워크 LSA만 요약할 수 있습니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# area area-id filter-list prefix prefix-list in
DELLSONiC(config-router-ospf)# area area-id filter-list prefix prefix-list out
DELLSONiC(config-router-ospf)# area area-id range ip-prefix
DELLSONiC(config-router-ospf)# area area-id range ip-prefix not-advertise
DELLSONiC(config-router-ospf)# area area-id range ip-prefix cost cost-value
DELLSONiC(config-router-ospf)# area area-id range ip-prefix advertise cost cost-value
DELLSONiC(config-router-ospf)# area area-id range ip-prefix substitute sub-ip-prefix

제거하려면:
 
DELLSONiC(config-router-ospf)# no area area-id filter-list prefix in
DELLSONiC(config-router-ospf)# no area area-id filter-list prefix out
DELLSONiC(config-router-ospf)# no area area-id range ip-prefix
DELLSONiC(config-router-ospf)# no area area-id range ip-prefix not-advertise
DELLSONiC(config-router-ospf)# no area area-id range ip-prefix cost
DELLSONiC(config-router-ospf)# no area area-id range ip-prefix advertise cost
DELLSONiC(config-router-ospf)# no area area-id range ip-prefix substitute
 
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295
  • prefix-list - IPv4 접두사 목록 이름
  • ip-prefix - 요약 경로 주소 범위 접두사 - A.B.C.D/마스크 
  • cost-value - 비용 값 - <0..16777215> 
  • sub-ip-prefix - 주소 접두사 - A.B.C.D/마스크 

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# area 0 filter-list prefix arealistin in
DELLSONiC(config-router-ospf)# area 0 filter-list prefix arealistout out
 

OSPF 경로 재배포 구성


OSPFv2는 외부 경로를 OSPF 라우팅 도메인으로 재배포할 수 있습니다. BGP 경로, 정적 경로, 연결된 경로 및 커널 경로를 OSPF 라우팅 도메인으로 재배포합니다. 명시적으로 지정된 비용 및 메트릭 유형 외에도 경로 맵을 사용하여 경로 재배포를 관리합니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# redistribute {kernel | connected | static| bgp} [metric metric-value| metric-type metric-type-value | route-map rmap-name}
DELLSONiC(config-router-ospf)# default-metric metric-value

제거하려면:
 
DELLSONiC(config-router-ospf)# no redistribute {kernel | connected | static | bgp} [metric | metric-type | route-map}
DELLSONiC(config-router-ospf)# no default-metric
 
  • metric-value - 경로에 적용되는 경로 비용(0에서 16777214)
  • metric-type-value - 메트릭 유형(1 및 2)
  • rmap-name - 경로에 적용할 경로 맵의 이름

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# redistribute bgp
DELLSONiC(config-router-ospf)# redistribute static metric 20 metric-type 1
DELLSONiC(config-router-ospf)# redistribute bgp route-map ospf-rmap
DELLSONiC(config-router-ospf)# redistribute bgp metric 20 metric-type 1 route-map ospfrmap
DELLSONiC(config-router-ospf)# default-metric 30
 

OSPF 기본 경로 발신 구성


기본 경로는 OSPF 라우팅 도메인으로 시작할 수 있습니다. 이 옵션은 지정된 메트릭 및 메트릭 유형의 모든 외부 라우팅 가능 영역에 대한 기본 경로를 설명하는 AS-External LSA를 시작합니다. 'always' 옵션을 지정하면 라우팅 테이블에 기본 경로가 없는 경우에도 기본 경로가 항상 광고됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-router-ospf)# default-information originate [{ always | metric metric-value| metric-type metric-type-value | route-map rmap-name }]

제거하려면:
 
DELLSONiC(config-router-ospf)# no default-information originate [{ always | metric | metric-type | route-map }]
 
  • metric-value - 경로에 적용되는 경로 비용(0에서 16777214)
  • metric-type-value - 메트릭 유형(1 및 2)
  • rmap-name - 경로에 적용할 경로 맵의 이름

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# router ospf
DELLSONiC(config-router-ospf)# default-information originate
DELLSONiC(config-router-ospf)# default-information originate always
DELLSONiC(config-router-ospf)# default-information originate route-map ospf-rmap
DELLSONiC(config-router-ospf)# default-information originate metric 20 metric-type 1 route-map ospfrmap
 

OSPF 인터페이스 매개변수 구성


OSPF 인터페이스 매개변수를 SONiC 인터페이스 구성 모드에서 구성합니다. 인터페이스 구성에는 다음이 포함됩니다.
  • 인터페이스에 대한 영역 연결
  • 인터페이스 유형, MTU
  • 메시지 인증 매개 변수
  • 세션 타이머 간격 매개변수
  • Bfd

인터페이스 IPv4 주소를 지정하여 인터페이스 매개변수를 인터페이스의 특정 인터페이스 주소와 연결할 수도 있습니다. 인터페이스 주소가 지정되면 이러한 컨피그레이션 매개변수는 해당 인터페이스 주소와 연결된 OSPF 세션에만 적용됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf area area-id [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf area area-id [if-ip-addr]
 
  • area-id - 십진수 또는 점으로 구분된 형식의 OSPF 영역 ID - A.B.C.D 또는 0..4294967295
  • if-ip-addr - 인터페이스 IP 주소

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# int Eth 1/47
DELLSONiC(config-if-Eth1/47)# ip ospf area 10
DELLSONiC(config-if-Eth1/47)# ip ospf area 0.0.0.0 10.3.1.2

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 네트워크 유형을 구성합니다. OSPF 인터페이스 네트워크는 기본적으로 브로드캐스트되는 네트워크 유형입니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf network {broadcast | point-to-point}

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf network {broadcast | point-to-point}

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# int Eth 1/47
DELLSONiC(config-if-Eth1/47)# ip ospf network broadcast

DELLSONiC(config)# int Eth 1/8
DELLSONiC(config-if-Eth1/8)# ip ospf network point-to-point

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 우선 순위 매개변수를 구성합니다. 우선 순위가 가장 높은 라우터는 지정 라우터가 될 자격이 있습니다. 값을 0으로 설정하면 라우터가 지정 라우터가 될 수 없습니다. 기본값은 1입니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf priority priority-value [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf priority [if-ip-addr]
 
  • priority-value - 세션 우선 순위(0 - 255)
  • if-ip-addr - 인터페이스 IP 주소

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# int Eth 1/47
DELLSONiC(config-if-Eth1/47)# ip ospf priority 10

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 인증 매개변수 구성: 구성 방법:


 
DELLSONiC(config-if-Eth1/47)# ip ospf authentication [null | message-digest] [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# ip ospf authentication-key key [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# ip ospf message-digest-key key-id md5 key [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf authentication [null | message-digest] [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# no ip ospf authentication-key [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# no ip ospf message-digest-key key-id md5 [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IPv4 주소
  • key - 인증 키 암호(최대 8자 또는 16자)
  • key-id - MD5 인증 키 식별자(1 - 255)
  • if-ip-addr - 인터페이스 IP 주소

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf authentication
DELLSONiC(config-if-Eth1/1)# ip ospf authentication-key ospfpswd

DELLSONiC(config)# interface Eth1/2
DELLSONiC(config-if-Eth1/2)# ip ospf authentication 10.10.3.2
DELLSONiC(config-if-Eth1/2)# ip ospf authentication-key ospfpswd 10.10.3.2

DELLSONiC(config)# interface Eth1/3
DELLSONiC(config-if-Eth1/3)# ip ospf authentication message-digest
DELLSONiC(config-if-Eth1/3)# ip ospf message-digest-key 1 md5 ospfpswd1
DELLSONiC(config-if-Eth1/3)# ip ospf message-digest-key 2 md5 ospfpswd2
DELLSONiC(config-if-Eth1/3)# ip ospf message-digest-key 9 md5 ospfpswd9

DELLSONiC(config)# interface Eth1/4
DELLSONiC(config-if-Eth1/4)# ip ospf authentication null

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 BFD를 구성합니다. OSPF 인터페이스 BFD는 기본적으로 비활성화되어 있습니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf bfd

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf bfd

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf bfd

OSPF 인터페이스 컨피그레이션 모드에서 OSPFv2 인터페이스 비용을 구성합니다. 비용 값은 router-LSA의 메트릭 필드로 설정되며 SPF 계산에 사용됩니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf cost cost-value [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf cost [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IP 주소
  • cost-value - 인터페이스 비용(1 - 65535)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf cost 50

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 MTU 무시를 구성합니다. MTU는 기본적으로 무시되지 않습니다. MTU 무시가 구성되지 않은 경우 OSPF 세션 인터페이스 종료의 MTU 값이 일치해야 합니다. 많은 수의 OSPF 경로 접두사가 있고 라우터 LSA 메시지가 MTU 크기 내에서 이를 수용할 수 없는 경우 MTU 무시를 구성해도 세션 설정이 보장되지 않습니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf mtu-ignore [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf mtu-ignore [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IP 주소

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf mtu-ignore

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 hello 타이머를 구성합니다. 구성된 경우 Hello 패킷은 지정된 인터페이스에서 타이머 값 초마다 전송됩니다. 이 값은 공통 네트워크에 연결된 모든 라우터에 대해 동일해야 합니다. 기본값은 10초입니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf hello-interval time-interval [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf hello-interval [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IP 주소
  • time-interval - 타이머 값(1 - 65535초)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf hello-interval 15

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 전송 지연 타이머를 구성합니다. 구성된 경우 LSA의 나이는 전송할 때 이 값만큼 증가해야 합니다. 기본값은 1초입니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf transmit-delay time-interval [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf transmit-delay [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IP 주소
  • time-interval - 타이머 값(1-65535초)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf transmit-delay 20

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 세션 재전송 간격 타이머를 구성합니다. 이 값은 데이터베이스 설명 및 링크 상태 요청 패킷을 재전송할 때 사용됩니다. 기본값은 5초입니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf retransmit-interval time-interval [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf retransmit-interval [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IP 주소
  • time-interval - 타이머 값(2 - 65535초)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf retransmit-interval 25

OSPF 인터페이스 구성 모드에서 OSPFv2 인터페이스 데드 간격을 구성합니다. OSPF 라우터 비활성 간격 타이머 값은 세션 대기 또는 비활성 타이머에 사용됩니다. 이 값은 공통 네트워크에 연결된 모든 라우터에 대해 동일해야 합니다. 기본값은 40초입니다. 명시적 대기 시간 대신 'minimal'을 지정하면 데드 간격이 1초로 설정되고 hello-multiplier를 지정해야 합니다. hello-multiplier는 초당 보낼 Hello 수를 지정합니다. 승수 값은 1(500ms마다)에서 10(50ms마다)까지입니다. 따라서 OSPF에 대해 1초의 컨버전스 시간을 가질 수 있습니다. 이 양식을 지정하면 Hello 패킷에 광고된 hello-interval이 0으로 설정되고 수신된 Hello 패킷의 hello-interval이 확인되지 않으므로 hello-multiplier가 공통 링크의 여러 라우터에서 동일할 필요가 없습니다.

구성하려면 다음을 수행합니다.
 
DELLSONiC(config-if-Eth1/47)# ip ospf dead-interval time-interval [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# ip ospf dead-interval minimal hello-multiplier multiplier [if-ip-addr]

제거하려면:
 
DELLSONiC(config-if-Eth1/47)# no ip ospf dead-interval [if-ip-addr]
DELLSONiC(config-if-Eth1/47)# no ip ospf dead-interval minimal hello-multiplier [if-ip-addr]
 
  • if-ip-addr - 인터페이스 IP 주소
  • time-interval - 타이머 값(1-65535초)
  • multiplier - 데드 간격 hello 승수 값(1-10초)

예:
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# interface Eth1/1
DELLSONiC(config-if-Eth1/1)# ip ospf dead-interval 60
DELLSONiC(config-if-Eth1/1)# ip ospf dead-interval minimal hello-multiplier 4
 

OSPF 운영 데이터 표시 명령


SONiC은 OSPF 라우터, OSPF 세션 및 OSPF 인터페이스의 작동 상태를 표시하는 표시 명령을 제공합니다.
 

OSPF 라우터 정보 보기

 
show ip ospf [vrf vrf-name]
 
  • vrf-name - VRF 이름

예:

 
DELLSONiC# show ip ospf
OSPF Routing Process, Router ID: 1.1.1.1
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is enabled
 OpaqueCapability flag is disabled
 Initial SPF scheduling delay 0 millisec(s)
 Minimum hold time between consecutive SPFs 50 millisec(s)
 Maximum hold time between consecutive SPFs 5000 millisec(s)
 Hold time multiplier is currently 1
 time is 92031756
 SPF algorithm last executed 1065d4h22m ago
 Last SPF duration 0.0s
 SPF timer is inactive
 LSA minimum interval 5000 msecs
 LSA minimum arrival 1000 msecs
 Write Multiplier set to 20
 Refresh timer 10 secs
 Number of external LSA 0. Checksum Sum 0x0
 Number of opaque AS LSA 0. Checksum Sum 0x0
 Number of areas attached to this router: 2
 Area ID: 0.0.0.0 (Backbone)
 Number of interfaces in this area: Total: 1 , Active: 1
 Number of fully adjacent neighbors in this area: 1
 Area has no authentication
 SPF algorithm executed 8 times
 Number of LSA 3
 Number of router LSA 2. Checksum Sum 0x40f64b4000000000
 Number of network LSA 1. Checksum Sum 0x40d5adc000000000
 Number of summary LSA 0. Checksum Sum 0x0
 Number of ASBR summary LSA 0. Checksum Sum 0x0
 Number of NSSA LSA 0. Checksum Sum 0x0
 Number of opaque link LSA . Checksum Sum 0x
 Number of opaque area LSA 0. Checksum Sum 0x0
 Area ID: 0.0.0.1
 Number of interfaces in this area: Total: 1 , Active: 1
 Number of fully adjacent neighbors in this area: 0
 Area has no authentication
 SPF algorithm executed 1 times
 Number of LSA 2
 Number of router LSA 0. Checksum Sum 0x0
 Number of network LSA 0. Checksum Sum 0x0
 Number of summary LSA 2. Checksum Sum 0x40f1f61000000000
 Number of ASBR summary LSA 0. Checksum Sum 0x0
 Number of NSSA LSA 0. Checksum Sum 0x0
 Number of opaque link LSA . Checksum Sum 0x
 Number of opaque area LSA 0. Checksum Sum 0x0


OSPF 네이버 정보 보기

 
show ip ospf [vrf vrf-name ] neighbor [detail | if-name | nbr-ip ]
 
  • vrf-name - VRF 이름
  • if-name - OSPF 인터페이스 이름
  • nbr-ip - 인접 라우터 ID

예:
 
DELLSONiC# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface RXmtL
RqstL DBsmL
10.59.142.247 1 Full/Backup 37.343s 64.1.1.2 Eth 1/2:64.1.1.1 0
 0 0
DELLSONiC# show ip ospf neighbor Eth1/3 | no-more
Neighbor ID Pri State Dead Time Address Interface RXmtL
RqstL DBsmL
2.2.2.2 1 Full/Backup 38.245s 64.1.1.2 Eth 1/4:64.1.1.1 0
 0 0
DELLSONiC# show ip ospf neighbor detail
Neighbor 10.59.142.247, interface address 64.1.1.2
 In the area 0.0.0.0 via interface Eth 1/2
 Neighbor priority is 1, State is Full, 6 state changes
 Most recent state change statistics:
 Progressive change 7h3m25s ago
 DR is 64.1.1.1, BDR is 64.1.1.2
 Options 2 *|-|-|-|-|-|E|-
 Dead timer due in 30.687s
 Database Summary List 0
 Link State Request List 0
 Link State Retransmission List 0
 Thread Inactivity Timer on
 Thread Database Description Retransmission off
 Thread Link State Request Retransmission on
 Thread Link State Update Retransmission on


Leaf1# show ip ospf neighbor 2.2.2.2
 Neighbor 2.2.2.2, interface address 64.1.1.2
 In the area 0.0.0.0 via interface Eth 1/2
 Neighbor priority is 1, State is Full, 5 state changes
 Most recent state change statistics:
 Progressive change 0h1m11s ago
 DR is 64.1.1.1, BDR is 64.1.1.2
 Options 2 *|-|-|-|-|-|E|-
 Dead timer due in 33.203s
 Database Summary List 0
 Link State Request List 0
 Link State Retransmission List 0
 Thread Inactivity Timer on
 Thread Database Description Retransmision off
 Thread Link State Request Retransmission on
 Thread Link State Update Retransmission on


OSPF 인터페이스 정보 보기

 
show ip ospf interface [if-name | traffic ]
 
  • if-name - OSPF 인터페이스 이름

예:
 
DELLSONiC# show ip ospf interface
VRF Name: default
Eth 1/2 is up
 ifindex 128, MTU 9100 bytes, BW 25000 Mbit UP,BROADCAST,RUNNING,MULTICAST
 Internet Address 64.1.1.1/24, Broadcast 64.1.1.255, Area 0.0.0.0
 MTU mismatch detection: enabled
 Router ID 10.59.143.131, Network Type BROADCAST, Cost: 4
 Transmit Delay is 1 sec, State DR, Priority 1
 Backup Designated Router (ID) 10.59.142.247, Interface Address 64.1.1.2
 Saved Network-LSA sequence number 0x8000000f
 Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
 Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
 Hello due in 9.023s
 Neighbor Count is 1, Adjacent neighbor count is 1


DELLSONiC# show ip ospf interface Eth 1/3
VRF Name: default
Eth 1/4 is up
 ifindex 926, MTU 9100 bytes, BW 25000 Mbit UP,BROADCAST,RUNNING,MULTICAST
 Internet Address 65.1.1.1/24, Broadcast 65.1.1.255, Area 0.0.0.1
 MTU mismatch detection: enabled
 Router ID 1.1.1.1, Network Type BROADCAST, Cost: 4
 Transmit Delay is 1 sec, State DR, Priority 1
 Backup Designated Router (ID) 2.2.2.2, Interface Address 65.1.1.2
 Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
 Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
 Hello due in 7.957s
 Neighbor Count is 1, Adjacent neighbor count is 1


DELLSONiC# show ip ospf interface traffic
Interface HELLO DB-Desc LS-Req LS-Update LS-Ack
 Rx/Tx Rx/Tx Rx/Tx Rx/Tx Rx/Tx
-----------------------------------------------------------------------------------------
---
Eth 1/2 2563/2563 3/3 1/1 17/30 29/16
Leaf1# show ip ospf interface traffic Eth1/3
Interface HELLO DB-Desc LS-Req LS-Update LS-Ack
 Rx/Tx Rx/Tx Rx/Tx Rx/Tx Rx/Tx
-----------------------------------------------------------------------------------------

Eth1/3 19/22 2/3 1/1 3/3 2/2
 

OSPF 데이터베이스 정보 보기

 
show ip ospf [vrf vrf-name ] database [asbr-summary | external | network | router | summary | opaque-link]
 
  • vrf-name — VRF 이름

예:
 
DELLSONiC# show ip ospf database
VRF Name: default
 OSPF Router with ID (5.5.5.5)
 Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Link count
3.3.3.3 3.3.3.3 988 0x80000003 0x04ec 1
5.5.5.5 5.5.5.5 988 0x80000008 0x6f6b 1
 Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
10.10.10.2 5.5.5.5 988 0x80000002 0xcc38
 Link-Local Opaque-LSA (Area 0.0.0.0)
Opaque-Type/Id ADV Router Age Seq# CkSum
3.0.0.0 3.3.3.3 89 0x80000001 0x4a24
DELLSONiC# show ip ospf database network
VRF Name: default
 OSPF Router with ID (10.59.143.131)
 Net Link States (Area 0.0.0.0)
 LS age: 1602
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x3
 LS Type: network-LSA
 Link State ID: 64.1.1.1 (address of Designated Router)
 Advertising Router: 10.59.143.131
 LS Seq Number: 8000000f
 Checksum: 0x1c70
 Length: 32
 Network Mask: /24
 Attached Router: 10.59.142.247
 Attached Router: 10.59.143.131

DELLSONiC# show ip ospf database summary
VRF Name: default
 OSPF Router with ID (1.1.1.1)
 Summary Link States (Area 0.0.0.0)
 LS age: 468
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x11
 LS Type: summary-LSA
 Link State ID: 65.1.1.0 (summary Network Number)
 Advertising Router: 1.1.1.1
 LS Seq Number: 80000001
 Checksum: 0x0e04
 Length: 28
 Network Mask: /24
 TOS: 0 Metric: 4
 LS age: 429
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x6
 LS Type: summary-LSA
 Link State ID: 65.1.1.0 (summary Network Number)
 Advertising Router: 2.2.2.2
 LS Seq Number: 80000002
 Checksum: 0xed1f
 Length: 28
 Network Mask: /24
 TOS: 0 Metric: 4
 Summary Link States (Area 0.0.0.1)
 LS age: 468
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x11
 LS Type: summary-LSA
 Link State ID: 64.1.1.0 (summary Network Number)
 Advertising Router: 1.1.1.1
 LS Seq Number: 80000001
 Checksum: 0x1bf7
 Length: 28
 Network Mask: /24
 TOS: 0 Metric: 4
 LS age: 429
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x6
 LS Type: summary-LSA
 Link State ID: 64.1.1.0 (summary Network Number)
 Advertising Router: 2.2.2.2
 LS Seq Number: 80000002
 Checksum: 0xfa13
 Length: 28
 Network Mask: /24
 TOS: 0 Metric: 4

DELLSONiC# show ip ospf database asbr-summary
VRF Name: default
 OSPF Router with ID (1.1.1.1)
 ASBR-Summary Link States (Area 0.0.0.0)
 LS age: 38
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Type: summary-LSA
 Link State ID: 2.2.2.2 (AS Boundary Router address)
 Advertising Router: 1.1.1.1
 LS Seq Number: 80000001
 Checksum: 0x0b41
 Length: 28
 Network Mask: /0
 TOS: 0 Metric: 4

DELLSONiC# show ip ospf database external
VRF Name: default
 OSPF Router with ID (1.1.1.1)
 AS External Link States
LS age: 52
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x6
 LS Type: AS-external-LSA
 Link State ID: 25.1.1.1 (External Network Number)
 Advertising Router: 2.2.2.2
 LS Seq Number: 80000001
 Checksum: 0x0892
 Length: 36
 Network Mask: /32
 Metric Type: 2 (Larger than any link state path)
 TOS: 0
 Metric: 20
 Forward Address: 0.0.0.0
 External Route Tag: 0

DELLSONiC# show ip ospf database self-originate
VRF Name: default
 OSPF Router with ID (1.1.1.1)
 Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Link count
1.1.1.1 1.1.1.1 777 0x80000004 0x7b42 1
 Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
64.1.1.1 1.1.1.1 777 0x80000001 0x8581
 Summary Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Route
65.1.1.0 1.1.1.1 816 0x80000001 0x0e04 65.1.1.0/24
 ASBR-Summary Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
2.2.2.2 1.1.1.1 360 0x80000001 0x0b41
 Router Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# CkSum Link count
1.1.1.1 1.1.1.1 776 0x80000004 0x8d2e 1
 Net Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# CkSum
65.1.1.1 1.1.1.1 776 0x80000001 0x788d
 Summary Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# CkSum Route
64.1.1.0 1.1.1.1 816 0x80000001 0x1bf7 64.1.1.0/24

DELLSONiC# show ip ospf database network adv-router 1.1.1.1
VRF Name: default
 OSPF Router with ID (1.1.1.1)
 Net Link States (Area 0.0.0.0)
 LS age: 886
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x3
 LS Type: network-LSA
 Link State ID: 64.1.1.1 (address of Designated Router)
 Advertising Router: 1.1.1.1
 LS Seq Number: 80000001
Checksum: 0x8581
 Length: 32
 Network Mask: /24
 Attached Router: 1.1.1.1
 Attached Router: 2.2.2.2
 Net Link States (Area 0.0.0.1)
 LS age: 886
 Options: 0x2 : *|-|-|-|-|-|E|-
 LS Flags: 0x3
 LS Type: network-LSA
 Link State ID: 65.1.1.1 (address of Designated Router)
 Advertising Router: 1.1.1.1
 LS Seq Number: 80000001
 Checksum: 0x788d
 Length: 32
 Network Mask: /24
 Attached Router: 1.1.1.1
 Attached Router: 2.2.2.2
DELLSONiC# show ip ospf database opaque-link
VRF Name: default
 OSPF Router with ID (5.5.5.5)
 Link-Local Opaque-LSA (Area 0.0.0.0)
 LS age: 94
 Options: 0x66 : *|O|-|-|-|-|E|-
 LS Flags: 0x6
 LS Type: Link-Local Opaque-LSA
 Link State ID: 3.0.0.0 (Link-Local Opaque-Type/ID)
 Advertising Router: 3.3.3.3
 LS Seq Number: 80000001
 Checksum: 0x4a24
 Length: 44


OSPF 경로 정보 보기

 
show ip ospf [ vrf vrf-name ] route
 
  • vrf-name - VRF 이름

예:

 
DELLSONiC# show ip ospf vrf Vrf1 route | no-more
VRF Name: Vrf1
============ OSPF network routing table ============
N 101.1.1.0/24 [10] area: 0.0.0.0
 directly attached to Vlan101
============ OSPF router routing table =============
============ OSPF external routing table ===========
 

OSPFv2 정상적 재시작


OSPF에 참여하는 라우터가 다시 시작되면 라우터가 다시 온라인 상태가 되어 경로를 다시 학습할 때까지 트래픽 손실 기간이 있습니다.

RFC 3623은 다음과 같이 OSPF에 대한 Graceful Restart 개선 사항을 지정합니다.
  • graceful restart를 시도하는 라우터는 Grace-LSA(link-local Opaque-LSA)를 시작하여 지정된 시간 또는 유예 기간 내에 Graceful Restart를 수행하려는 의도를 발표합니다.
  • 유예 기간 동안 이웃은 LSA에서 재시작 라우터를 완전히 인접한 것처럼(즉, OSPF neighbor state Full) 계속 발표하지만, 네트워크 토폴로지가 정적으로 유지되는 경우(즉, LS 유형 1에서 5 및 7이 있는 링크 상태 데이터베이스의 LSA 내용이 변경되지 않은 상태로 유지됨) 주기적인 새로 고침이 허용됨).

Graceful Restart를 사용하면 재시작 라우터가 이웃에게 재시작될 것임을 알릴 수 있습니다. 이웃이 이 조건에 대한 정보를 받으면 재시작 노드로 트래픽을 계속 전달합니다. 재시작 노드의 포워딩 테이블이 graceful restart 동안 보존되므로 트래픽 손실이 방지됩니다.


계획된 운영 중단


Enterprise SONiC은 계획된 운영 중단에 대해서만 OSPF Graceful Restart를 지원합니다.

OSPF 인스턴스에 대해 정상 재시작이 활성화됩니다. 시스템 웜 재시작은 warm-reboot 명령을 사용하여 트리거됩니다.


재시작 및 도우미 노드


graceful restart를 사용하면 OSPF 네트워크에 참여하는 두 가지 유형의 디바이스가 있습니다. 도우미 노드가 다시 시작되고 있습니다.

재시작 노드는 트래픽 손실 없이 정상적으로 재시작되는 디바이스입니다. 재시작 노드가 graceful restart를 수행하면 모든 최단 경로 우선(OSPF) 인터페이스에서 링크-로컬 불투명 LSA(grace-LSA)를 플러딩합니다. 이러한 grace LSA는 네이버가 다시 시작하려는 헬퍼 라우터를 알립니다.

도우미 노드는 트래픽 손실이 없도록 노드를 재시작하는 데 도움이 됩니다. 헬퍼 노드는 네트워크에서 토폴로지 변경 사항을 모니터링합니다. 네트워크에 변경 사항이 없는 경우 헬퍼는 재시작 노드가 연속 OSPF 작업에 남아 있는 것처럼 LSA를 계속 광고합니다. 헬퍼 LSA는 재시작 노드의 동기화 상태에 관계없이 네트워크 세그먼트를 통해 재시작 노드에 대한 인접성을 계속 나열합니다.


OSPFv2 Graceful Restart 구성


Graceful Restart를 구성하려면 다음 단계를

수행합니다.1. 정상적인 재시작을 활성화합니다.
 
DELLSONiC(config-router-ospf)# graceful-restart [grace-period grace-period]
 
  • grace-period - 인접 디바이스 또는 도우미가 재시작 노드가 죽은 것으로 간주하는 유예 기간입니다. 범위는 1초에서 1800초 사이입니다. 기본 유예 기간은 120초입니다

2. OSPFv2 불투명 기능을 구성하여 재시작 라우터가 grace LSA를 시작할 수 있도록 지원합니다.
 
DELLSONiC (config-router-ospf)# capability opaque

3. 시스템에서 모든 또는 특정 라우터 ID에 대해 OSPFv2 graceful restart helper를 구성합니다. 라우터를 재시작하는 데 사용하는 모든 노드에서 이 작업을 수행합니다.
 
DELLSONiC (config-router-ospf)# graceful-restart helper enable [router-id]
 
  • router-id — 라우터 ID를 사용하여 특정 이웃에 대한 graceful restart 도우미 지원을 구성합니다.

4. (선택 사항) 헬퍼 노드에서 유예 시간을 구성합니다. 이 구성은 도우미가 정상 재시작을 지원하는 기간을 결정합니다.
 
DELLSONiC (config-router-ospf)# graceful-restart helper supported-grace-time grace-time
 
  • grace-time — 유예 시간을 구성합니다. 범위는 10초에서 1800초 사이입니다. 기본값은 120초입니다.

5. (선택 사항) 도우미 노드에서 엄격한 LSA 검사를 구성합니다. 이 명령이 구성된 경우 헬퍼는 LSA 변경이 발생할 때 graceful restart를 취소하며, 이는 재시작 라우터에 영향을 미칩니다. 기본적으로 엄격한 LSA 검사가 활성화되어 있습니다.
 
DELLSONiC (config-router-ospf)# graceful-restart helper strict-lsa-checking

6. (선택 사항) 계획된 재시작에 대해서만 도우미 지원을 구성합니다.
 
DELLSONiC (config-router-ospf)# graceful-restart helper planned-only
 

OSPFv2 정상 재시작 정보 보기


다음 명령을 사용하여 graceful restart 도우미 정보를 볼 수 있습니다.

Graceful Restart 및 불투명 기능이 활성화되었는지 여부를 포함한 일반 OSPF 정보를 확인합니다.
 
sonic# show ip ospf
VRF Name: default
OSPF Routing Process, Router ID: 1.1.1.2
Supports only single TOS (TOS0) routes
This implementation conforms to RFC2328
RFC1583Compatibility flag is disabled
OpaqueCapability flag is enabled
Graceful-Restart is enabled
Stub router advertisement is configured
 Enabled for 600s after start-up
Initial SPF scheduling delay 0 millisec(s)
Minimum hold time between consecutive SPFs 50 millisec(s)
Maximum hold time between consecutive SPFs 5000 millisec(s)
Hold time multiplier is currently 1
SPF algorithm last executed 19h39m37s ago
Last SPF duration 72320 usecs
SPF timer is inactive
LSA minimum interval 5000 msecs
LSA minimum arrival 0 msecs
Write Multiplier set to 20
Refresh timer 10 secs
Maximum multiple paths(ECMP) supported 256
Number of external LSA 0. Checksum Sum 0x00000000
Number of opaque AS LSA 0. Checksum Sum 0x00000000
Number of areas attached to this router: 1
Area ID: 0.0.0.0 (Backbone)
 Number of interfaces in this area: Total: 224 , Active: 224
 Number of fully adjacent neighbors in this area: 32
 Area has simple password authentication
 SPF algorithm executed 247 times
 Number of LSA 6068
 Number of router LSA 6. Checksum Sum 0x00020692
 Number of network LSA 62. Checksum Sum 0x001ab353
 Number of summary LSA 6000. Checksum Sum 0x0bc36229
 Number of ASBR summary LSA 0. Checksum Sum 0x00000000
 Number of NSSA LSA 0. Checksum Sum 0x00000000
 Number of opaque link LSA 0. Checksum Sum 0x00000000
 Number of opaque area LSA 0. Checksum Sum 0x00000000

OSPF neighbor 정보 및 graceful restart helper에 대한 세부 정보를 확인합니다.
 
sonic# show ip ospf neighbor detail
Neighbor 13.13.13.13, interface address 192.168.10.1
 In the area 0.0.0.0 via interface Ethernet64
 Neighbor priority is 1, State is Full, 6 state changes
 Most recent state change statistics:
 Progressive change 17h32m19s ago
 DR is 192.168.10.1, BDR is 192.168.10.2
 Options 66 *|O|-|-|-|-|E|-
 Dead timer due in 0.717s
 Database Summary List 0
 Link State Request List 0
  Link State Retransmission List 0
 Thread Inactivity Timer on
 Thread Database Description Retransmision off
 Thread Link State Request Retransmission on
 Thread Link State Update Retransmission on
 Graceful restart Helper info:
 Graceful Restart HELPER Status: Inprogress
 Graceful Restart grace period time: 250 (seconds).
 Graceful Restart reason: Software restart

OSPF graceful restart 헬퍼 정보를 확인합니다.
 
sonic# show ip ospf graceful-restart helper
 VRF Name: default
 OSPF Router with ID (14.14.14.14)
 Graceful restart helper support enabled.
 Strict LSA check is enabled.
 Helper supported for planned restarts only.
 Supported Graceful restart interval: 1600(in seconds).
 Enable Router List:
 ['13.13.13.13']

OSPF의 자세한 graceful restart 도우미 정보를 확인합니다.
 
sonic# show ip ospf graceful-restart helper detail
 VRF Name: default
 OSPF Router with ID (14.14.14.14)
 Graceful restart helper support enabled.
 Strict LSA check is enabled.
 Helper supported for planned restarts only.
 Supported Graceful restart interval: 1600(in seconds).
 Enable Router List:
 ['13.13.13.13']
 Number of Active neighbours in graceful restart: 4
 Neighbour 1:
 Address: 192.168.10.1
 Routerid: 13.13.13.13
 Received Grace period: 250(in seconds).
 Actual Grace period: 250(in seconds).
 Remaining GraceTime: 245(in seconds).
 Graceful Restart reason: Software restart.
 Neighbour 2:
 Address: 192.168.20.1
 Routerid: 13.13.13.13
 Received Grace period: 250(in seconds).
 Actual Grace period: 250(in seconds).
 Remaining GraceTime: 245(in seconds).
 Graceful Restart reason: Software restart.
 Neighbour 3:
 Address: 192.168.30.1
 Routerid: 13.13.13.13
 Received Grace period: 250(in seconds).
 Actual Grace period: 250(in seconds).
 Remaining GraceTime: 245(in seconds).
 Graceful Restart reason: Software restart.
 Neighbour 4:
 Address: 192.168.40.1
 Routerid: 13.13.13.13
 Received Grace period: 250(in seconds).
 Actual Grace period: 250(in seconds).
 Remaining GraceTime: 245(in seconds).
 Graceful Restart reason: Software restart.

Productos afectados

Enterprise SONiC Distribution, PowerSwitch N3000 Series, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON
Propiedades del artículo
Número del artículo: 000218990
Tipo de artículo: How To
Última modificación: 29 feb 2024
Versión:  1
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.