使用SNMP进行路由器和SWITCH识别的OID [英] OID's for Router and SWITCH identification using SNMP

查看:280
本文介绍了使用SNMP进行路由器和SWITCH识别的OID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何基于SNMP识别路由器和SWITCH IP。我们应该检查哪些oid来区分它们。

解决方案

这可能是一个简单的方法:如果设备支持IP-FORWARD-MIB [ ^ ]并返回IP转发表,而不是具有路由功能的设备。如果它支持 BRIDGE-MIB [ ^ ]并返回dot1dTpFdbAddresstable,而不是具有切换功能的设备。如果它支持两者,那么它可能是一个Layer3交换机。但这也可能对您有所帮助: http://www.alvestrand.no/objectid/1.3.6.1 .2.1.1.7.html [ ^ ]

How to identify between router and SWITCH IP based on SNMP. Which oid's should we check for it to differentiate between these.

解决方案

This could be a simple approach: if the device is supporting IP-FORWARD-MIB[^] and returning IP forward table, than it is a device with routing capabilities. If it is supporting BRIDGE-MIB[^] and returning the dot1dTpFdbAddresstable than it is a switching capable device. If it is supporting both, than it is probably a Layer3 switch. But this might also help you: http://www.alvestrand.no/objectid/1.3.6.1.2.1.1.7.html[^]


这篇关于使用SNMP进行路由器和SWITCH识别的OID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆