13 2009

JUNOS学习杂记(五)<CLI Configuration mode>

Posted by admin in juniper

 

Movie Level:

[edit]
root@Junos# edit system login        

[edit system login]
root@Junos# top

[edit]
root@Junos#

 

[edit]
root@Junos# edit protocols ospf area 10

[edit protocols ospf area 0.0.0.10]
root@Junos# up 2

[edit protocols]
root@Junos#

 

Moving Between Level
    Summary of moving between levels:
    edit function like a CD command
    up movies up one level
    up n movies up n levels
    top moviesto the top of the hierarchy
    exit moves to the previous higher level in the hierarchy or exits configuration mode if at the top level of the hierarchy

 

root@Junos# top edit protocols ospf area 10

[edit protocols ospf area 0.0.0.10]
root@Junos# top

[edit]
root@Junos# top edit protocols ospf area 10  

[edit protocols ospf area 0.0.0.10]
root@Junos# up

[edit protocols ospf]
root@Junos# up 2

[edit]
root@Junos# exit
The configuration has been changed but not committed
Exit with uncommitted changes? [yes,no] (yes) yes

 

 

root@Junos> show configuration | compare rollback 21   
[edit system]
+  time-zone asia/chongqing;
[edit system login class read]
+    permissions view;
-    allow-commands show;
+    allow-commands configure;
[edit system login user yangybcy authentication]
-     encrypted-password "$1$BbQKmMvk$4fNVVgGYHUog3Sn/c8rb9."; ## SECRET-DATA
+     encrypted-password "$1$/lVD51tY$81XjgiyJTvaY.W04hQ.uP1"; ## SECRET-DATA
[edit interfaces em0 unit 0 family inet]
        address 10.0.0.5/24 { … }
+       address 1.1.1.2/24;

 

 

回退配置文件
Backing out of Configuration Changes

rollback n

配置文件回退后,一定要执行commit保存。

 

配置保存:
commit 
save filename
Save tftp{ftp}://hostname/filename

收藏与分享