cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4318
Views
10
Helpful
5
Replies

Subinterface VLAN ID over SNMP?

Hi, suppose i have an interface on router:

interface Fas0/0.123

  encapsulation dot1q 234

!

Is there any way to find out this interface's VLAN ID 234 over SNMP?

I do have a habit to name interface after dot matching VLAN ID, but still...

Tried walking whole snmp tree of router digging for 234, but did not find anything.

1 Accepted Solution

Accepted Solutions

For the sake of knowlege:

There is cviVlanInterfaceIndexTable (.1.3.6.1.4.1.9.9.128.1.1.1.1.3) which answers my question.

You have to walk it first, though.

View solution in original post

5 Replies 5

Vinod Arya
Cisco Employee
Cisco Employee

I think you should check CISCO-VTP-MIB which should have this details. Which MIB did you checked?

-Thanks Vinod **Rating Encourages contributors, and its really free. **

Vinod Arya wrote:

I think you should check CISCO-VTP-MIB which should have this details. Which MIB did you checked?

It's about switching ports only.

Here is reply from 7201 router, which have plenty subinterfaces:

.1.3.6.1.4.1.9.9.46 = No Such Object available on this agent at this OID

For the sake of knowlege:

There is cviVlanInterfaceIndexTable (.1.3.6.1.4.1.9.9.128.1.1.1.1.3) which answers my question.

You have to walk it first, though.

Sorry i thought of looking for this answer everyday which got delayed. Thanks for sharing, it will help many users.

I have marked it Cisco Endorsed as well.

-Thanks

Vinod

-Thanks Vinod **Rating Encourages contributors, and its really free. **

Thanks.

That OID also reveals subinterface - parent interface relationship in form:

.1.3.6.1.4.1.9.9.128.1.1.1.1.3.VLAN.parentIfId = subIfId

in case of Vlan interface, parentIfId == 0

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: