Determine hostname of connected ethernet switch
- by Beastcraft
I've a bonding on two interfaces. I'd like to monitor wether they are connected to different switches (the switches have hostnames).
ethX should be connected to switchX and ethY to switchY.
Currently I'm checking this with following command:
tcpdump -vv -s0 -i ethX ether host 01:00:0c:cc:cc:cc
After a minute it prints out the hostname (and much more information) from the switch.
Are there any other solutions to monitor this?
Greeting