cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
701
Views
0
Helpful
1
Replies
Participant

VRF specific IP addresses via SNMP for management purposes

Tring to retrieve SNMP IpAddrTable (OID =1.3.6.1.2.1.4.20) regardless of VRF configuration. MIBWALK gives all the unique VRF specific (+ default) IP addresses,however fails to identify overlapping IPs.

See output below.

===========================================================================

Cisco 3725/ IOS No-Overlapping IPs (all unique IPs are displayed)

===========================================================================

Router#show ip vrf  interfaces

Interface              IP-Address      VRF                              Protocol

Vl1000                 10.10.10.1      vpn1                             up     

Vl1001                 10.10.10.2      vpn2                             up     

Router#

{VRF config}

interface Vlan1000

ip vrf forwarding vpn1

ip address 10.10.10.1 255.255.255.0

!        

interface Vlan1001

ip vrf forwarding vpn2

ip address 10.10.10.2 255.255.255.0

>snmpwalk.exe -v 2c -c public 172.26.60.187 1.3.6.1.2.1.4.20

iso.3.6.1.2.1.4.20.1.1.10.10.10.1 = IpAddress: 10.10.10.1 ====> VRF IP1

iso.3.6.1.2.1.4.20.1.1.10.10.10.2 = IpAddress: 10.10.10.2 ====> VRF IP2

iso.3.6.1.2.1.4.20.1.1.172.26.60.187 = IpAddress: 172.26.60.187====> DEFAULT

iso.3.6.1.2.1.4.20.1.2.10.10.10.1 = INTEGER: 48

iso.3.6.1.2.1.4.20.1.2.10.10.10.2 = INTEGER: 49

iso.3.6.1.2.1.4.20.1.2.172.26.60.187 = INTEGER: 5

iso.3.6.1.2.1.4.20.1.3.10.10.10.1 = IpAddress: 255.255.255.0

iso.3.6.1.2.1.4.20.1.3.10.10.10.2 = IpAddress: 255.255.255.0

iso.3.6.1.2.1.4.20.1.3.172.26.60.187 = IpAddress: 255.255.255.0

iso.3.6.1.2.1.4.20.1.4.10.10.10.1 = INTEGER: 1

iso.3.6.1.2.1.4.20.1.4.10.10.10.2 = INTEGER: 1

iso.3.6.1.2.1.4.20.1.4.172.26.60.187 = INTEGER: 1

iso.3.6.1.2.1.4.20.1.5.10.10.10.1 = INTEGER: 18024

iso.3.6.1.2.1.4.20.1.5.10.10.10.2 = INTEGER: 18024

iso.3.6.1.2.1.4.20.1.5.172.26.60.187 = INTEGER: 18024

-----------------------------------------------

VRF IPs: 10.10.10.1, 10.10.10.2

Default : 172.26.60.187

-----------------------------------------------

=============================================================================

Cisco 3725/ IOS Overlapping IPs (Only one instance is seen (one is enough ?!))

=============================================================================

Router#show ip vrf

  Name                             Default RD          Interfaces

  vpn1                             1:1000              Vl1000

  vpn2                             1:1001              Vl1001

Router#

Router#show ip vrf in

Router#show ip vrf interfaces

Interface              IP-Address      VRF                              Protocol

Vl1000                 10.10.10.1      vpn1                             up     

Vl1001                 10.10.10.1      vpn2                             up     

Router#

Router#

Router#

Router#ping vrf vpn1 10.10.10.1    

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

Router#ping vrf vpn2 10.10.10.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:

!!!!!

{VRF config}

interface Vlan1000

ip vrf forwarding vpn1

ip address 10.10.10.1 255.255.255.0

!        

interface Vlan1001

ip vrf forwarding vpn2

ip address 10.10.10.1 255.255.255.0

->snmpwalk.exe -v 2c -c public 172.26.60.187 1.3.6.1.2.1.4.20

iso.3.6.1.2.1.4.20.1.1.10.10.10.1 = IpAddress: 10.10.10.1 =================> VRF-IP (Only one instance is seen ?)

iso.3.6.1.2.1.4.20.1.1.172.26.60.187 = IpAddress: 172.26.60.187 ============> Default-VRF

iso.3.6.1.2.1.4.20.1.2.10.10.10.1 = INTEGER: 49

iso.3.6.1.2.1.4.20.1.2.172.26.60.187 = INTEGER: 5

iso.3.6.1.2.1.4.20.1.3.10.10.10.1 = IpAddress: 255.255.255.0

iso.3.6.1.2.1.4.20.1.3.172.26.60.187 = IpAddress: 255.255.255.0

iso.3.6.1.2.1.4.20.1.4.10.10.10.1 = INTEGER: 1

iso.3.6.1.2.1.4.20.1.4.172.26.60.187 = INTEGER: 1

iso.3.6.1.2.1.4.20.1.5.10.10.10.1 = INTEGER: 18024

iso.3.6.1.2.1.4.20.1.5.172.26.60.187 = INTEGER: 18024

---------------------------------

VRF IP: 10.10.10.1 (Only one specific instance is given. Why ?)

Default : 172.26.60.187

----------------------------------

Could you explain this behavior?

Thanks,

Ranil.

1 REPLY 1
Highlighted
Participant

VRF specific IP addresses via SNMP for management purposes

Hasn't anybody seen this behavior?

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards