06-12-2012 09:28 AM
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.
06-12-2012 12:26 PM
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.
06-13-2012 12:19 PM
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"
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080134eec.shtml
Regards
K. Lakshmi Ganesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide