Cisco Cisco IOS Software Release 12.4(6)T
OSPF: SNMP ifIndex Value for Interface ID in OSPFv2 and OSPFv3 Data Fields
Configuration Examples for OSPF: SNMP ifIndex Value for Interface ID in OSPFv2 and OSPFv3 Data Fields
5
Cisco IOS Release: Multiple releases
Configuring the SNMP ifIndex Value for Interface ID for OSPFv2: Example
The following example configures the OSPF interfaces to use the SNMP ifIndex values for the interfaces
IDs. The show snmp mib ifmib ifindex command confirms that the SNMP MIB-II ifIndex values are
used for the Interface ID values in the OSPFv2 data fields.
IDs. The show snmp mib ifmib ifindex command confirms that the SNMP MIB-II ifIndex values are
used for the Interface ID values in the OSPFv2 data fields.
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# router ospf 1
Router(config-router)# interface-id snmp-if-index
Router(config-router)# ^Z
Router# show ip ospf 1 1 data router self
OSPF Router with ID (172.16.0.1) (Process ID 1)
Router Link States (Area 1)
LS age: 6
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 172.16.0.1
Advertising Router: 172.16.0.1
LS Seq Number: 80000007
Checksum: 0x63AF
Length: 48
Area Border Router
Number of Links: 2
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 172.17.0.1
(Link Data) Router Interface address: 0.0.0.53
Number of TOS metrics: 0
TOS 0 Metrics: 64
Link connected to: a Stub Network
(Link ID) Network/subnet number: 192.168.0.11
(Link Data) Network Mask: 255.255.255.255
Number of TOS metrics: 0
TOS 0 Metrics: 1
Router# show snmp mib ifmib ifindex s13/0
Serial13/0: Ifindex = 53
Configuring the SNMP ifIndex Value for Interface ID for OSPFv3: Example
The following example configures the OSPFv3 interfaces to use the SNMP ifIndex values for the
interface IDs.
interface IDs.
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# ipv6 router ospf 1
Router(config-router)# interface-id snmp-if-index