博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Junos: 使用之前
阅读量:3924 次
发布时间:2019-05-23

本文共 3998 字,大约阅读时间需要 13 分钟。

Junos: 使用之前

登录

登录界面

router (ttyu0)login: userPassword:--- JUNOS 11.1R1.10 built 2011-03-16 08:20:26 UTCuser@router>

用户模式和配置模式

登录之后可以进到两个模式中去,一个是 用户模式,另外一个是配置模式

用户模式:执行操作模式命令来监视和控制运行Junos的设备的操作。

配置模式:一般用于操作交换机的业务。

用户模式 原意是 operational mode,所以 用户模式 也可以被叫做 操作模式

输入cli 进入用户模式:

router (ttyu0)login: rootPassword:--- JUNOS 11.1R1.10 built 2011-03-16 08:20:26 UTCroot@router% cliroot@router>

在用户模式下,输入configuration进入配置模式

router (ttyu0)login: rootPassword:--- JUNOS 11.1R1.10 built 2011-03-16 08:20:26 UTCroot@router% cliroot@router> confroot@router#

当显示 >时为用户模式

当显示 #时为配置模式

帮助与补全

补全帮助

当你敲命令的时候,不知道有那些参数时,可以尝试在命令后面空格然后键入

user@router> ?Possible completions:  clear               Clear information in the system  configure           Manipulate software configuration information  file                Perform file operations  help                Provide help information  . . .

或者是

user@router> clear ?Possible completions:  amt                  Show AMT Protocol information  arp                  Clear address resolution information  auto-configuration   Clear auto-configuration action  bfd                  Clear Bidirectional Forwarding Detection information  . . .

完整帮助

你也可以输入 help topic 来提供完整的帮助文档

user@router> help topic interfaces ?Possible completions:  accept-data          Accept packets destined for virtual address  accept-source-mac    Policers for specific source MAC addresses  access-profile-chap  CHAP profile associated with physical interface  accounting           Packet counting for transit traffic  accounting-profile   Accounting profile  acfc                 Compression of Address and Control fields in PPP header  ...

或者是

user@router> help topic interfaces address                             Configuring the Interface Address   You assign an address to an interface by specifying the address when   configuring the protocol family. For the inet family, configure the   interface's IP address. For the iso family, configure one or more   addresses for the loopback interface. For the ccc, tcc, mpls, tnp, and   vpls families, you never configure an address.   ...

语法帮助

当你遇到一些语法问题时,可以尝试输入help reference

user@router> help reference interfaces address    address Syntax     address address {         arp ip-address (mac | multicast-mac) mac-address 
; broadcast address; ... Hierarchy Level [edit interfaces interface-name unit logical-unit-number family family], [edit logical-routers logical-router-name interfaces interface-name unit logical-unit-number family family]...

补全命令

使用Space来完成你的命令

shSpaceow iSpace

user@router> sh
ow i
'i' is ambiguous.Possible completions: iccp Show Inter Chassis Control Protocol... igmp Show Internet Group Management Protocol... igmp-snooping Show IGMP snooping information interfaces Show interface information ipv6 Show IP version 6 information isdn Show Integrated Services Digital isis Show Intermediate System-to-Intermediate...user@router> show i

使用Tab来补全命令

show policy-statement tTabhis-is-my-policy

then accept;

[edit policy-options]user@router# show policy-statement t
his-is-my-policy then accept;[edit policy-options]user@router#

管道符

利用管道符可以过滤一些信息,从而控制输出

user@router> show route | ?Possible completions:  count                Count occurrences  display              Show additional kinds of information  except               Show only text that does not match a pattern  find                 Search for first occurrence of pattern  hold                 Hold text without exiting the --More-- prompt  last                 Display end of output only  match                Show only text that matches a pattern  no-more              Don't paginate output  request              Make system-level requests  resolve              Resolve IP addresses  save                 Save output text to file  trim                 Trim specified number of columns from start of line

转载地址:http://vqugn.baihongyu.com/

你可能感兴趣的文章
mysql分库分表解决方案思路
查看>>
redis基本类型(1)
查看>>
redis的机制(2)
查看>>
redis 主从集群
查看>>
redis哨兵机制
查看>>
redis cluster
查看>>
Apache Mina自定义编解码案例 .
查看>>
Apache MINA 快速入门指南-时间服务器
查看>>
B/S困惑讲解(C/S XML HTML javascript jquery ajax)
查看>>
Spring实现JavaMail邮件发送功能和InitializingBean(1)
查看>>
Spring实现JavaMail邮件发送功能和InitializingBean(2)
查看>>
Spring Java 发送各种邮件
查看>>
Spring之Email<封装了常用的四种发送Email的方法(TEXT,HTML,IMG,FILE)>
查看>>
Android开发必备资料之50例源码汇总
查看>>
推荐一系列优秀的Android开发源码
查看>>
Android - TabHost 选项卡功能用法布局详细讲解(1)
查看>>
Android - TabHost 选项卡功能用法布局详细讲解(2)
查看>>
Android开源项目(1)
查看>>
Android中ListView分页加载数据
查看>>
如何生成二维码代码详解
查看>>