LoginSignup
11
8

More than 5 years have passed since last update.

俺のJunosコマンドリファレンス(随時更新)

Posted at

Junos コマンド

Config参照

srx
#Config
show configure
#流し込み形式
show configure | display set
#すべて表示
show configure | display set | no-more

設定

Configをそのまま流し込みたい場合
lang:srx
root# load override terminal

Configをすべて削除する
パスワードの設定を行わないとCommitできないので注意

srx
root# delete
This will delete the entire configuration
Delete everything under this level? [yes,no] (no) yes

set system root-authentication encrypted-password "ホゲホゲ"

Commit履歴保存領域
lang:srx
set system max-configuration-rollbacks 49

管理機能

srx
#SSH
set system services ssh

DHCP設定

srx
#GW
set system services dhcp router 192.168.11.1
#配布アドレスレンジここから
set system services dhcp pool 192.168.11.0/24 address-range low 192.168.11.10
#配布アドレスレンジここまで
set system services dhcp pool 192.168.11.0/24 address-range high 192.168.11.100
#DNS 
set system services dhcp pool 192.168.11.0/24 name-server 8.8.8.8
#DNS
set system services dhcp pool 192.168.1.0/24 name-server 8.8.4.4
#3時間リリース
set system services dhcp pool 192.168.11.0/24 default-lease-time 10800
#DHCPのセキュリティ設定
set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic system-services dhcp

確認

srx
#プール
show system services dhcp pool
#Dropなどの情報数値
show system services dhcp statistics
#配布一覧
show system services dhcp binding

ルーテッドポート設定

srx
set interfaces ge-0/0/0 unit 0 family inet address 192.168.10.2/24
set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.1/24

確認

srx
show interface terse
show interfaces terse detail
show interfaces terse extensive
show interface <IF>
11
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
8