I'd like to get some GRE tunnel specific config parameters via SNMP. Given
interface tunnel 1
ip address 188.8.131.52 255.255.255.252
tunnel source 184.108.40.206
tunnel destination 220.127.116.11
How do I extract the tunnel source & tunnel destination via SNMP? I've found the interface number & interface ip address via an snmpwalk; but I've yet to locate the tunnel source / destination. Is there a particular mib or oid this is tracked in?
It doesn't look like there is a specific object for GRE tunnel source/destination as of yet. I see that there are objects for IPSec tunnels, but not GRE.
Abou the best workaround I could find would be to do the following:
Poll the ifTable, especially the ifDescr object.This will give you the names of all intefaces configured on the router
snmpwalk -c public router_ip_address ifDescr
router_ip_address can be any address on this router (reachable) from the NMS station.
Then locate the index assigned to the tunnel interface
example: IF-MIB::ifDescr.20 = STRING: Tunnel1
snmpwalk -c public router_ip_address
This alternative would only give you the source address of the tunnel, defined locally.
Another workaround would be to put an explanatory description on the router's local Tunnel interface indicating the remote address of the tunnel and then poll the ifAlias Object from the ifTable MIB as follows:
snmpwalk -c public router_ip_address ifAlias
There you would see the description of the tunnel interface pointing to the remote tunnel interface's address.
But wouldn't this solution (snmpwalk -c public router_ip_address ifAlias) just give the interface address as opposed to the tunnel source? So in this case, you would only be able to find 18.104.22.168 and not 22.214.171.124. Is there a way to find the tunnel source, then?
Listen: https://smarturl.it/CCRS9E25 Follow us: twitter.com/ciscochampions
With applications and users everywhere, the networks are now, more than ever, being tasked with delivering consistent protection while providing an exceptional user exper...
Listen: https://smarturl.it/CCRS9E24 Follow us: https://twitter.com/CiscoChampion
Cisco Radio Aware Routing addresses several of the challenges faced when merging IP routing and radio communications in mobile networks, especially those exhibiti...
Listen: https://smarturl.it/CCRS9E23 Follow us: https://twitter.com/CiscoChampion The Wi-Fi 6E Catalyst 9136 access point takes advantage of the 6-GHz band to produce a network that is more reliable and secure, with higher throughput, more ...
When moving from OSPFv2 to OSPFv3, there are many changes in the format of the LSAs Type, but the most known changes are: IP prefix informations are no longer carried in Type-1 LSA and Type-2 LSA, new LSAs Type 8 and 9 are added to carry these prefixes.