1. Juniper CLI Mode
- Prompt를 확인하여 현재 CLI Mode 확인 가능
- 'quit' 또는 'exit' 명령을 통해 'Configuration Mode → Operational Mode → Shell Mode'로 이동 가능
1) % : Shell Mode
- 일반적으로 'root' 계정으로 접속해야 'Shell Mode'로 접속 가능
- root가 아닌 다른 계정도 충분한 권한을 가지면 'Shell Mode'로 접속 가능
- 'cli' 명령어를 입력하여 'Operational Mode'로 이동 가능
더보기
root@vMX1:/ # cli
root@vMX1>
- Linux 명령어 사용 가능
더보기
root@vMX1:/ # pwd
/
root@vMX1:/ #
root@vMX1:/ # ls -la
total 27
drwxr-xr-x 24 root wheel 512 Sep 8 16:49 .
drwxr-xr-x 24 root wheel 512 Sep 8 16:49 ..
lr-xr-xr-x 1 root wheel 1 Jan 1 1970 .mount -> /
lrwxr-xr-x 1 root wheel 34 Sep 8 16:44 COPYRIGHT -> /packages/mnt/os-runtime/COPYRIGHT
drwxr-xr-x 2 root wheel 512 Sep 8 16:45 bin
drwxr-xr-x 2 root wheel 512 Sep 10 00:28 boot
drwxr-xr-x 3 root wheel 512 Sep 9 04:31 config
dr-xr-xr-x 7 root wheel 512 Sep 10 00:27 dev
drwxr-xr-x 16 root wheel 2048 Sep 10 00:28 etc
dr-xr-xr-x 1 root wheel 0 Sep 10 00:38 junosproc
drwxr-xr-x 5 root wheel 4096 Sep 8 16:52 lib
drwxr-xr-x 2 root wheel 512 Sep 8 16:45 libexec
drwxr-xr-x 3 root wheel 64 Sep 10 00:28 mfs
drwxr-xr-x 2 root wheel 512 Jun 28 2018 mnt
drwxr-xr-x 2 root wheel 512 Sep 8 16:47 mnt2
drwxr-xr-x 9 root wheel 1024 Sep 8 16:52 modules
drwxr-xr-x 2 root wheel 512 Sep 8 16:44 oam
drwxr-xr-x 6 root wheel 512 Sep 8 16:46 opt
drwxr-xr-x 5 root wheel 512 Sep 8 16:44 packages
dr-xr-xr-x 1 root wheel 0 Sep 10 00:38 proc
drwxr-xr-x 2 root wheel 512 Sep 10 00:37 root
drwxr-xr-x 3 root wheel 1536 Sep 8 23:52 sbin
drwxr-xr-x 2 root wheel 512 Jun 28 2018 snapshot
drwxrwxrwt 2 root wheel 256 Sep 10 00:29 tmp
drwxr-xr-x 16 root wheel 512 Sep 8 16:46 usr
drwxr-xr-x 20 root wheel 512 Sep 8 16:55 var
2) > : Operational Mode
- 'configure' 명령어를 입력하여 'Configuration Mode'로 이동 가능
더보기
root@vMX1> configure
Entering configuration mode
[edit]
root@vMX1#
- 'show' 명령을 통해 Resource 사용률, Hardware 정보, Software 정보, Log, Table 등 여러 정보 확인 가능
- 'request' 명령을 통해 시스템 종료 및 재부팅, 프로세스 중지 및 재시작과 같은 요청이 가능
- 'monitor' 명령을 통해 대략적인 문제 진단 가능
- 'ssh' 및 'telnet' 명령을 통해 원격 접속 가능
3) # : Configuration Mode
- 'run' 명령어를 가장 앞에 추가하여 'Operational Mode'처럼 동작 가능
- Cisco Vendor의 'do' 명령과 비슷한 역할
더보기
root@vMX1# run show configuration | display set
set version 18.2R1.9
set system root-authentication encrypted-password "$6$jxakq45s$Inq0exINk7FPg1dPZDQroB4EdqB0TnLZicQaE4GNX/oM0O9bIeBtr2nUvDb85If7euMket.XUK6x5WFKa264I1"
set system host-name vMX1
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set system processes dhcp-service traceoptions file dhcp_logfile
set system processes dhcp-service traceoptions file size 10m
set system processes dhcp-service traceoptions level all
set system processes dhcp-service traceoptions flag packet
set chassis aggregated-devices ethernet device-count 2
set interfaces ge-0/0/0 gigether-options 802.3ad ae1
set interfaces ge-0/0/1 gigether-options 802.3ad ae1
set interfaces ae1 aggregated-ether-options lacp active
set interfaces ae1 unit 0 family bridge interface-mode trunk
set interfaces ae1 unit 0 family bridge vlan-id-list 10
set interfaces em0 unit 0 family inet address 192.168.10.11/24
set interfaces fxp0 unit 0 family inet dhcp vendor-id Juniper-vmx-VM66DDD6F30F
set interfaces irb unit 10 family inet address 1.1.2.1/24
set bridge-domains VLAN10 vlan-id 10
set bridge-domains VLAN10 routing-interface irb.10
- 'set' 명령을 통해 장비 동작에 관련된 설정 추가 및 변경(IP, VLAN, Routing) 가능
- 'delete' 명령을 통해 'set'으로 설정한 값을 제거 가능
- 최대 32명의 사용자가 동시에 Configuration Mode에 존재 가능
'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 (2) | 2024.10.25 |
Juniper Candidate vs Active Configuration (0) | 2024.10.23 |