JUNIPER设备

华为,思科是两种配置(运行配置+保存配置)
Juniper是三种配置(运行配置+保存配置1-49号+编辑中的配置)

#juniper 设备BGP设备https://www.juniper.net/documentation/zh_Hans/junos/information-products/pathway-pages/config-guide-routing/config-guide-routing-bgp.html#shell模式start shell#对比配置,回退操作#status             //查看登录用户,进程号,当前状态等#show system users      //查看当前登录的用户#show configure | dis detail    //显示配置文件,这种会有描述的哦,教你怎么解读配置#show | compare         //查看当前修改的那些配置#show | compare rollback 2  //比较当前和历史哪个配置#show configuration | compare rollback 2#rollback           //恢复最近运行的配置#rollback 2         //恢复历史指定配置save /var/tmp/20190617.txt  //将配置保存在>configure      //进入配置模式>configure private  //进入私有配置模式,与其他用户不干扰,除非修改了同一文件,#update         //当有人修改了配置,我们也要修改保存,可以使用update先更新,再保存#commit confirmed   //提交配置并生效10分钟,10分钟后需再次确认,否则自动还原之前配置自动还原,若确认没问题,再次手动commit即可#commit check       //提交命令前检查命令是否正确#commit and-quit    //提交配置,并退出到>操作模式#commit at 22:10    //在22:10分的时候,进行提交,这是一个时间计划任务,一旦指定,不能更改其他任何配置,只能清除clear>clear system commit    //清除提交配置的计划任务#commit comment "this is down bgp"  //提交配置时,记录一个描述日志,以便查询#接口类型ge-0/0/7    //接口类型-母版位置-子卡位置-模块位置fxp0        //带外管理口fxp1        //路由平面与转发平面互联接口,它不能被配置,但是它可以被配置物理口配置IP,必须使用unit0 而且只能配置一个unit,同一个unit支持多个IP,并且不会被覆盖#查看运行配置(count统计,find 从什么开始,match 包含,except 排除)show configuration system loginshow configuration protocols bgpshow configuration | display set | count | match ospf   //查看ospf配置有多少行show configuration | display set | except ospf          //排除ospf配置deactivate interface ge-0/0/6 unit 1        //注释某条命令,使其不生效activate interface ge-0/0/6 unit 1          //取消注释,让命令生效up      //返回上一级top     //返回到顶层copy interface ge-0/0/6 to ge-0/0/7     //将6口的配置复制到7口load set terminal               //批量粘贴录入配置,按Ctrl+D结束#替换配置replace(进入em2的逻辑接口,将192.168.1.1/24替换成172.16.1.1/24)edit interfaces em2 unit 0replace pattern 192.168.1.1/24 with 172.16.1.1/24#重命名rename(将em1改成em2)rename interfaces em1 to em2#范围wildcard(删除8-11接口,将0-5还有7网口设置为全双工模式,)#wildcard delete interfaces em[8-11]#wildcard range set interfaces em[0-5,7] link-mode full-duplex#配置root密码以明文的形式()set system root-authentication plain-test-password以密文的形式(加密后的密文,要注意哦)set system root-authentiaction encrypted-password "sadasdsdffsd"#用户管理新增用户,设置安全级别,设置权限set system login user fnk class super-userset system login user fnk authentiaction plain-test-password查看用户登陆配置show system login | display set用户安全级别组、set system login user fnk class ?注意:Junios可以在不插模块的情况下进行配置,不会出错,但是无法通过show configuration inter terse 进行查看到
提示:Junios中ospf宣告的是接口,而不是地址.#查看光功率show interfaces diagnostics optics xe-7/0/0#查看vlanif的配置show interfaces irb.3301   #使用特定vrf进行ping测试ping 1.1.1.1 routing-instance VRF-CN#查看哪个peer发布了哪些网段show route protocol bgp advertising-protocol bgp 23.119.64.225  #查看那个peer接收了哪些网段show route protocol bgp receive-protocol bgp 23.119.64.225show route protocol bgp receive-protocol bgp 38.21.225.63 all       #查看未过滤的条目#查看bgp路由,包含起源as号show route protocol bgp 9.9.9.9#MX960上写静态路由
set routing-instances VRF-Highbandwith routing-options static route 211.37.191.26/32 next-hop 23.19.4.225#SJ优化段添加网关
+++++++
10008-1set groups Gateway interfaces irb unit "<*29??>" family inet address 45.1.230.125/25 virtual-gateway-address 45.1.230.1
set groups Gateway interfaces irb unit "<*29??>" family inet address 45.1.230.253/25 virtual-gateway-address 45.1.230.129
set interfaces irb unit 2901 family inet address 45.1.230.125/25 virtual-gateway-address 45.61.230.1
set interfaces irb unit 2901 family inet address 45.1.230.253/25 virtual-gateway-address 45.61.230.129
set routing-instances aggToMX960 routing-options static route 45.1.230.0/25 discard
set routing-instances aggToMX960 routing-options static route 45.1.230.0/25 tag 65002
set routing-instances aggToMX960 routing-options static route 45.1.230.128/25 discard
set routing-instances aggToMX960 routing-options static route 45.1.230.128/25 tag 6500210008-2
set groups Gateway interfaces irb unit "<*29??>" family inet address 45.1.230.126/25 virtual-gateway-address 45.1.230.1
set groups Gateway interfaces irb unit "<*29??>" family inet address 45.1.230.254/25 virtual-gateway-address 45.1.230.129
set interfaces irb unit 2901 family inet address 45.1.230.126/25 virtual-gateway-address 45.1.230.1
set interfaces irb unit 2901 family inet address 45.1.230.254/25 virtual-gateway-address 45.1.230.129
set routing-instances aggToMX960 routing-options static route 45.1.230.0/25 discard
set routing-instances aggToMX960 routing-options static route 45.1.230.0/25 tag 65002
set routing-instances aggToMX960 routing-options static route 45.1.230.128/25 discard
set routing-instances aggToMX960 routing-options static route 45.1.230.128/25 tag 65002#SJ-10008上写32路由set routing-instances aggToMX960 routing-options static route 3.21.28.89/32 next-table CNCommunity.inet.0#SJ接入交换机接口学不到mac,就这样操作delete interfaces ge-1/0/41 unit 0 family ethernet-switching vlan members CNcommitset interfaces ge-1/0/41 disablecommitset interfaces ge-1/0/41 unit 0 family ethernet-switching vlan members CNdelete interfaces ge-1/0/41 disablecommit#SJ10008上监控vlanfi 2层数据统计monitor traffic interface irb.3301 no-resolve layer2-headers#查看限速模板show configuration firewall #查看接口是否存在丢包等show interfaces ge-1/0/6 extensive#配置限速模板set firewall family ethernet-switching filter P350M interface-specificset firewall family ethernet-switching filter P350M term all then policer P350Mset firewall policer P350M if-exceeding bandwidth-limit 350mset firewall policer P350M if-exceeding burst-size-limit 35mset firewall policer P350M then discard#接口应用限速模板set interfaces xe-0/0/5 unit 0 family ethernet-switching filter input P350Mset interfaces xe-0/0/5 unit 0 family ethernet-switching filter output P350Mjuniper查询路由信息
#显示某条 BGP 路由的详细信息show route protocol bgp 4.0.0.0/8 exactshow route protocol bgp 45.61.230.0 exact detail#查看向某 BGP 邻居宣告的路由show route advertising-protocol bgp 59.43.0.2 | match 58.30#查看从某 BGP 邻居接收的路由,经过策略过滤的show route receive-protocol bgp 59.43.0.2 | match 64.114#查看从某 BGP 邻居接收的路由,未经过策略过滤的show route receive-protocol bgp 59.43.0.2 all | match 64.114#用 AS PATH 正则表达式来匹配察看 BGP 路由(以 AS-PATH 64523 开头的 BGP 路由)show route protocol bgp aspath-regex "^64523"

juniper 5200交换机如何做本地端口镜像

这里争对聚合口ae13的子接口ae13.3501的in,out方向数据,镜像到 xe-1/0/4:2.0口子

set interfaces ae13 flexible-vlan-taggingset interfaces ae13 unit 3501 vlan-id 3501set interfaces ae13 unit 3501 family inet address 10.60.220.5/30set interfaces xe-1/0/4:2 unit 0 family ethernet-switching#关键是下面两行set forwarding-options analyzer mirror-mactest input egress interface ae13.3501set forwarding-options analyzer mirror-mactest output interface xe-1/0/4:2.0

vyatta基本操作

show history
#查看当前生效命令show configuration commands黑洞系统查询sh configuration commands | match bl写一条黑洞confset protocols static route 23.252.1.90/32 'blackhole'commit    #保存删除黑洞delete protocols static route 1.1.1.1/32 blackholeBGP相关操作show ip bgp sum    #查看BGP邻居reset ip bgp all   #重置BGP邻居sh ip bgp neighbors 123.123.123.123 advertised-routes   #查看向某个peer发布了什么路由

SDN设备查看流表

#指定协议为openflow13  以及端口为eth-0-2ovs-ofctl dump-flows br0 -O openflow13 in_port=2

参考链接 :

网络设备常用排障命令——Juniper : https://www.wsfnk.com/archives/794.html

网络设备常用排障命令——Juniper vyatta 大河SDN相关推荐

  1. FTP基础知识及排障方法

    FTP基础知识及排障方法<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" / ...

  2. Traceroute网络排障实用指南

    目录 一.概述 1.1 什么是Traceroute 1.2Traceroute的问题所在 二.Traceroute原理 2.1Traceroute实现原理 2.2Traceroute实现细节 2.3T ...

  3. linux启用日志记录功能,Linux下启用Open vSwitch的日志功能以便调试和排障

    问题 我试着为我的Open vSwitch部署排障,鉴于此,我想要检查它的由内建日志机制生成的调试信息.我怎样才能启用Open vSwitch的日志功能,并且修改它的日志等级(如,修改成INFO/DE ...

  4. MySQL集群节点宕机,数据库脑裂!如何排障?

    作者介绍 王晶,中国移动DBA,负责"移动云"业务系统的数据库集成架构设计.运维.优化等工作:擅长技术领域MySQL,获Oracle颁发的"MySQL DBA" ...

  5. 【干货】掌握这5招,Linux排障不再怕

    Linux排障技巧在数据中心十分受人重视.数据中心专家对此提供了一些Linux服务器排障相关的性能问题.优化和便利工具参考. 1.Linux性能工具好用吗? 也许你从没使用过pchar.pidstat ...

  6. 服务器的智能监控管理结束,通过服务器监控告警进行异常排障

    告警是服务监控应用及时发现.主动提醒用户异常的功能,保证了用户在任何情况下都能及时发现异常信息,提升 IT 人员运维的效率. 本教程介绍如何使用告警功能实现服务器的异常排障. 在目标监控机器上安装 l ...

  7. dump解析入门-用VS解析dump文件进行排障

    突然有一天部署在服务器的一个应用挂掉了,没办法只能进入服务器打开 [事件查看器]查看下,好不容易找到了打开后一脸懵逼 事件查看器查到的内容根本对我们排障没有任何作用. 在这个时候如果有对应的dump文 ...

  8. 工业以太网交换机故障的排障步骤

    工业以太网交换机在工业安防领域的应用可以说是非常的广泛了,我们在使用工业交换机的过程中,难免会遇到各种各样的故障问题,但是工业以太网交换机的故障有多种多样,不同的故障有不同的表现形式,那么,我们在遇到 ...

  9. openstack常用运维命令_OpenStack运维指南pdf

    OpenStack运维指南 内容简介 本书分两部分,全面介绍如何构建基于参考架构的OpenStack云系统和执行日常管理任务.一部分全面介绍如何充分发挥OpenStack强大的灵活性,通过各种正确决策 ...

最新文章

  1. PHP 表单 - 4(验证邮件和URL)
  2. javaweb添加拦截器
  3. python取百位数个位数_使用Python把数值形式的金额变成人类可读形式
  4. 50%人使用视听设备音量超标,如何正确佩戴耳机?
  5. Vue实现仿音乐播放器7-实现音乐榜单效果
  6. QT实现渲染到帧缓冲区,创建其纹理.
  7. [Swift]LeetCode793. 阶乘函数后K个零 | Preimage Size of Factorial Zeroes Function
  8. 代码查看工具_这样Review代码牛逼啦!
  9. java创建临时文件夹_java创建临时文件
  10. SSM+Maven+Dubbo+Zookeeper简单项目实战以及易错注意点
  11. 信贷系统学习总结(3)——现金贷之产品架构和信审系统
  12. 【VMCloud云平台】SCSM(十)服务请求到资源落地
  13. SQLite的sqlite3_column_blob函数
  14. oracle中insert语句怎,Oracle中Insert语句的总结
  15. 利用python第三方库过抖音小店后台滑块
  16. Untitled555555555
  17. 成都待慕电商:抖音极速版商品卡免佣扶持政策规则
  18. VHDL设计——交通红绿灯控制器模块
  19. Unirech阿里云国际版云服务器ecs的应用场景有哪些?
  20. 这样Review代码牛逼啦!

热门文章

  1. Pandas基础(一)——Pandas基础
  2. 一等奖60万,首届“唱圆”杯AI翻译大赛报名中
  3. 计算机技术在档案管理中的应用,浅谈计算机技术在档案管理中的应用
  4. 如何开启outlook邮箱的pop3和smtp_怎么在电子邮件客户端上登录腾讯邮箱(QQ邮箱 )?
  5. poj 1191 棋盘分割(记忆化dp+递归)
  6. VS2012下基于Glut OpenGL GL_POLYGON示例程序:
  7. Hyper-V 2016 系列教程49 Windows Server Backup 备份计划的新建备份、修改备份和停止备份...
  8. MacPE+WinPE-黑苹果之路
  9. 一致性 hash 算法
  10. RMBP下eclipse支持高清