使用flow、debug 工具排查Juniper srx故障

Flow 的排查
一般配置完成後,發現業務訪問不正常或是不通,須要使用一些方法進行排查session

  1. 在接口上抓包查看實時的 Traffic 信息
    lab@SRX210B> monitor traffic interface ge-0/0/0.0 no-resolve
  2. Flow 的 Debug
    set security flow traceoptions file flowlog #生成文件名 flowlog
    set security flow traceoptions flag basic-datapath
    set security flow traceoptions packet-filter to0 source-prefix 192.168.1.61/32
    set security flow traceoptions packet-filter to0 destination-prefix 192.168.0.12/32
    #上面 2 條是設置一個 packet-filter 把從源 192.168.1.61 到目標 192.168.0.12 的流量
    Debug 信息記入 floglog 文件
    lab@srx210B>show log filelog #查看 filelog 文件內容
    lab@srx210B>clear log filelog #清除 filelog 文件內容
  3. 其餘可用的命令show security flow session summaryshow security flow session destination-prefix <ip-prefix>show security flow session session-identifier <value>show interface extensive
相關文章
相關標籤/搜索