假设设备配置了如下几个地址:
# interface LoopBack0
ip binding vpn-instance 1
ip address 8.8.8.8 255.255.255.255
#
interface GigabitEthernet0/0
ip address 192.168.56.2 255.255.255.0
#
interface GigabitEthernet0/1
ip address 1.1.1.1 255.255.255.252
#
使用公有MIB节点读取时,只会显示公有地址,比如用ipAdEntAddr读取:
***** SNMP QUERY STARTED *****
1: ipAdEntAddr.1.1.1.1 (IpAddress) 1.1.1.1
2: ipAdEntAddr.192.168.56.2 (IpAddress) 192.168.56.2
Start time : 2021/3/22 11:13:57
End time : 2021/3/22 11:13:58
Duration : 85ms
***** SNMP QUERY FINISHED *****
对于VPN接口地址,该如何读取?
可以使用hh3cIpv4AddrTable目录中的节点读取。
***** SNMP QUERY STARTED *****
1: hh3cIpv4AddrAddr.1 (IpAddress) 192.168.56.2
2: hh3cIpv4AddrAddr.2 (IpAddress) 1.1.1.1
3: hh3cIpv4AddrAddr.3 (IpAddress) 0.0.0.0
……
12: hh3cIpv4AddrAddr.132 (IpAddress) 8.8.8.8
Start time : 2021/3/22 11:18:52
End time : 2021/3/22 11:18:52
Duration : 49ms
***** SNMP QUERY FINISHED *****
***** SNMP QUERY STARTED *****
1: hh3cIpv4AddrMask.1 (IpAddress) 255.255.255.0
2: hh3cIpv4AddrMask.2 (IpAddress) 255.255.255.252
3: hh3cIpv4AddrMask.3 (IpAddress) 0.0.0.0
……
12: hh3cIpv4AddrMask.132 (IpAddress) 255.255.255.255
Start time : 2021/3/22 11:19:44
End time : 2021/3/22 11:19:44
Duration : 72ms
***** SNMP QUERY FINISHED *****
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作