juniper CLI 基本操作
?
系統基本配置:
?
cli
configure
edit system
set host-name xiaoxiao
set domain-name xiaoxiao.com
set time-zone Asia/Shanghai
set login class xiaoxiaogroup idle-timeout 30 permissions all
set login user xiaoxiao full-name fuxiaoxiao uid 2002 class xiaoxiaogroup authentication plain-text-password
commit
?
?
WEB管理:
set services web-management http port 80
set services web-management https port 80
set services web-management session idle-timeout 30
set services web-management session session-limit 30
Telnet配置:
edit system
set services telnet
set services telnet rate-limit 10
set services telnet connection-limit 30
?
?
?
日志管理:
edit system
set syslog file messages any notice
set syslog archive size 1m files 20
set syslog host 202.15.26.156.158 any any
set syslog console any notice
set syslog file messages archive size 2M files 20
juniper? os可以把syslog發送到console(控制臺口) 日志服務器,本地硬盤
默認是存放到本地硬盤:/var/log?? 下
set syslog console any notice 可以指定日志輸出到控制臺
set syslog host 202.15.26.156.158 any any 可以指定日志輸出到遠程主機
?
關閉日志從控制臺輸出
delete syslog console any notice
?
SSH配置:
edit system
set services ssh
set services ssh rate-limit 10
set services ssh connection-limit 30
?
?
SNMP配置:
?
set snmp community key-string authorization read-only clients ipaddress
set snmp community key-string authorization read-only clients default restrict
set snmp community key-string authorization read-write clients ipaddress
set snmp community key-string authorization read-only clients default restrict
set snmp interface interfacelist
set snmp trap-group groupname version [v1|v2|all] destination-port portnumber targets ipaddress
set snmp trap-options source-address lo0
例子:
set snmp community xiao3 authorization read-write
set snmp community xiao3 authorization read-write clients 192.168.1.200
set snmp trap-group xiao5 version all
set snmp trap-group xiao5 targets 192.168.1.200
?
FTP:
edit system
set services ftp
set services ftp rate-limit 10
set services ftp connection-limit 30
set name-server 192.168.1.1?
?
?
好了,先寫這點吧。juniper路由器上? CLI基本配置
?
?
?
?
?
?
?
?
?
?
?
?
轉載于:https://blog.51cto.com/dnsdhcp/402213
總結
以上是生活随笔為你收集整理的juniper CLI 基本操作的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 图书馆如何应用视频直播?
- 下一篇: 用户眼中的银行信息化-我的开博感言