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

Default

mode

Configure traffic sniffer mode.

option

-

erspan-auto

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

0.0.0.0

config target-mac

Parameter

Description

Type

Size

Default

description

Description for the sniffer MAC.

string

Not Specified

config target-ip

Parameter

Description

Type

Size

Default

description

Description for the sniffer IP.

string

Not Specified

config target-port

Parameter

Description

Type

Size

Default

description

Description for the sniffer port entry.

string

Not Specified

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

Default

mode

Configure traffic sniffer mode.

option

-

erspan-auto

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

0.0.0.0

config target-mac

Parameter

Description

Type

Size

Default

description

Description for the sniffer MAC.

string

Not Specified

config target-ip

Parameter

Description

Type

Size

Default

description

Description for the sniffer IP.

string

Not Specified

config target-port

Parameter

Description

Type

Size

Default

description

Description for the sniffer port entry.

string

Not Specified

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