Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.2.1
Copy Link

Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.

  config switch-controller traffic-sniffer
      Description: Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.
      set erspan-ip {ipv4-address}
      config target-mac
          Description: Sniffer MACs to filter.
          edit <mac>
              set description {string}
              set src-entry-id {integer}
              set dst-entry-id {integer}
          next
      end
      config target-ip
          Description: Sniffer IPs to filter.
          edit <ip>
              set description {string}
              set src-entry-id {integer}
              set dst-entry-id {integer}
          next
      end
      config target-port
          Description: Sniffer ports to filter.
          edit <switch-id>
              set description {string}
              set in-ports <name1>, <name2>, ...
              set out-ports <name1>, <name2>, ...
          next
      end
  end

config switch-controller traffic-sniffer

Parameter Name Description Type Size
erspan-ip Configure ERSPAN collector IP address. ipv4-address Not Specified
Parameter Name Description Type Size
description Description for the sniffer MAC. string Maximum length: 63
src-entry-id FortiSwitch source entry ID for the sniffer MAC. integer Minimum value: 0 Maximum value: 4294967295
dst-entry-id FortiSwitch dest entry ID for the sniffer MAC. integer Minimum value: 0 Maximum value: 4294967295
Parameter Name Description Type Size
description Description for the sniffer IP. string Maximum length: 63
src-entry-id FortiSwitch source entry ID for the sniffer IP. integer Minimum value: 0 Maximum value: 4294967295
dst-entry-id FortiSwitch dest entry ID for the sniffer IP. integer Minimum value: 0 Maximum value: 4294967295
Parameter Name Description Type Size
description Description for the sniffer port entry. string Maximum length: 63
in-ports <name> Configure source ingress port interfaces.
Interface name.
string Maximum length: 79
out-ports <name> Configure source egress port interfaces.
Interface name.
string Maximum length: 79

Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.

  config switch-controller traffic-sniffer
      Description: Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.
      set erspan-ip {ipv4-address}
      config target-mac
          Description: Sniffer MACs to filter.
          edit <mac>
              set description {string}
              set src-entry-id {integer}
              set dst-entry-id {integer}
          next
      end
      config target-ip
          Description: Sniffer IPs to filter.
          edit <ip>
              set description {string}
              set src-entry-id {integer}
              set dst-entry-id {integer}
          next
      end
      config target-port
          Description: Sniffer ports to filter.
          edit <switch-id>
              set description {string}
              set in-ports <name1>, <name2>, ...
              set out-ports <name1>, <name2>, ...
          next
      end
  end

config switch-controller traffic-sniffer

Parameter Name Description Type Size
erspan-ip Configure ERSPAN collector IP address. ipv4-address Not Specified
Parameter Name Description Type Size
description Description for the sniffer MAC. string Maximum length: 63
src-entry-id FortiSwitch source entry ID for the sniffer MAC. integer Minimum value: 0 Maximum value: 4294967295
dst-entry-id FortiSwitch dest entry ID for the sniffer MAC. integer Minimum value: 0 Maximum value: 4294967295
Parameter Name Description Type Size
description Description for the sniffer IP. string Maximum length: 63
src-entry-id FortiSwitch source entry ID for the sniffer IP. integer Minimum value: 0 Maximum value: 4294967295
dst-entry-id FortiSwitch dest entry ID for the sniffer IP. integer Minimum value: 0 Maximum value: 4294967295
Parameter Name Description Type Size
description Description for the sniffer port entry. string Maximum length: 63
in-ports <name> Configure source ingress port interfaces.
Interface name.
string Maximum length: 79
out-ports <name> Configure source egress port interfaces.
Interface name.
string Maximum length: 79