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

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

  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 summary
    show security flow session destination-prefix <ip-prefix>
    show security flow session session-identifier <value>
    show interface extensive
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章