Chinaunix首页 | 论坛 | 博客
  • 博客访问: 89971
  • 博文数量: 30
  • 博客积分: 1501
  • 博客等级: 上尉
  • 技术积分: 300
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-01 09:23
文章分类

全部博文(30)

文章存档

2011年(6)

2010年(24)

分类: 系统运维

2011-04-09 12:16:18

CLI操作模式:
root@junos1% cli
root@junos1.taobao.com>
CLI配置模式:
root@junos1.taobao.com> configure 
Entering configuration mode

[edit]
root@junos1.taobao.com# 

JUNOS层次划分:
                             top
                               |
----------------------------------------------------------------------------------------------------
|          |              |              |              |             |
chassis           firewall               interfaces            protocols           system                etc.
|
----------------------------------------
|          |           |
alarm              clock                   fpc
|
----------------------------------------------------------------------------
|          |           |        |                |
atm                  e3                  ethernet            sonet                   t3


如何转换层次:
root@junos1.taobao.com# edit chassis alarm ethernet
[edit chassis alarm ethernet]    \\这个显示的就是当前你所在层次
root@junos1.taobao.com# 
跳到上一层:
[edit chassis alarm ethernet]
root@junos1.taobao.com# up 

[edit chassis alarm]
root@junos1.taobao.com#
直接跳到顶层:
[edit chassis alarm]
root@junos1.taobao.com# top 

[edit]
root@junos1.taobao.com# 
在子层中使用其他层命令:
[edit protocols ospf]
root@junos1.taobao.com# top show interfaces

从一个子层跳入另一子层:
[edit protocols ospf]
root@junos1.taobao.com# top edit interfaces em0 unit 0 family inet   

[edit interfaces em0 unit 0 family inet]
root@junos1.taobao.com# 


阅读(717) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~