This article describes how to configure RSPAN on Standalone FortiSwitch to capture packets specific to Ports.
In this example,
On Fortiswitch-1 CLI:
Configure RSPAN mirror:
config switch mirror
set status active
set mode RSPAN-manual
set dst "Trunk" ---> Trunk port between the switches.
set switching-packet enable
set src-ingress "port5" "port6" ---> Ports that need traffic to be captured.
set src-egress "port5" "port6"
set encap-vlan-id 10 ---> RSPAN VLAN id.
end
On Fortiswitch-2 CLI:
Here Port3 is connected to capture-collector. Create VLAN and enable RSPAN.
config switch vlan
edit 10
set rspan-vlan enable
end
config switch interface
edit port3
set native-vlan 10
end
To check if this is working:
diagnose switch physical-port linerate port3
Also, it is possible to connect a laptop on Port3 and through wireshark on the laptop, capture traffic on the nic card of the laptop. Here it should be possible to see the traffic from devices connected on Port5,6.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.