【MX-SRX】使用Monitor traffic interface监控到达设备本身接口流量

排查Host-bound流量案例时,更常用 的是使用命令monitor traffic interface命令:

常用配置示例命令:

  1. Match an IP address: monitor traffic interface ge-0/0/x matching "host 10.130.38.94"

  2. Match a network: monitor traffic interface ge-0/0/x matching "net 10.1.1.0/24"

  3. Match a port: monitor traffic interface ge-0/0/x matching "port 22"

  4. Match TCP port 179: monitor traffic interface ge-0/0/x matching "tcp port 179"

  5. Match UDP port 646: monitor traffic interface ge-0/0/x matching "udp port 646"

  6. Match ARP: monitor traffic interface ge-0/0/x matching arp

  7. Match OSPF: monitor traffic interface ge-0/0/x no-resolve matching "ip proto 89"

  8. Match "not tcp port 3128" and match "tcp port 23": monitor traffic interface ge-0/0/x matching "not tcp port 3128 and tcp port 23"

  9. Match ISIS packets: monitor traffic interface xe-5/0/0.1 matching iso

  10. Match MPLS packets: monitor traffic interface xe-5/0/0.1 matching mpls

  11. Match IPv6 packets: monitor traffic interface xe-5/0/0.1 matching ip6

  12. Match packets sent to a particular destination: monitor traffic interface xe-5/0/0.1 matching "dst host 172.16.1.1"

  13. Match packets coming from a particular source: monitor traffic interface xe-5/0/0.1 matching "src host 192.168.1.1"

  14. Match packets with a specific source MAC address: monitor traffic interface xe-5/0/0.1 matching "ether src b0:a8:6e:70:fb:39"

  15. Match ICMPv4 packets from/for a specific address: monitor traffic interface ge-0/0/0.0 matching "icmp && host 172.16.1.2"

  16. Match ICMPv6 packets: monitor traffic interface xe-5/0/0.1 matching icmp6

  17. Match LDP packets, along with a specific address: monitor traffic interface ae5.0 matching "tcp && port 646 && host 192.168.2.2"

转载于:https://blog.51cto.com/8019770/2383998

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值