S5500v2-34S-EI
ip oid 跟 mac oid 是多少 ,
这个有什么用能给解释一下么
(0)
最佳答案
我一般用下面节点读取的。
1、获取所有接口IP掩码
所有接口IP掩码的节点:
ipAdEntNetMask
节点OID值:
1.3.6.1.2.1.4.20.1.3
支持各种类型接口,包含接口的主IP掩码和从IP掩码,获取接口IP的掩码:
1: ipAdEntNetMask.2.0.0.4 (ipaddress) 255.255.255.255
2: ipAdEntNetMask.2.1.1.1 (ipaddress) 255.255.255.0
3: ipAdEntNetMask.3.1.1.2 (ipaddress) 255.255.255.0
4: ipAdEntNetMask.4.1.1.1 (ipaddress) 255.255.255.0
5: ipAdEntNetMask.10.5.0.1 (ipaddress) 255.255.255.252
6: ipAdEntNetMask.20.0.0.2 (ipaddress) 255.255.255.252
7: ipAdEntNetMask.20.5.0.1 (ipaddress) 255.255.255.252
8: ipAdEntNetMask.30.5.0.1 (ipaddress) 255.255.255.252
9: ipAdEntNetMask.33.1.1.1 (ipaddress) 255.255.255.0
10: ipAdEntNetMask.40.5.0.1 (ipaddress) 255.255.255.252
11: ipAdEntNetMask.192.168.213.8 (ipaddress) 255.255.255.0
说明:节点的索引表示接口的IP地址,节点的值表示对应的掩码。
2、获取IP地址对应的接口
所有接口IP对应接口的节点:
ipAdEntIfIndex
节点OID值:
1.3.6.1.2.1.4.20.1.2
支持各种类型接口,包含接口的主IP掩码和从IP掩码,获取接口IP地址对应的接口:
1: ipAdEntIfIndex.1.0.0.2 (integer) 11592
2: ipAdEntIfIndex.2.0.0.2 (integer) 11593
3: ipAdEntIfIndex.3.0.0.2 (integer) 11594
4: ipAdEntIfIndex.4.0.0.2 (integer) 11595
5: ipAdEntIfIndex.5.0.0.2 (integer) 11596
6: ipAdEntIfIndex.6.0.0.2 (integer) 11597
说明:节点的索引表示接口的IP地址,节点的值表示IP地址对应的接口索引。
3、获取MAC地址
设备的MAC表:
dot1qTpFdbPort
节点OID值:
1.3.6.1.2.1.17.7.1.2.2.1.2
获取设备MAC地址:
1: dot1qTpFdbPort.2.0.0.0.0.0.2 (integer) 6033
2: dot1qTpFdbPort.5.0.0.0.0.0.5 (integer) 317
3: dot1qTpFdbPort.5.0.0.0.0.0.85 (integer) 319
以dot1qTpFdbPort.5.0.0.0.0.0.85 (integer) 319为例,索引5.0.0.0.0.0.85中的第一个5表示这个mac表项在vlan5内,0.0.0.0.0.85对应的16进制为0000-0000-0055,表示这个mac表项的mac地址为0000-0000-0055。
4、接口索引编号
61: ifDescr.154 (octet string) Ten-GigabitEthernet1/6/0/7 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.31.2F.36.2F.30.2F.37 (hex)]
62: ifDescr.155 (octet string) Ten-GigabitEthernet1/6/0/8 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.31.2F.36.2F.30.2F.38 (hex)]
63: ifDescr.188 (octet string) Ten-GigabitEthernet2/8/0/1 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.31 (hex)]
64: ifDescr.189 (octet string) Ten-GigabitEthernet2/8/0/2 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.32 (hex)]
65: ifDescr.190 (octet string) Ten-GigabitEthernet2/8/0/3 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.33 (hex)]
66: ifDescr.191 (octet string) Ten-GigabitEthernet2/8/0/4 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.34 (hex)]
67: ifDescr.192 (octet string) Ten-GigabitEthernet2/8/0/5 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.35 (hex)]
68: ifDescr.193 (octet string) Ten-GigabitEthernet2/8/0/6 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.36 (hex)]
69: ifDescr.194 (octet string) Ten-GigabitEthernet2/8/0/7 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.37 (hex)]
70: ifDescr.195 (octet string) Ten-GigabitEthernet2/8/0/8 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.38.2F.30.2F.38 (hex)]
71: ifDescr.196 (octet string) Ten-GigabitEthernet2/6/0/1 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.36.2F.30.2F.31 (hex)]
72: ifDescr.197 (octet string) Ten-GigabitEthernet2/6/0/2 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.36.2F.30.2F.32 (hex)]
73: ifDescr.198 (octet string) Ten-GigabitEthernet2/6/0/3 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.36.2F.30.2F.33 (hex)]
74: ifDescr.199 (octet string) Ten-GigabitEthernet2/6/0/4 [54.65.6E.2D.47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.32.2F.36.2F.30.2F.34 (hex)]
75: ifDescr.200 (octet string) Bridge-Aggregation1 [42.72.69.64.67.65.2D.41.67.67.72.65.67.61.74.69.6F.6E.31 (hex)]
76: ifDescr.201 (octet string) Vlan-interface3 [56.6C.61.6E.2D.69.6E.74.65.72.66.61.63.65.33 (hex)]
77: ifDescr.202 (octet string) Bridge-Aggregation2 [42.72.69.64.67.65.2D.41.67.67.72.65.67.61.74.69.6F.6E.32 (hex)]
78: ifDescr.203 (octet string) LoopBack0 [4C.6F.6F.70.42.61.63.6B.30 (hex)]
79: ifDescr.204 (octet string) Vlan-interface900 [56.6C.61.6E.2D.69.6E.74.65.72.66.61.63.65.39.30.30 (hex)]
80: ifDescr.205 (octet string) Vlan-interface2 [56.6C.61.6E.2D.69.6E.74.65.72.66.61.63.65.32 (hex)]
81: ifDescr.206 (octet string) Vlan-interface5 [56.6C.61.6E.2D.69.6E.74.65.72.66.61.63.65.35 (hex)]
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论