Junos: 使用之前
Junos: 使用之前
登录
登录界面
router (ttyu0)login: user
Password:--- JUNOS 11.1R1.10 built 2011-03-16 08:20:26 UTC
user@router>
用户模式和配置模式
登录之后可以进到两个模式中去,一个是 用户模式
,另外一个是配置模式
。
用户模式
:执行操作模式命令来监视和控制运行Junos的设备的操作。
配置模式
:一般用于操作交换机的业务。
用户模式
原意是operational mode
,所以用户模式
也可以被叫做操作模式
。
输入cli
进入用户模式:
router (ttyu0)login: root
Password:--- JUNOS 11.1R1.10 built 2011-03-16 08:20:26 UTC
root@router% cli
root@router>
在用户模式下,输入configuration
进入配置模式
router (ttyu0)login: root
Password:--- JUNOS 11.1R1.10 built 2011-03-16 08:20:26 UTC
root@router% cli
root@router> conf
root@router#
当显示
>
时为用户模式当显示
#
时为配置模式
帮助与补全
补全帮助
当你敲命令的时候,不知道有那些参数时,可以尝试在命令后面空格然后键入?
user@router> ?
Possible completions:clear Clear information in the systemconfigure Manipulate software configuration informationfile Perform file operationshelp Provide help information. . .
或者是
user@router> clear ?
Possible completions:amt Show AMT Protocol informationarp Clear address resolution informationauto-configuration Clear auto-configuration actionbfd Clear Bidirectional Forwarding Detection information. . .
完整帮助
你也可以输入 help topic
来提供完整的帮助文档
user@router> help topic interfaces ?
Possible completions:accept-data Accept packets destined for virtual addressaccept-source-mac Policers for specific source MAC addressesaccess-profile-chap CHAP profile associated with physical interfaceaccounting Packet counting for transit trafficaccounting-profile Accounting profileacfc Compression of Address and Control fields in PPP header...
或者是
user@router> help topic interfaces address Configuring the Interface AddressYou assign an address to an interface by specifying the address whenconfiguring the protocol family. For the inet family, configure theinterface's IP address. For the iso family, configure one or moreaddresses for the loopback interface. For the ccc, tcc, mpls, tnp, andvpls families, you never configure an address....
语法帮助
当你遇到一些语法问题时,可以尝试输入help reference
user@router> help reference interfaces address
addressSyntaxaddress address {arp ip-address (mac | multicast-mac) mac-address <publish>;broadcast address;...Hierarchy Level[edit interfaces interface-name unit logical-unit-number family family],[edit logical-routers logical-router-name interfaces interface-name unitlogical-unit-number family family]...
补全命令
使用Space来完成你的命令
shSpaceow iSpace
user@router> sh<space>ow i<space>
'i' is ambiguous.
Possible completions:iccp Show Inter Chassis Control Protocol... igmp Show Internet Group Management Protocol...igmp-snooping Show IGMP snooping informationinterfaces Show interface informationipv6 Show IP version 6 informationisdn 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<tab>his-is-my-policy
then accept;[edit policy-options]
user@router#
管道符
利用管道符可以过滤一些信息,从而控制输出
user@router> show route | ?
Possible completions:count Count occurrencesdisplay Show additional kinds of informationexcept Show only text that does not match a patternfind Search for first occurrence of patternhold Hold text without exiting the --More-- promptlast Display end of output onlymatch Show only text that matches a patternno-more Don't paginate outputrequest Make system-level requestsresolve Resolve IP addressessave Save output text to filetrim Trim specified number of columns from start of line
Junos: 使用之前相关推荐
- JUNOS下的浮动路由
juniper下的JUNOS浮动路由写法 routing-options { static { route 172.26.11.0/24 { qualified-nex ...
- Junos路由器静态路由及动态路由rip和ospf配置测试
一.测试拓扑: 二.基本配置: A.R1: interface Ethernet0/0 ip address 202.100.100.1 255.255.255.0 no shut inter ...
- 【Junos】手动生成Core-dump文件
常规情况下,当JUNOS进程异常或内核崩溃时,将自动生成一个Core-dump文件,有时故障排查的需要下,需手动的去生成一个Core-dump文件. 以NSD进程手动生成Core-dump为例: {p ...
- Juniper Networks 修复开源操作系统 Junos OS 等中的多个严重漏洞
消息 聚焦源代码安全,网罗国内外最新资讯! 编译:奇安信代码卫士团队 上周,Juniper 通知客户称已修复产品中的多个漏洞,多数可被用于发动拒绝服务 (DoS) 攻击. 该公司发布十几个安全公告,说 ...
- JUNOS的基本操作
重启: root@junos1.taobao.com> request system reboot ? Possible completions: <[Enter]> ...
- Junos设备密码恢复
1 重启Junos设备,遇到下图提示时按下空格键.(因为提示时间短暂,建议不断按下空格键,避免错过提示) 2 按下空格键后,出现OK提示输入 boot –s 进入单用户模式. 3 出现如下提示时,输入 ...
- Juniper JUNOS Commands (Tips and Tricks)
Juniper Networks has a Day one book for 'JunOS Tips, Techniques, and Templates 2011' in Junos Fundam ...
- Junos SRX NAT介绍
与ScreenOS相比,SRX在NAT功能实现方面基本保持一致,但在配置上有较大区别,主要差异在于ScreenOS的NAT与policy是绑定的,无论是MIP/VIP/DIP还是基于策略的NAT,在p ...
- Juniper SRX Junos升级
Juniper SRX Junos升级 这是我升级SRX 系统的过程给大家分享一下 准备工作:先准备一个Junos软件(可以到Juniper官网下)和一个3CD Ftp软件(个人认为比较稳定)还有网线 ...
- 绿盟科技网络安全威胁周报2017.22 关注Juniper Junos Space任意代码执行漏洞CVE-2017-2306...
绿盟科技发布了本周安全通告,周报编号NSFOCUS-17-22,绿盟科技漏洞库本周新增13条,其中高危0条.本次周报建议大家关注 Juniper Networks Junos Space任意代码执行漏 ...
最新文章
- python函数进阶小结_Python-进阶-functools模块小结
- css权重计算方法浅谈
- java web service_怎样新建一个Java的Web Service
- 分支-19. 阶梯电价
- LeetCode算法题7:DFS和BFS
- jdbc mysql 报错 ssl_Mybatis使用JDBC连接数据库报错及解决方案
- 【剑指offer】面试题30:包含min函数的栈(Java)
- swoole_event_add实现异步
- java参数类型不同_java – 两种不同的参数类型(将Object强制转换为Type)
- java文件处理:文件流、上传、下载
- URL编码(urlencoding)中关于空格的问题
- html打印成功回调,web前端打印实现
- CVPR 历年 Best paper(1988-2020)汇总,持续更新~
- 熊猫烧香病毒 杀毒记
- python-matplotlib-数据可视化-导入shp矢量数据并显示成图
- 抖音创意拍摄玩法让你轻松上热门,抖音分身特效教程。
- 高防服务器防御中“清洗”是什么意思
- 怎么制作手机网站?如何建一个wap手机网站?所谓手机网站指手机能访问的网站,现在手机浏览器对html...
- 区块链游戏正走上中心化老路?迷恋猫团队CEO撰文痛批
- mac 之 homebrew 配置Python环境