I'd like to get some GRE tunnel specific config parameters via SNMP. Given
interface tunnel 1
ip address 18.104.22.168 255.255.255.252
tunnel source 22.214.171.124
tunnel destination 126.96.36.199
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 188.8.131.52 and not 184.108.40.206. Is there a way to find the tunnel source, then?
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...