CLI操作模式:
root@junos1% cli
CLI配置模式:
[email protected]> configure
Entering configuration mode
[edit]
JUNOS層次劃分:
top
|
-------------------------------------------------------------------------------------------------------------------------
| | | | | |
chassis firewall interfaces protocols system etc.
|
-------------------------------------------------
| | |
alarm clock fpc
|
-------------------------------------------------------------------------------------------------
| | | | |
atm e3 ethernet sonet t3
如何轉換層次:
[email protected]# edit chassis alarm ethernet
[edit chassis alarm ethernet] \\這個顯示的就是當前你所在層次
跳到上一層:
[edit chassis alarm ethernet]
[edit chassis alarm]
直接跳到頂層:
[edit chassis alarm]
[email protected]# top
[edit]
在子層中使用其他層命令:
[edit protocols ospf]
[email protected]# top show interfaces
從一個子層跳入另一子層:
[edit protocols ospf]
[email protected]# top edit interfaces em0 unit 0 family inet
[edit interfaces em0 unit 0 family inet]