This procedure explains how to configure Fortinet FortiGate switches for port mirroring on models with built-in hardware switches (for example, the FortiGate-100D, 140D, and 200D), using the Switch Port Analyzer (SPAN) feature.
Configuration Through the CLI
To configure SPAN through the CLI
- Enter the following:
config system virtual-switch
edit <port>
set span enable
set span-source-port <port>
set span-dest-port <port>
set span-direction {both | Tx | Rx}
end
end
Configuration Through the Web UI
To configure SPAN through the web UI
- Go to System > Network > Interfaces.
-
Edit a hardware switch interface.
By default, the system may have a hardware switch interface called a LAN. You can also create a new hardware switch interface.
- Select the SPAN checkbox, then select a source port from which you want traffic mirrored.
-
Select one of the following:
- Traffic received
- Traffic sent
- Both
See the Knowledge Base article on the vendor website to learn more about configuring port mirroring on Fortinet-FortiGate Switches.