Hi everyone
I have a core switch connected to different access switches. when any user connected on any access switch through LAN then how should i know the user is connected to which access switch from that user's MAC address.
Hi,
So, you are saying we cant get port number of core switch from which user's mac entry is coming, we need to go on each access switch and check the mac table for each access switch
Created on 07-04-2025 03:41 AM Edited on 07-04-2025 03:41 AM
Not exactly - on Core switch you can search and find the MAC address of the end user and via which interface it was learned by Core switch, this way you will know the Access switch on this interface and thus user will be connected to this Access switch. To actually know on what physical port in the Access switch the user is connected you would need to trace user's MAC address from Core switch down to the last Access switch by user's MAC address.
How can we search and find the mac address of the end user and via which interface it was learned by core switch ?
Sorry for the late reply, on standalone Fortiswitch (i.e. not managed by Fortigate), it would be:
diagnose switch mac-address list
Depending on the FSW version, you may also have grep available to search for a specific MAC:
diagnose switch mac-address list | grep aa.bb.cc
Hello Team,
This is the output of the given command, but there is no specific interface is mentioned in the output
It is - the MAC belongs to VLAN 16 which is seen on Trunk "Floor Uplink" , so this Trunk is the bundle with another switch which you have to check next, you may use
diagnose switch trunk summary
to get list of all trunks on the local switch
Use the command
get system arp | grep port <- on which port you want to see the learned MAC address
reference article
User | Count |
---|---|
2593 | |
1382 | |
800 | |
659 | |
455 |
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 2025 Fortinet, Inc. All Rights Reserved.