Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Setting the snmp ifindex of an interface

Most of the management software that I've seen seems to gather information about a device by polling the device and grabbing the first interface in the ifindex list.

I would like to -force- a selected interface to ifindex 1.  Is there a command that will allow me to set the ifindex of a particular interface?

AKA, I want all of the Cisco routers with a loopback to have the loopback set to be ifindex 1 so that when the device is polled, it uses the information set on the loopback as the information that it uses to populate it's database about the router.

Hall of Fame Super Silver

Setting the snmp ifindex of an interface

I don't believe you can force a given interface to a specific ifindex value. You can make the system-assigned value persistent. See this link.

Cisco Employee

Setting the snmp ifindex of an interface

The requirement set by you to force a selected interface to particular desirable ifIndex is not possible. You can certainly make the ifIndex assigned by device itself to interface persist but can't force by any command.

SNMP config command to make the ifIndex assigned by device to persist is as below.

"snmp-server ifindex persist"


K. Lakshmi Ganesh

CreatePlease to create content