Technical Tip: How to determine which physical port is configured in LAG
Description
This article describes how to find out which physical port is used in LAG depending on source and destination IP traffic.
Scope
FortiSwitch.
Solution
The following command can be used to find out which physical port is used in LAG, depending on the source and destination IP:
diagnose switch trunk active-dst-member <LAG Name> src-ip <IPv4/v6-addr> dst-ip <IPv4/v6-addr>
Examples:
diagnose switch trunk active-dst-member MX src-ip 10.10.10.2 dst-ip 10.10.10.1 member port2
Traffic from 10.10.10.2 toward 10.10.10.1 will be sent to port2.
diagnose switch trunk active-dst-member MX src-ip 10.10.10.2 dst-ip 10.10.10.4 member port1
Traffic from 10.10.10.2 toward 10.10.10.4 will be sent to port1.
