Symptom
$ snmpwalk -v2c -c test switch1
IF-MIB::ifIndex.1543525976 = INTEGER: 1543525976
IF-MIB::ifIndex.1509949440 = INTEGER: 1509949440
Error: OID not increasing: IF-MIB::ifIndex.1543525976
>= IF-MIB::ifIndex.1509949440
Another example when NVE interface is configured:
$snmpwalk -v 2c -c test switch1 1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.436237312 = INTEGER: 436237312
IF-MIB::ifIndex.436237824 = INTEGER: 436237824
IF-MIB::ifIndex.1543525976 = INTEGER: 1543525976
IF-MIB::ifIndex.1224736769 = INTEGER: 1224736769
Error: OID not increasing: IF-MIB::ifIndex.1543525976>= IF-MIB::ifIndex.1224736769$
Conditions
+ Sub-interface configured with number higher than 511
show interface snmp-ifindex
Eth1/43 436229120 (0x1a005400)
Eth1/44 436229632 (0x1a005600)
Eth1/44.200 436229832 (0x1a0056c8)
Eth1/44.511 436230143 (0x1a0057ff)
Eth1/44.512 1543525888 (0x5c005600)
Eth1/44.600 1543525976 (0x5c005658)
Eth1/45 436230144 (0x1a005800)
Eth1/46 436230656 (0x1a005a00)
Eth1/47 436231168 (0x1a005c00)
Eth1/60 436237824 (0x1a007600)
Vlan1 151060481 (0x9010001)
nve1 1224736769 (0x49000001)
Eth1/1-Ctrl 1509949440 (0x5a000000)
Eth1/2-Ctrl 1509949444 (0x5a000004)
Eth1/3-Ctrl 1509949448 (0x5a000008)
+ requesting SNMP data (eg. snmpwalk) which includes "ifindex" object (1.3.6.1.2.1.2.2.1.1)
+ NVE interface created. There is no need to have any config on it.
+ NVE interface is not needed if MACSEC is used as in that scenario we have SNMP indexes assigned to "Ethx/y-Ctrl" interfaces and those "Eth x/y-Ctrl" interfaces are having indexes lower than sub-interface index(with number higher than 511). Due to that facts request may fail because sub-interface index is requested earlier.
Workaround
+ Avoid using sub-interfaces higher than 511
+ Skip "ifindex" object in snmp requests
Further Problem Description