Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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.

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Subinterface VLAN ID over SNMP?

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.

5 REPLIES
Cisco Employee

Subinterface VLAN ID over SNMP?

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. **
New Member

Subinterface VLAN ID over SNMP?

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

New Member

Subinterface VLAN ID over SNMP?

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.

Cisco Employee

Subinterface VLAN ID over SNMP?

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. **
New Member

Subinterface VLAN ID over SNMP?

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

895
Views
10
Helpful
5
Replies
CreatePlease to create content