Identifier un switch et le port associé à une interface réseau

tcpdump -nn -v -i eth3 -s 1500 -c 1 'ether[20:2] == 0x2000'
Device-ID (0x01), length: 24 bytes: 'nom_du_switch'
Port-ID (0x03), length: 21 bytes: 'GigabitEthernet1/0/10'
snoop -d <interface> -x0 -v 'ether[20:2] = 0x2000'
nmap -sP 192.168.1.1/24