简体   繁体   中英

Is there a way to get the mac addresses and ip of each router connected to a switch?

路由器和交换机的设置

Like what the title says, is there a way to get the mac addresses and/or ip of all routers connected to a switch in asp.net c#?

If so, is there a way to determine if the connected router is on and off?

The setup of my routers and switch is in the image link.

Managed switches uses SNMP (Simple Network Management Protocol) where you can get information such as the port connection for every port, see here .

Some more information you can get via LLDP (Link Layer Discovery Protocol), see here

I think this should be enough hints. For some work you can use pcap via c#.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM