- Juniper 네트워크 장비는 Batch Configuration Model을 지원
1. Batch Configuration Model
- 관리자가 'set' 및 'delete' 명령을 통해 설정한 Configuration은 장비에 바로 적용되지 않음
- 관리자가 'set' 및 'delete' 명령을 통해 설정한 Configuration을 장비에 적용하기 위해서 'commit' 입력이 필요
2. Candidate Configuration
- 관리자가 'set' 및 'delete' 명령을 통해 설정한 Configuration으로 아직 장비에 적용되지 않은 Configuration
- 'commit check' 명령을 통해 Candidate Configuration이 유효한지, 문법적으로 문제가 없는지 확인
- Candidate Configuration에 문제가 있을 경우 Error 문구와 Commit 실패 원인을 출력
- Candidate Configuration에 문제가 없어도 장비에 Configuration 미적용
더보기
root@vMX1# commit check
[edit interfaces irb]
'unit 10'
VLAN-ID can only be specified on tagged ethernet interfaces
error: configuration check-out failed
[edit]
root@vMX1#
- 'commit' 명령을 통해 Candidate Configuration을 Active Configuration에 적용
- Candidate Configuration에 문제가 있을 경우 Error 문구와 Commit 실패 원인을 출력
더보기
root@MX2# commit
commit complete
[edit]
- 'commit confirmed [time]' 명령을 통해 입력한 시간 동안 Candidate Configuration을 임시로 Active Configuration에 적용
- 'time'을 정의하지 않으면 기본 10min 간 적용
- 원격 작업 진행 시, 유용하게 사용
더보기
root@vMX1# commit confirmed 1
commit confirmed will be automatically rolled back in 1 minutes unless confirmed
commit complete
# commit confirmed will be rolled back in 1 minute
[edit]
root@vMX1#
Broadcast Message from root@vMX1
(no tty) at 3:38 UTC...
Commit was not confirmed; automatic rollback complete.
[edit]
root@vMX1#
- 'show | compare' 명령어로 Candidate Configuration을 현재 Active Configuration과 비교하여 추가, 제거되는 Configuration을 표시
더보기
root@vMX1# show | compare
[edit system]
- host-name vMX1;
+ host-name vMX;
[edit interfaces]
- em0 {
- unit 0 {
- family inet {
- address 192.168.10.11/24;
- }
- }
- }
3. Active Configuration
- 현재 장비에 적용되어 동작하고 있는 Configuration
- 'commit이' 정상적으로 수행되어 적용된 Candidate Configuration
- 장비 메모리에 저장된 Configuration이며 장비 부팅 시 해당 Configuration을 적용
- Active Configuration은 메모리에 최대 50개까지 저장이 가능하며 'juniper.conf.x.gz' 형식으로 저장
- 최신 4개의 파일은 '/config' Directory에 저장
- 이후 46개는 '/var/db/config' Directory에 저장
더보기
root@vMX1> file list /config
/config:
db_ext
juniper.conf.1.gz
juniper.conf.2.gz
juniper.conf.3.gz
juniper.conf.gz
usage.db
vchassis/
vmx_initialized
root@vMX1> file list /var/db/config/
/var/db/config/:
juniper.conf.10.gz
juniper.conf.11.gz
juniper.conf.12.gz
juniper.conf.4.gz
juniper.conf.5.gz
juniper.conf.6.gz
juniper.conf.7.gz
juniper.conf.8.gz
juniper.conf.9.gz
root@vMX1>
'Network > Juniper Basic' 카테고리의 다른 글
Juniper Packet Capture(pcap) (0) | 2025.05.17 |
---|---|
Juniper Monitor Traffic (0) | 2025.05.15 |
Juniper Traceoption(debug) (0) | 2025.05.01 |
Juniper Configuration Backup (0) | 2024.10.27 |
Juniper Interface Types and Naming (1) | 2024.10.25 |
Juniper CLI Mode (0) | 2024.10.21 |