[help wanted]: SNMP 无法读取到目标主机的ip地址
Opened this issue · 0 comments
Contact Details
No response
What is your question?
我在本地有三个交换机,交换机都配置了SNMP,执行netTopology后结果如下:
{
"name": "test",
"nodes": [
{
"name": "192.168.56.2",
"alias": "",
"type": "router",
"x": 0,
"y": 0,
"ips": [
"192.168.56.2"
],
"locals": [
"192.168.56.0/255.255.255.0"
],
"options": null,
"status": "",
"if_index_ips": null,
"des_ips": {
"GigabitEthernet0/0/1": [],
"GigabitEthernet0/0/10": [],
"GigabitEthernet0/0/11": [],
"GigabitEthernet0/0/12": [],
"GigabitEthernet0/0/13": [],
"GigabitEthernet0/0/14": [],
"GigabitEthernet0/0/15": [],
"GigabitEthernet0/0/16": [],
"GigabitEthernet0/0/17": [],
"GigabitEthernet0/0/18": [],
"GigabitEthernet0/0/19": [],
"GigabitEthernet0/0/2": [],
"GigabitEthernet0/0/20": [],
"GigabitEthernet0/0/21": [],
"GigabitEthernet0/0/22": [],
"GigabitEthernet0/0/23": [],
"GigabitEthernet0/0/24": [],
"GigabitEthernet0/0/3": [],
"GigabitEthernet0/0/4": [],
"GigabitEthernet0/0/5": [],
"GigabitEthernet0/0/6": [],
"GigabitEthernet0/0/7": [],
"GigabitEthernet0/0/8": [],
"GigabitEthernet0/0/9": []
}
},
{
"name": "192.168.56.10",
"alias": "",
"type": "router",
"x": 0,
"y": 0,
"ips": [
"192.168.56.10"
],
"locals": [
"192.168.56.0/255.255.255.0"
],
"options": null,
"status": "",
"if_index_ips": null,
"des_ips": {
"GigabitEthernet0/0/1": [],
"GigabitEthernet0/0/10": [],
"GigabitEthernet0/0/11": [],
"GigabitEthernet0/0/12": [],
"GigabitEthernet0/0/13": [],
"GigabitEthernet0/0/14": [],
"GigabitEthernet0/0/15": [],
"GigabitEthernet0/0/16": [],
"GigabitEthernet0/0/17": [],
"GigabitEthernet0/0/18": [],
"GigabitEthernet0/0/19": [],
"GigabitEthernet0/0/2": [],
"GigabitEthernet0/0/20": [],
"GigabitEthernet0/0/21": [],
"GigabitEthernet0/0/22": [],
"GigabitEthernet0/0/23": [],
"GigabitEthernet0/0/24": [],
"GigabitEthernet0/0/3": [],
"GigabitEthernet0/0/4": [],
"GigabitEthernet0/0/5": [],
"GigabitEthernet0/0/6": [],
"GigabitEthernet0/0/7": [],
"GigabitEthernet0/0/8": [],
"GigabitEthernet0/0/9": []
}
},
{
"name": "192.168.56.4",
"alias": "",
"type": "router",
"x": 0,
"y": 0,
"ips": [
"192.168.56.4"
],
"locals": [
"192.168.56.0/255.255.255.0"
],
"options": null,
"status": "",
"if_index_ips": null,
"des_ips": {
"GigabitEthernet0/0/1": [],
"GigabitEthernet0/0/10": [],
"GigabitEthernet0/0/11": [],
"GigabitEthernet0/0/12": [],
"GigabitEthernet0/0/13": [],
"GigabitEthernet0/0/14": [],
"GigabitEthernet0/0/15": [],
"GigabitEthernet0/0/16": [],
"GigabitEthernet0/0/17": [],
"GigabitEthernet0/0/18": [],
"GigabitEthernet0/0/19": [],
"GigabitEthernet0/0/2": [],
"GigabitEthernet0/0/20": [],
"GigabitEthernet0/0/21": [],
"GigabitEthernet0/0/22": [],
"GigabitEthernet0/0/23": [],
"GigabitEthernet0/0/24": [],
"GigabitEthernet0/0/3": [],
"GigabitEthernet0/0/4": [],
"GigabitEthernet0/0/5": [],
"GigabitEthernet0/0/6": [],
"GigabitEthernet0/0/7": [],
"GigabitEthernet0/0/8": [],
"GigabitEthernet0/0/9": []
}
}
],
"links": [
{
"node_from": "GigabitEthernet0/0/1",
"node_to": "",
"node_from_name": "192.168.56.4",
"node_to_name": "c: 1f:cc:d4: 6a: 3c",
"value": 0,
"unit": "",
"level": 0,
"if_index": "",
"traffic_load": 0,
"port": "",
"options": null
}
],
"location": false,
"graph_id": "id1"
}
这里面的 node_to_name 一直是 mac地址,无法找到对应的ip地址,请问是我snmp配置的不对吗,还是说有什么额外的东西需要处理?
我本地是使用ENSP进行模拟多网络设备环境的,网络设备之间能互相ping通;
Version
newest