53-3
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 53 Configuring SNMP IfIndex Persistence
Configuring SNMP IfIndex Persistence
Enabling and Disabling SNMP IfIndex Persistence on Specific Interfaces
To enable SNMP ifIndex persistence only on a specific interface, perform this task:
Note
The
[no] snmp ifindex persistence
interface command
cannot be used on subinterfaces. A command
applied to an interface is automatically applied to all the subinterfaces associated with that interface.
In the following example, SNMP ifIndex persistence is enabled for Ethernet interface 3/1 only:
router(config)#
interface ethernet 3/1
router(config-if)#
snmp ifindex persist
router(config-if)#
exit
In the following example, SNMP ifIndex persistence is disabled for Ethernet interface 3/1 only:
router(config)#
interface ethernet 3/1
router(config-if)#
no snmp ifindex persist
router(config-if)#
exit
Clearing SNMP IfIndex Persistence Configuration from a Specific Interface
To clear the interface-specific SNMP ifIndex persistence setting and configure the interface to use the
global configuration setting, perform this task:
Command
Purpose
Step 1
Router(config)#
interface
{
vlan
vlan_ID
} |
{
type
1
slot/port
} | {
port-channel
port_channel_number
}
1.
type
= any supported interface type.
Selects an interface to configure.
Step 2
Router(config-if)#
snmp ifindex persist
Enables SNMP ifIndex persistence on the specified
interface.
Router(config-if)#
no snmp ifindex persist
Disables SNMP ifIndex persistence on the specified
interface.
Step 3
Router(config-if)#
exit
Exits interface configuration mode.
Command
Purpose
Step 1
Router(config)#
interface
type slot/port
Enters interface configuration mode for the specified
interface. Note that the syntax of the interface command
will vary depending on the platform you are using.
Step 2
Router(config-if)#
snmp ifindex clear
Clears any interface-specific SNMP ifIndex persistence
configuration for the specified interface and returns to the
global configuration setting.
Step 3
Router(config-if)#
exit
Exits interface configuration mode.