Juniper CLI Mode

2024. 10. 21. 23:53·Network/Juniper Basic

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
'Network/Juniper Basic' 카테고리의 다른 글
  • Juniper Traceoption(debug)
  • Juniper Configuration Backup
  • Juniper Interface Types and Naming
  • Juniper Candidate vs Active Configuration
ant-choi의 네트워크
ant-choi의 네트워크
안녕하세요. 네트워크 엔지니어로 근무하고 있는 직장인 입니다. 2024.08.26부터 새로운 버전으로 블로그를 개설하였습니다. 제가 스터디한 내용이나 회사에서 업무 진행 시, 필요한 내용들을 정리하여 업로드 하는 것을 목표로 하고 있습니다. 오류가 있거나 피드백이 있으신 분들은 댓글 남겨주시면 감사하겟습니다.
  • ant-choi의 네트워크
    ant-choi의 네트워크
    ant-choi의 네트워크
  • 전체
    오늘
    어제
    • 분류 전체보기 (142) N
      • Network (125) N
        • Juniper Software (0)
        • Juniper Basic (7)
        • Emulator (24)
        • Network Basic (11)
        • ARP, ICMP (14)
        • VLAN (22)
        • STP (0)
        • VRRP (11)
        • Link Aggregation (10)
        • MC-LAG (0)
        • Switching, Routing Basic (15)
        • DHCP (11) N
        • OSPF (0)
        • BGP (0)
        • Routing Instance (0)
        • VXLAN (0)
        • Issue (0)
      • Office (5)
        • Office 공통 (1)
        • Excel (1)
        • Power Point (1)
        • Word (2)
        • Outlook (0)
      • 기타 (12)
        • Windows (1)
        • Browser (4)
        • Tistory (7)
        • Notion (0)
        • Application (0)
  • 블로그 메뉴

    • hELLO· Designed By정상우.v4.10.3
    ant-choi의 네트워크
    Juniper CLI Mode
    상단으로

    티스토리툴바