Read the interface IP bound to the VPN-instance via OID

2025-11-18 14:47:00 Published
  • 0 Followed
  • 0Collected ,49Browsed

Problem Description

1.3.6.1.2.1.4.20.1.1 The node can read all interface IPs belonging to the public network instance but cannot read the interface addresses bound to the VPN-instance

Process Analysis

1.3.6.1.4.1.25506.2.67.1.1.2.1.4 The return value of the node is the interface address mask, and the OID index contains the interface address

Solution

Take the following configuration on the device as an example

[H3C]dis ip int brief

*down: administratively down

(s): spoofing  (l): loopback

Interface          Physical Protocol IP address/Mask    VPN instance Description

Loop0              up       up(s)    2.2.2.2/24         1            --

MGE0/0/0           down     down     192.168.1.1/24     mgmt         --

Vlan1              up       up       11.1.1.1/24        --           --

 

Traverse the node 1.3.6.1.4.1.25506.2.67.1.1.2.1.4. The OID indexes 5121, 5127, and 5128 are interface indexes. You can view the correspondence between interface indexes and interface names via 1.3.6.1.2.1.2.2.1.2. The read result matches the address configured on the device.

 

 


Please rate this case:   
0 Comments

No Comments

Add Comments: