Fortinet white logo
Fortinet white logo

CLI Reference

config switch-controller traffic-sniffer

config switch-controller traffic-sniffer

Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.

config switch-controller traffic-sniffer

Description: Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.

set mode [erspan-auto|rspan|...]

set erspan-ip {ipv4-address}

config target-mac

Description: Sniffer MACs to filter.

edit <mac>

set description {string}

next

end

config target-ip

Description: Sniffer IPs to filter.

edit <ip>

set description {string}

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

Description

Type

Size

mode

Configure traffic sniffer mode.

option

-

Option

Description

erspan-auto

Mirror traffic using a GRE tunnel.

rspan

Mirror traffic on a layer2 VLAN.

none

Disable traffic mirroring (sniffer).

erspan-ip

Configure ERSPAN collector IP address.

ipv4-address

Not Specified

config target-mac

Parameter

Description

Type

Size

description

Description for the sniffer MAC.

string

Maximum length: 63

config target-ip

Parameter

Description

Type

Size

description

Description for the sniffer IP.

string

Maximum length: 63

config target-port

Parameter

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

config switch-controller traffic-sniffer

config switch-controller traffic-sniffer

Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.

config switch-controller traffic-sniffer

Description: Configure FortiSwitch RSPAN/ERSPAN traffic sniffing parameters.

set mode [erspan-auto|rspan|...]

set erspan-ip {ipv4-address}

config target-mac

Description: Sniffer MACs to filter.

edit <mac>

set description {string}

next

end

config target-ip

Description: Sniffer IPs to filter.

edit <ip>

set description {string}

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

Description

Type

Size

mode

Configure traffic sniffer mode.

option

-

Option

Description

erspan-auto

Mirror traffic using a GRE tunnel.

rspan

Mirror traffic on a layer2 VLAN.

none

Disable traffic mirroring (sniffer).

erspan-ip

Configure ERSPAN collector IP address.

ipv4-address

Not Specified

config target-mac

Parameter

Description

Type

Size

description

Description for the sniffer MAC.

string

Maximum length: 63

config target-ip

Parameter

Description

Type

Size

description

Description for the sniffer IP.

string

Maximum length: 63

config target-port

Parameter

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