Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何将 IP 地址表示为 OID?有通用 IP 地址的子树吗?我本来期望像{ iso(1) org(3) dod(6) internet(1) protocols ip v4(4) address 127 0 0 1 }(对于 127.0.0.1;1.3.6.1是互联网 OID,但之后的所有内容只是我的示例)但在公共存储库中找不到它。
{ iso(1) org(3) dod(6) internet(1) protocols ip v4(4) address 127 0 0 1 }
1.3.6.1
由于直到现在似乎还没有这种方法,因此我保留了 OID 节点 **1.3.6.1.4.1.43892.1863.791.0.<ip>用于此用途,<ip>它是一个点分十进制表示的 IPv4 地址。
1.3.6.1.4.1.43892.1863.791.0.<ip>
<ip>
所以“127.0.0.1”的OID(我原来的问题中的例子)是:1.3.6.1.4.1.43892.1863.791.0.127.0.0.1
1.3.6.1.4.1.43892.1863.791.0.127.0.0.1