Juniper_JUNOS_CLI_介绍
JUNIPER介绍

解决了各种分支机构和中小企业的安全和路由需求 更强的性能,更高的稳定性 可以作为传统的防火墙、安全路由器或VPN路由器使用
Copyright 2004 Juniper Networks, Inc.
Proprietary and Confidential
防火墙、VPN、IPA、文件防毒、间谍软件检测 内网隔离、访问控制
Copyright 2004 Juniper Networks, Inc.
Proprietary and Confidential
9
理想的分支机构的安全管理
用集成的多安全功能阻挡各种攻击
网络、应用、和内容级别的攻击防护
SSG 20 SSG 140 SSG 320M SSG 350M
SSG 140
SSG 320M/350M
SSG 520M/550M
SSG 520M
SSG 550M
Copyright 2004 Juniper Networks, Inc.
Juniper设计的优化的主板,性能充分满足中小企业和分支机构的需 要,同时增加丰富的内容安全和路由功能,并且预留了未来新的安 全功能扩展的空间 采用NP芯片和模块化设计的各种网络接口(和J系列路由器共享) 可扩展的内存
Copyright 2004 Juniper Networks, Inc.
Proprietary and Confidential
ry and Confidential
11
Juniper 的SSG安全业务网关满足中小企业的需要
Security Services Gateway (SSG) 系列整合了安全和广域网封装功能 来提供安全、永续的联网 更佳的性价比和I/O 接口的灵活性 整合了业界最佳的安全和广域网接口 功能
Juniper+CLI基本配置(小结)

CLI配置:操作模式进入和退出操作模式:下面的例子显示了使用用户名root登陆到路由器进入到操作模式login: rootPassword:Last login: Wed Nov 28 18:40:03 from 192.168.161.250--- JUNOS 5.0R2.4 built 2001-09-25 02:34:13 UTCroot@52network>Exit the operational mode by using the quit command:root@52network> quit52network (ttyd0)login:设置CLI:1. set cli命令:root@52network> set CLI ?Possible completions:complete-on-space Toggle word completion on spaceidle-timeout Set the CLI maximum idle timeprompt Set the CLI command prompt stringrestart-on-upgrade Set CLI to prompt for restart after a software upgrade screen-length Set number of lines on screenscreen-width Set number of characters on a lineterminal Set terminal type2.set CLI complete-on-space这个命令将允许自动完成命令,语法如下:set CLI complete-on-space <on|off>例子:root@52network> show p^'p' is ambiguous.Possible completions:pfe Show packet forwarding engine datapim Show information about PIMpolicy Show policy informationroot@52network> show po<space>root@52network> show policy3.set CLI idle-timeout设置CLI会话空闲时的最大时间语法:set CLI idle-timeout <timeout> (0-100000 minutes)例子:root@52network> set CLI idle-timeout 1Idle timeout set to 1 minuteroot@52network> Warning: session will be closed in 10 seconds if there is no activityIdle timeout exceeded: closing session4.set CLI prompt设置cli会话操作模式下的提示符语法:set cli prompt <cli-prompt>例子:root@52network>set cli prompt newpromptnewprompt>5.set CLI restart-on-upgrade设置当软件更新完成,将提示去重新启动路由器,默认打开语法:set CLI restart-on-upgrade <on|off>6.set CLI screen-length and screen-width设置cli屏幕长度和宽度语法:set CLI screen-length <length> Number of lines on screen (0..100000) set CLI screen-width <width> Number of characters on a line (0..100000) 例子:root@52network> set CLI screen-length 2Screen length set to 2root@52network> set CLI screen-width 5Screen width set to 57. set CLI terminal设置路由器的终端类型root@52network> set CLI terminal ?Possible completions:ansi ANSI-compatible terminalsmall-xterm Small (24 line) xterm windowvt100 VT100-compatible terminalxterm Large (65 line) xterm window7. set date设置时间语法:set date <time> New date and time (YYYYMMDDhhmm.ss)例子:root@52network> set date 200202171448.00Sun Feb 17 14:48:00 UTC 20028. 操作模式中的基本操作:Function Keyboard SequenceMove cursor back one character Ctrl-bMove cursor forward one character Ctrl-fMove cursor to beginning of line Ctrl-aMove cursor to end of line Ctrl-eDelete character before the cursor Ctrl-h, Delete, Backspace Delete character the cursor is on Ctrl-dDelete word before cursor Ctrl-w, Esc-Backspace, Alt-Backspace Insert most recently deleted text at the cursor Ctrl-yRedraw the current line Ctrl-lScroll backward through history Ctrl-pScroll forward through history Ctrl-nSearch CLI history in reverse order Ctrl-rMove cursor back one word Esc-b or Alt-bMove cursor forward one word Esc-f or Alt-fDelete the word after the cursor Esc-d, Alt-dSearch CLI history Esc-/Specify the number of times to execute a key-board sequence (number from one to nine)Esc-number sequence, Alt-number sequence9. cli注释信息:root@52network> show con^'con' is ambiguous.(命令不完整)root@52network> set CLI^syntax error, expecting <command>(语法错误)10.控制cli输出信息:1.显示输出:root@52network> show configurationversion 5.0R3.3;system {host-name 52network;login {user test {uid 2001;class superuser;authentication {encrypted-password "$Upc0"; # SECRET-DATA}}user root {uid 2000;class superuser;authentication {encrypted-password "0"; # SECRET-DATA---(more)---定制输出信息使用管道参数:这个参数可以帮助在一个大的文件中快速的找到制定的信息root@52network> show configuration | ?Possible completions:count Count occurrencesdisplay Display additional informationexcept Show only text that does not match a patternfind Search for the first occurrence of a patternhold Hold text without exiting the --More-- prompt match Show only text that matches a patternno-more Don't paginate outputresolve Resolve IP addressessave Save output text to a filetrim Trim specified number of columns from start of line 2.过滤输出信息1. count:显示文件或列表行数语法:show route protocol isis | count例子:root@52network> show configuration | countCount: 143 linesroot@52network> show route protocol isis | countCount: 59 lines2.display:display命令提供显示输出xml格式语法:show configuration | display xml例子:root@52network> show configuration | display xml | find interfaces <interfaces><interface><name junos:key="key">fxp0</name><speed>100m</speed><link-mode>full-duplex</link-mode><unit><name junos:key="key">0</name><encapsulation>802.3-llc</encapsulation><family><inet><address><name junos:key="key">192.168.161.16/24</name></address></inet></family></unit></interface></interfaces></configuration></rpc-reply>3.except:此参数设置显示输出信息不包含指定信息语法:show configuration | except <pattern> pattern to avoid例子:root@52network> show configurationversion 5.0R3.3;system {host-name 52network;login {user test {uid 2001;class superuser;authentication {encrypted-password "$1$A"; # SECRET-DATA }}user root {uid 2000;class superuser;authentication {encrypted-password "niG0"; # SECRET-DATAroot@52network> show configuration | except uidversion 5.0R3.3;system {host-name 52network;login {user test {class superuser;authentication {encrypted-password "$1$A"; # SECRET-DATA}}user root {class superuser;authentication {encrypted-password "niG0"; # SECRET-DATA4.find 和match命令find查找指定信息,并且显示所有相似信息match查找指定信息,并且只显示此指定信息语法:show route | find <pattern> pattern to search forshow route | match <pattern> pattern to match against例子:root@52network> show route | find 192.168.161.0192.168.161.0/24 *[Direct/0] 3d 02:05:58> via fxp0.0192.168.161.16/32 *[Local/0] 3d 02:05:58Localroot@52network> show route | match 192.168.161.0192.168.161.0/24 *[Direct/0] 3d 02:06:085.holdhold参数设置通过up和down翻动查看文件。
juniper交换机基本操作手册

juniper交换机操作手册信息中心网络产品开发部一、Juniper管理界面说明: (4)二、典型配置 (4)2.1系统配置模式典型配置 (4)2.1.1 configure (4)2.1.2 Monitor (4)2.1.3 Ping (4)2.1.4 telnet (5)2.1.5 Traceroute (5)2.1.6 Restart (5)2.1.7 Request (5)2.1.7.1 系统重启 (5)2.1.7.2 保存救援配置 (5)2.1.7.3 系统软件升级: (5)2.1.8 Show (6)2.1.8.1查看系统硬件信息: (6)2.1.8.1.1查看系统硬件警告: (6)2.1.8.1.2查看系统硬件环境信息 (6)2.1.8.1.3查看板卡cpu和内存情况 (7)2.1.8.1.4查看交换机硬件的注册及型号 (7)2.1.8.1.5查看插槽具体信息 (7)2.1.8.1.6查看路由引擎的CPU/内存/启动时间等信息: (7)2.1.8.2查看当前系统配置 (8)2.1.8.3 查看poe口的供电情况: (9)2.1.8.4 查看系统信息: (9)2.1.8.4.1查看系统备份配置 (10)2.1.8.4.2 查看系统保存操作的基本信息 (10)2.1.8.4.3 查看系统当前时间及启动时间 (10)2.1.8.4.4查看系统传输层连接情况 (10)2.1.8.4.5查看系统进程占用资源情况 (11)2.1.8.4.6查看系统各类软件版本情况 (11)2.2管理配置模式典型配置 (12)2.2.1配置模式介绍 (12)2.2.1.1使用set命令 (12)2.2.1.2使用edit命令 (13)2.2.2 相关注意事项 (13)2.2.3配置二层端口 (14)2.2.4 配置三层端口 (14)2.2.5配置基本接口参数: (15)2.2.6 vlan的相关配置 (15)2.2.6.1配置vlan (15)2.2.6.2 将vlan部署到接口上 (15)2.2.6.3配置三层vlan端口 (16)2.2.6.4将三层vlan接口与vlan匹配 (16)2.2.7三层协议配置 (16)2.2.7.1静态路由相关配置 (16)2.2.7.2 OSPF协议相关配置 (16)2.2.7.2.1 区域配置 (16)2.2.7.2.2 配置末节及nssa区域 (17)2.2.7.2.3 ospf类型配置 (17)2.2.7.2.4 ospf邻居参数配置 (17)2.2.8 链路聚合配置 (17)2.2.8.1 配置链路聚合参数 (17)2.2.8.2 配置接口进入链路聚合接口 (18)2.2.8.3 配置聚合接口参数 (18)2.2.9 日常保障配置 (19)2.2.9.1 密码恢复 (19)2.2.9.2 恢复出厂设置 (19)一、Juniper管理界面说明:Juniper交换机一共有两种管理界面:传统CLI界面与J-web界面。
juniper交换机基本操作手册

j u n i p e r交换机基本操作手册work Information Technology Company.2020YEARjuniper交换机操作手册信息中心网络产品开发部一、Juniper管理界面说明: (5)二、典型配置 (5)2.1系统配置模式典型配置 (5)2.1.1 configure (5)2.1.2 Monitor (5)2.1.3 Ping (6)2.1.4 telnet (6)2.1.5 Traceroute (6)2.1.6 Restart (6)2.1.7 Request (6)2.1.7.1 系统重启 (6)2.1.7.2 保存救援配置 (6)2.1.7.3 系统软件升级: (6)2.1.8 Show (7)2.1.8.1查看系统硬件信息: (7)2.1.8.1.1查看系统硬件警告: (7)2.1.8.1.2查看系统硬件环境信息 (7)2.1.8.1.3查看板卡cpu和内存情况 (8)2.1.8.1.4查看交换机硬件的注册及型号 (8)2.1.8.1.5查看插槽具体信息 (8)2.1.8.1.6查看路由引擎的CPU/内存/启动时间等信息: (8)2.1.8.2查看当前系统配置 (9)2.1.8.3 查看poe口的供电情况: (10)2.1.8.4 查看系统信息: (10)2.1.8.4.1查看系统备份配置 (11)2.1.8.4.2 查看系统保存操作的基本信息 (11)2.1.8.4.3 查看系统当前时间及启动时间 (11)2.1.8.4.4查看系统传输层连接情况 (11)2.1.8.4.5查看系统进程占用资源情况 (12)2.1.8.4.6查看系统各类软件版本情况 (12)2.2管理配置模式典型配置 (13)2.2.1配置模式介绍 (13)2.2.1.1使用set命令 (13)2.2.1.2使用edit命令 (14)2.2.2 相关注意事项 (14)2.2.3配置二层端口 (15)2.2.4 配置三层端口 (15)2.2.5配置基本接口参数: (16)2.2.6 vlan的相关配置 (16)2.2.6.1配置vlan (16)2.2.6.2 将vlan部署到接口上 (16)2.2.6.3配置三层vlan端口 (17)2.2.6.4将三层vlan接口与vlan匹配 (17)2.2.7三层协议配置 (17)2.2.7.1静态路由相关配置 (17)2.2.7.2 OSPF协议相关配置 (18)2.2.7.2.1 区域配置 (18)2.2.7.2.2 配置末节及nssa区域 (18)2.2.7.2.3 ospf类型配置 (18)2.2.7.2.4 ospf邻居参数配置 (18)2.2.8 链路聚合配置 (18)2.2.8.1 配置链路聚合参数 (19)2.2.8.2 配置接口进入链路聚合接口 (19)2.2.8.3 配置聚合接口参数 (19)2.2.9 日常保障配置 (20)2.2.9.1 密码恢复 (20)2.2.9.2 恢复出厂设置 (20)一、Juniper管理界面说明:Juniper交换机一共有两种管理界面:传统CLI界面与J-web界面。
JunOS基础试验-1(基础命令)

Copyright © 2005 Juniper Networks, Inc.
Proprietary and Confidential
A-JUN-0014-EN-04-A01
12
我们将这条错误的语法用delete删除后,就可以顺利保存了
Copyright © 2005 Juniper Networks, Inc.
Copyright © 2005 Juniper Networks, Inc.
Proprietary and Confidential
A-JUN-0014-EN-04-A01ot不同 我们首先需要制定lab的使用权限,之后再为lab设定密码:lab123 [edit] jnpr@SiteA-J4350# set system login user lab class super-user [edit] jnpr@SiteA-J4350# set system login user lab authentication plaintext-password New password: Retype new password:
Copyright © 2005 Juniper Networks, Inc.
Proprietary and Confidential
A-JUN-0014-EN-04-A01
23
使用show configuration你也无权访问 test@SiteA-J4350> show configuration
Copyright © 2005 Juniper Networks, Inc.
Proprietary and Confidential
A-JUN-0014-EN-04-A01
Juniper简单入门介绍-端口,静态路由,策略

Juniper简单入门介绍-端口,静态路由,策略Juniper简单入门介绍(配置端口,静态路由,配置防火墙策略)登陆Juniper设备后,需输入edit或者configuration 命令进入系统配置模式Juniper 系统自带命令和变量可按“空格”键补齐Juniper 系统“用户自定义”变量可按TAB键补齐一、配置端口Juniper配置端口是基于物理端口下的逻辑端口进行配置,例如set interfaces ge-0/0/5 unit 0 family inet address 192.168.1.1 以上命令为ge-0/0/5口添加一个ip地址为192.168.1.1,其中unit为逻辑端口单元,范围0~16385,若再执行命令set interfaces ge-0/0/5 unit 1 family inet address 192.168.2.1 则ge-0/0/5现在有两个ip分别为192.168.1.1和192.168.2.1 以上命令也可以写成set interfaces ge-0/0/5.0 family inet address 192.168.1.1其中.0代表unit 0二、配置静态路由举例:现有网段125.39.91.240/28Juniper ge-0/0/0.0 设置ip为192.168.88.1set routing-options static route 0.0.0.0/0 next-hop 192.168.88.1其中0.0.0.0/0 表示任意目标地址,192.168.88.1为路由器直连网关。
再举例:让所有访问192.168.77.X的路由走192.168.99.1set routing-options static route 192.168.77.0/24 next-hop 192.168.99.1以上192.168.77段,掩码为24,而192.168.99.1为路由器直连网关。
Juniper路由器配置命令介绍

Juniper路由器配置命令介绍Juniper路由器配置命令介绍目录1、简介2、配置基础命令2.1 进入操作模式2.2 配置系统参数2.3 设置管理接口2.4 配置路由表3、高级配置命令3.1 OSPF配置3.2 BGP配置3.3 VRF配置3.4 MPLS配置4、安全配置命令4.1 配置防火墙4.2 配置安全策略4.3 配置VPN4.4 配置ACL5、故障排查命令5.1 显示命令5.2 路由故障排查5.3 硬件故障排查5.4 访问控制故障排查6、性能优化命令6.1 接口配置6.2 QoS配置6.3 缓存配置6.4 动态路由配置1、简介Juniper路由器是一种支持多种网络协议的高性能路由器。
本文档介绍了Juniper路由器的配置命令,并根据功能分类进行了细化。
2、配置基础命令2.1 进入操作模式- login:登录路由器- cli:进入命令行操作模式- configure:进入配置操作模式2.2 配置系统参数- set system hostname <hostname>:设置路由器主机名- set system domn-name <domn-name>:设置路由器域名- set system time-zone <time-zone>:设置时区- set system name-server <ip-address>:设置DNS服务器2.3 设置管理接口- set interfaces <interface> unit <unit> family inet address <ip-address/mask>:配置管理接口的IP地质- set interfaces <interface> unit <unit> family inet address dhcp:使用DHCP分配管理接口的IP地质2.4 配置路由表- set routing-options static route <destination> next-hop <next-hop>:配置静态路由- set routing-options router-id <id>:配置路由器ID- set protocols ospf area <area> interface <interface>:配置接口与OSPF区域的关联3、高级配置命令3.1 OSPF配置- set protocols ospf area <area> interface <interface>:配置接口与OSPF区域的关联- show ospf neighbor:显示OSPF邻居信息- show ospf route:显示OSPF路由表3.2 BGP配置- set protocols bgp group <group-name> neighbor<neighbor-address>:配置BGP邻居- set protocols bgp group <group-name> family <family>:配置BGP邻居的地质族- show bgp neighbor:显示BGP邻居信息- show bgp summary:显示BGP邻居摘要信息3.3 VRF配置- set routing-instances <instance-name> interface<interface>:配置接口与VRF的关联- set routing-instances <instance-name> routing-options static route <destination> next-hop <next-hop>:配置静态路由3.4 MPLS配置- set protocols mpls interface <interface>:启用接口的MPLS功能- set protocols mpls label-switched-path <LSP-name> to <destination-address> : 配置LSP的路径4、安全配置命令4.1 配置防火墙- set security policies from-zone <from-zone> to-zone <to-zone> policy <policy-name> match <match-conditions> then permit/deny:配置安全策略4.2 配置安全策略- set security zones security-zone <zone-name> address-book address <address-name> <ip-address>:配置地质对象- set security zones security-zone <zone-name> host-inbound-traffic system-services <services>:配置允许进入防火墙的服务4.3 配置VPN- set security ike proposal <proposal-name> authentication-method <method>:配置IKE提议- set security ike gateway <gateway-name> ike-policy <policy-name>:配置IKE网关- set security ipsec vpn <vpn-name> bind-interface<interface>:绑定VPN到接口4.4 配置ACL- set firewall family inet filter <filter-name> term <term-name> from protocol <protocol>:配置ACL规则- set firewall family inet filter <filter-name> term <term-name> then accept/discard:配置ACL规则动作5、故障排查命令5.1 显示命令- show interfaces <interface> detl:显示接口详细信息- show route <destination> : 显示路由信息- show chassis hardware:显示硬件信息5.2 路由故障排查- show bgp summary:显示BGP邻居摘要信息- show ospf neighbor:显示OSPF邻居信息- show route protocol <protocol>:显示指定协议的路由5.3 硬件故障排查- show chassis hardware:显示硬件信息- show log messages:显示系统日志消息- request support information:收集支持信息文件5.4 访问控制故障排查- show security policies from-zone <from-zone> to-zone <to-zone> policy <policy-name>:显示安全策略信息- show security zones interfaces:显示接口与安全域的关联信息6、性能优化命令6.1 接口配置- set interfaces <interface> mtu <mtu-size>:设置接口MTU大小- set interfaces <interface> description <description>:设置接口描述6.2 QoS配置- set class-of-service interfaces <interface> unit<unit> scheduler-map <map-name>:为接口配置调度器映射- set class-of-service scheduler-maps <map-name> forwarding-class <forwarding-class> scheduler <scheduler-name>:配置调度器映射6.3 缓存配置- set forwarding-options cache hit-cache-size <size>:设置缓存大小- set forwarding-options cache timeout <timeout-value>:设置缓存超时时间6.4 动态路由配置- set protocols ospf area <area> interface <interface> passive:将接口设置为OSPF被动接口- set routing-instances <instance-name> interface <interface> passive:将接口设置为VRF被动接口附件:无法律名词及注释:无。
Juniper路由产品简介

M120路由器
120 Gbps吞吐能力
150Mpps转发能力
规格
▪ 12RU ¼机架系统 ▪ 宽=17.5”, 深=24.3” 高=20.75”
(约12 RU)
供电
▪ 1 + 1冗余电源 ▪ 直流电源: 40-60V DC, 60A ▪ 交流电源: 100-240 VAC, 15A
冷却系统
▪ 从前向后送风来达到冷却效果 ▪ 前后风扇托盘为冗余设计
DS-3 to OC-192/10GE
6 10GE; 6 OC192; 128 GE
8
16, plus up to two 10G cFPCs
M320
320+ Gbps DS-3 to
OC-192/10GE 16 10GE; 16 OC192;
256 GE
32
24
9
4
3
Copyright © 2009 Juniper Networks, Inc.
1st integrated FW/VPN/IDP 1st ATM OC-12 interface
JUNIPER核心路由设备历史演进
1st 2.5G platform (8) Ports in ½ rack
1st 10G platform (8) Ports in ½ rack
Powered by JUNOS
1st 40G platform (8) Ports in ½ rack
Optimal Scale 3rd Dimension
40 Gbps PFE 1st Optical Integration
1998 M40
2000 M160
2002 T640
2004 TX Matrix
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
输入以下命令,使用空格键将其补齐: sh<space>ow ro<space>ute sh<space>ow ch<space>assis h<space>ardware sh<space>ow conf<space>iguration cl<space>ear rip s<space>tastics res<space>tart ro<space>uting g<space>racefully
rollback只是将配置恢复到Candidat配置e
rollback 或者 rollback 0 恢复上次commit之前的配置
rollback 1 上两次commit之前的配置
总共可以恢复49份配置
rollback ? 可以显示每次commit的时间,确定恢复那份配置
run file show /config/juniper.conf.n.gz n为1-3,可以查看需要恢复配置的内容,对应于rollback 1-3 run file show /config/juniper.conf.gz对应rollback 0
run file show /var/db/config/juniper.conf.n.gz
n为4-49,可以查看需要恢复配置的内容,对应于rollback 4-
49
Copyright © 2009 Juniper Networks, Inc.
15 | Copyright © 2009 Juniper Networks, Inc. |
Syntax
load (replace | merge | override) filename
只改变candidate 配置 需要 commit 来生效
Use the load command to
Override 覆盖已经存在的配置
要覆盖整个配置,使用override 选项
merge 新的配置语句合并到已经存在的配置文件中 replace 用新的配置替代已经存在的配置
Copyright © 2009 Juniper Networks, Inc.
13 | Copyright © 2009 Juniper Networks, Inc. |
加载配置文件
Configuration information can come from an ASCII file prepared offline
JUNOS CLI 介绍
JUNOS CLI模式
JUNOS CLI使用层次化配置结构,共有两种模式
用户模式(operational mode):检查当前配置、设 备运行状态、路由及会话表等状态,并通过执行 config或edit命令进入配置模式
配置模式(Configuration Mode):对各相关模块进 行配置,能够通过run命令执行用户模式下的所有命 令
Copyright © 2009 Juniper Networks, Inc.
7 | Copyright © 2009 Juniper Networks, Inc. |
获取帮助
可以在命令行中任何地方输入 ‘?’ 来获取命令帮 助
帮助内容取决于你在哪里输入? 命令行开始处输入”?” 显示最上层的帮助 命令最后输入”?” 显示下一层次的帮助 如 root@hostname>show ? 显示命令show命 令下一层可带参数 命令中间输入”?” 显示当前层次匹配的命令 root@hostname>s? 显示set、show、ssh、 start
命令参考说明
help syslog <tag>
系统日志错误信息帮助 help syslog
CHASSISD_ANTICF_PIM_CHECK_FAILED
Copyright © 2009 Juniper Networks, Inc.
9 | Copyright © 2009 Juniper Networks, Inc. |
top
Less Specific
chassis firewall interfaces protocols system more…
alarm
clock
fpc
atm e3 ethernet sonet t3
More Specific
Copyright © 2009 Juniper Networks, Inc.
lab@M7i_GZ> show interfaces | save /var/tmp/in.txt Wrote 859 lines of output to '/var/tmp/in.txt'
>show log bgp.log | no-more 不分页(一次输出完)
>file show Demo | find fxp1
>show interfaces | display xml 以xml格式显示输出 >Show configure | display set 以set格式输出 <重要>
Copyright © 2009 Juniper Networks, Inc.
11 | Copyright © 2009 Juniper Networks, பைடு நூலகம்nc. |
Copyright © 2009 Juniper Networks, Inc.
4 | Copyright © 2009 Juniper Networks, Inc. |
层次化配置结构
配置结构采用树型构架,类似于UNIX/windows的 目录结构
Copyright © 2009 Juniper Networks, Inc.
14 | Copyright © 2009 Juniper Networks, Inc. |
基本命令-rollback
使用 rollback 命令来恢复commit以前的配置
JUNOS配置管理
活动配置(Active config):当前设备运行的配 置 候选配置(Candidate Config):进入配置模式修 改的配置,是活动配置的副本,执行commit命令成 为Active config
此外可通过执行show | compare比较候选配置和 活动配置之间的差异
5 | Copyright © 2009 Juniper Networks, Inc. |
层次化配置命令
使用edit来进入配置的层次 类似于UNIX的 cd 命令
edit system login user lab
使用up来返回上一层配置层次 类似于UNIX的 cd ..命令
Copyright © 2009 Juniper Networks, Inc.
8 | Copyright © 2009 Juniper Networks, Inc. |
在线帮助
help topic ?
配置方法指南
help reference ?
Copyright © 2009 Juniper Networks, Inc.
12 | Copyright © 2009 Juniper Networks, Inc. |
配置文件的管理
配置文件可以直接存在本地或输出到外部主机; 可以随时保存50个配置文件(机器自动保存); 可以另存任意的配置文件(手工保存); 以上配置文件可以直接在设备上查看,也可以下载到PC中查看; 使用时直接load文件, commit提交生效即可; 极大的简化了配置的时间和精力, 任何时间任何地点, 可以在1-2秒内恢复原 有配置; 支持一行一行察看命令的方式;
使用top返回最上层
类似于UNIX的cd /命令
Copyright © 2009 Juniper Networks, Inc.
6 | Copyright © 2009 Juniper Networks, Inc. |
命令补齐--TAB和空格键
基本命令-rename
ge-4/0/2 接口的地址被错误设置为10.73.24.103/24。
[edit interfaces]
user@hostname# show
[edit] admin# show system domain-name ; time-zone Asia/Hong_Kong; root-authentication {
encrypted-password "$1$Y1lF.qft$nKjoqliNCQ/b4ZpAbKgXz/"; ## SECRET-DATA } login {
class netops { permissions view;
} user jnpr {
}
admin# show system | display set set system host-name JUNOS-lab set system domain-name set system time-zone Asia/Hong_Kong set system saved-core-context
3 | Copyright © 2009 Juniper Networks, Inc. |
用户模式和配置模式之间切换
% default when you login as “root” % cli > configure # show configuration # exit > start shell % cli > exit % exit