IOS-XR의 Config Concept은 2단계 모델을 지원한다.
1단계. 사용자가 적용하고자 하는 configuration builds
: 실행 전 명령어의 구문과 오류를 확인. (라우터의 동작에 영향 없음)
2단계. commit
: 적용 대상의 configuration을 commit하여 실행.
** 적용 대상 configuraion 확인
show configuration
show commit changes diff
show configuration merge (commit 후 실행 구성에 적용된 running-config 확인)
** commit 시 다음 이벤트 발생
- commit change database에 구성 변경 사항을 저장하고 rollback 지점이 생선됨
- configuration history에 commit changes 항목 추가됨
- syslog에 구성 변경 log 생성
(config[65723]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'anne'. Use 'show configuration commit changes 1000000005' to view the changes.)
- running config에 통합됨
- commit 후 commit change ID가 할당되고 이 commit ID를 통해 변경 사항을 확인하고 rollback을 할 수 도 있다.
ex) RP/0/0/CPU0:ios#show configuration commit changes ?
all Display configurations committed for all commits
last Changes made in the most recent <n> commits
since Changes made since (and including) a specific commit
1000000002 Commit ID
1000000001 Commit ID
RP/0/0/CPU0:ios#show configuration commit changes 1000000001 diff
Tue Feb 6 08:33:34.090 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
# interface GigabitEthernet0/0/0/0
+ ipv4 address 1.1.1.1 255.255.255.0
- shutdown
- !
end
RP/0/0/CPU0:ios#rollback configuration ?
last Rollback last <n> commits made
to Rollback up to (and including) a specific commit
to-exclude Rollback up to (and excluding) a specific commit
1000000002 Commit ID
1000000001 Commit ID