Mailing List Archive

port numbler/mac address
Hi,

I'm trying to get the port number on which a MAC address has been learned,
by using SNMP.
But when I snmpwalk, E300 responds like this:

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.1
BRIDGE-MIB::dot1dTpFdbAddress = No Such Instance currently exists at this
OID

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.2
BRIDGE-MIB::dot1dTpFdbPort = No Such Instance currently exists at this
OID

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.1
Q-BRIDGE-MIB::dot1qTpFdbAddress = No Such Object available on this agent
at this OID

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.2
Q-BRIDGE-MIB::dot1qTpFdbPort.20.'...-..' = INTEGER: 1
Q-BRIDGE-MIB::dot1qTpFdbPort.20.'....y.' = INTEGER: 1
Q-BRIDGE-MIB::dot1qTpFdbPort.20.'......' = INTEGER: 18
Q-BRIDGE-MIB::dot1qTpFdbPort.20.'.....V' = INTEGER: 209
:
(snip)
:

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.33865785 = INTEGER: 33865785
:
(snip)
:

There are some vlans (ID 20,21,,,). And no port is associated with the
default vlan.
The only OID that shows me MAC addresses connected to E300 is
"ipNetToMediaPhysAddress".
But it doesn't give the information about ports. I can know only about the
VLAN-IP-MAC relationships from the OID.

Any ideas?

Regards
keio

_________________________________________________________________
??????????????????MSN Hotmail?
http://promotion.msn.co.jp/hotmail/
port numbler/mac address [ In reply to ]
Keio-san,

I'm not entirely clear that I'm understanding your question, but in
general use:

- dot1qTpFdbPort : to see MAC addresses learned on non-default VLAN.
- dot1dTpFdbPort : to see MAC addresses learned on default VLAN
- dot1dBasePortIfIndex : to map dot1 indexes to ifIndex
- f10LinkAggMib : to see MAC addresses learned on LAG interfaces

Hope this helps.

-Ron


o k wrote:
> Hi,
>
> I'm trying to get the port number on which a MAC address has been learned,
> by using SNMP.
> But when I snmpwalk, E300 responds like this:
>
> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.1
> BRIDGE-MIB::dot1dTpFdbAddress = No Such Instance currently exists at this
> OID
>
> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.2
> BRIDGE-MIB::dot1dTpFdbPort = No Such Instance currently exists at this
> OID
>
> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.1
> Q-BRIDGE-MIB::dot1qTpFdbAddress = No Such Object available on this agent
> at this OID
>
> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.2
> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'...-..' = INTEGER: 1
> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'....y.' = INTEGER: 1
> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'......' = INTEGER: 18
> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'.....V' = INTEGER: 209
> :
> (snip)
> :
>
> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.2.2.1.1
> IF-MIB::ifIndex.33865785 = INTEGER: 33865785
> :
> (snip)
> :
>
> There are some vlans (ID 20,21,,,). And no port is associated with the
> default vlan.
> The only OID that shows me MAC addresses connected to E300 is
> "ipNetToMediaPhysAddress".
> But it doesn't give the information about ports. I can know only about the
> VLAN-IP-MAC relationships from the OID.
>
> Any ideas?
>
> Regards
> keio
>
> _________________________________________________________________
> ??????????????????MSN Hotmail?
> http://promotion.msn.co.jp/hotmail/
>
> _______________________________________________
> force10-nsp mailing list
> force10-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/force10-nsp
>
port numbler/mac address [ In reply to ]
Ron-san,

Thank you.

I'll put the SNMP get-responses I've got from my E300 between the OIDs you
presented.
So, I want to know where MAC Addresses are. :-)

>- dot1qTpFdbPort : to see MAC addresses learned on non-default VLAN.

$ snmpwalk -v 2c -c public 192.168.1.1 dot1qTpFdbPort
Q-BRIDGE-MIB::dot1qTpFdbPort.20.'...-..' = INTEGER: 1
:
(snip)
:

* dot1qTpFdbPort --> OID
* 20 --> VLAN ID
* '...-..' --> Is this a MAC Address? I don't know well SNMP, but I assumed
there is a Hex or Dec value...
* 1 --> Port Number? gig0/0? If so, I want to know the mapping between
this number and ifIndex.

>- dot1dTpFdbPort : to see MAC addresses learned on default VLAN

$ snmpwalk -v 2c -c public 192.168.1.1 dot1dTpFdbPort
BRIDGE-MIB::dot1dTpFdbPort = No Such Instance currently exists at this OID

#There is no port associated with the default VLAN in my E300.

>- dot1dBasePortIfIndex : to map dot1 indexes to ifIndex

$ snmpwalk -v 2c -c public 192.168.1.1 dot1dBasePortIfIndex
BRIDGE-MIB::dot1dBasePortIfIndex.0 = INTEGER: 33865785

#It prints this one line only.

>- f10LinkAggMib : to see MAC addresses learned on LAG interfaces

$ snmpwalk -v 2c -c public 192.168.1.1 f10LinkAggMib
F10-LINK-AGGREGATION-MIB::dot3aClearFdb.0 = INTEGER: no(2)

#There is no LAG interface configured.


Regards,

keio

>Hope this helps.
>
>-Ron
>
>
>o k wrote:
> > Hi,
> >
> > I'm trying to get the port number on which a MAC address has been
learned,
> > by using SNMP.
> > But when I snmpwalk, E300 responds like this:
> >
> > $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.1
> > BRIDGE-MIB::dot1dTpFdbAddress = No Such Instance currently exists at
this
> > OID
> >
> > $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.2
> > BRIDGE-MIB::dot1dTpFdbPort = No Such Instance currently exists at
this
> > OID
> >
> > $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.1
> > Q-BRIDGE-MIB::dot1qTpFdbAddress = No Such Object available on this
agent
> > at this OID
> >
> > $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.2
> > Q-BRIDGE-MIB::dot1qTpFdbPort.20.'...-..' = INTEGER: 1
> > Q-BRIDGE-MIB::dot1qTpFdbPort.20.'....y.' = INTEGER: 1
> > Q-BRIDGE-MIB::dot1qTpFdbPort.20.'......' = INTEGER: 18
> > Q-BRIDGE-MIB::dot1qTpFdbPort.20.'.....V' = INTEGER: 209
> > :
> > (snip)
> > :
> >
> > $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.2.2.1.1
> > IF-MIB::ifIndex.33865785 = INTEGER: 33865785
> > :
> > (snip)
> > :
> >
> > There are some vlans (ID 20,21,,,). And no port is associated with the
> > default vlan.
> > The only OID that shows me MAC addresses connected to E300 is
> > "ipNetToMediaPhysAddress".
> > But it doesn't give the information about ports. I can know only about
the
> > VLAN-IP-MAC relationships from the OID.
> >
> > Any ideas?
> >
> > Regards
> > keio
> >
> > _________________________________________________________________
> > ????????????????????????????????SN Hotmail??>
> http://promotion.msn.co.jp/hotmail/
> >
> > _______________________________________________
> > force10-nsp mailing list
> > force10-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/force10-nsp
> >

_________________________________________________________________
??????????????????MSN Hotmail?
http://promotion.msn.co.jp/hotmail/
port numbler/mac address [ In reply to ]
Keio-san,

The MAC address (and VLAN) is encoded in the OID that is returned to you.

$ snmpwalk -c public a.b.c.d .1.3.6.1.2.1.17.7.1.2.2.1.2

SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.1.232.11.44.247 = INTEGER: 205

100 = VLANid
0.1.232.11.44.247 = MAC Address in decimal format

There was a an issue with dot1dBasePortIfIndex in an older FTOS version
that did not return the entire table correctly. If you feel that is the
case here, I'd suggest following this issue up with your reseller who
can work with Force10 on identifying the issue.

Thanks.
-Ron

o k wrote:
> Ron-san,
>
> Thank you.
>
> I'll put the SNMP get-responses I've got from my E300 between the OIDs you
> presented.
> So, I want to know where MAC Addresses are. :-)
>
>
>> - dot1qTpFdbPort : to see MAC addresses learned on non-default VLAN.
>>
>
> $ snmpwalk -v 2c -c public 192.168.1.1 dot1qTpFdbPort
> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'...-..' = INTEGER: 1
> :
> (snip)
> :
>
> * dot1qTpFdbPort --> OID
> * 20 --> VLAN ID
> * '...-..' --> Is this a MAC Address? I don't know well SNMP, but I assumed
> there is a Hex or Dec value...
> * 1 --> Port Number? gig0/0? If so, I want to know the mapping between
> this number and ifIndex.
>
>
>> - dot1dTpFdbPort : to see MAC addresses learned on default VLAN
>>
>
> $ snmpwalk -v 2c -c public 192.168.1.1 dot1dTpFdbPort
> BRIDGE-MIB::dot1dTpFdbPort = No Such Instance currently exists at this OID
>
> #There is no port associated with the default VLAN in my E300.
>
>
>> - dot1dBasePortIfIndex : to map dot1 indexes to ifIndex
>>
>
> $ snmpwalk -v 2c -c public 192.168.1.1 dot1dBasePortIfIndex
> BRIDGE-MIB::dot1dBasePortIfIndex.0 = INTEGER: 33865785
>
> #It prints this one line only.
>
>
>> - f10LinkAggMib : to see MAC addresses learned on LAG interfaces
>>
>
> $ snmpwalk -v 2c -c public 192.168.1.1 f10LinkAggMib
> F10-LINK-AGGREGATION-MIB::dot3aClearFdb.0 = INTEGER: no(2)
>
> #There is no LAG interface configured.
>
>
> Regards,
>
> keio
>
>
>> Hope this helps.
>>
>> -Ron
>>
>>
>> o k wrote:
>>
>>> Hi,
>>>
>>> I'm trying to get the port number on which a MAC address has been
>>>
> learned,
>
>>> by using SNMP.
>>> But when I snmpwalk, E300 responds like this:
>>>
>>> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.1
>>> BRIDGE-MIB::dot1dTpFdbAddress = No Such Instance currently exists at
>>>
> this
>
>>> OID
>>>
>>> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.4.3.1.2
>>> BRIDGE-MIB::dot1dTpFdbPort = No Such Instance currently exists at
>>>
> this
>
>>> OID
>>>
>>> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.1
>>> Q-BRIDGE-MIB::dot1qTpFdbAddress = No Such Object available on this
>>>
> agent
>
>>> at this OID
>>>
>>> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.17.7.1.2.2.1.2
>>> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'...-..' = INTEGER: 1
>>> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'....y.' = INTEGER: 1
>>> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'......' = INTEGER: 18
>>> Q-BRIDGE-MIB::dot1qTpFdbPort.20.'.....V' = INTEGER: 209
>>> :
>>> (snip)
>>> :
>>>
>>> $ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.2.2.1.1
>>> IF-MIB::ifIndex.33865785 = INTEGER: 33865785
>>> :
>>> (snip)
>>> :
>>>
>>> There are some vlans (ID 20,21,,,). And no port is associated with the
>>> default vlan.
>>> The only OID that shows me MAC addresses connected to E300 is
>>> "ipNetToMediaPhysAddress".
>>> But it doesn't give the information about ports. I can know only about
>>>
> the
>
>>> VLAN-IP-MAC relationships from the OID.
>>>
>>> Any ideas?
>>>
>>> Regards
>>> keio
>>>
>>> _________________________________________________________________
>>> ????????????????????????????????SN Hotmail??>
>>>
>> http://promotion.msn.co.jp/hotmail/
>>
>>> _______________________________________________
>>> force10-nsp mailing list
>>> force10-nsp at puck.nether.net
>>> https://puck.nether.net/mailman/listinfo/force10-nsp
>>>
>>>
>
> _________________________________________________________________
> ??????????????????MSN Hotmail?
> http://promotion.msn.co.jp/hotmail/
>
> _______________________________________________
> force10-nsp mailing list
> force10-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/force10-nsp
>
port numbler/mac address [ In reply to ]
Ron-san

>The MAC address (and VLAN) is encoded in the OID that is returned to you.
>
>$ snmpwalk -c public a.b.c.d .1.3.6.1.2.1.17.7.1.2.2.1.2
>
>SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.1.232.11.44.247 = INTEGER: 205
>
>100 = VLANid
>0.1.232.11.44.247 = MAC Address in decimal format

Thank you.
I sniffed snmp-response datagrams in my environment, and found they don't
have a port number value. VLANid and MAC Address are there. FTOS version is
6.2.1.3.

>There was a an issue with dot1dBasePortIfIndex in an older FTOS version
>that did not return the entire table correctly. If you feel that is the
>case here, I'd suggest following this issue up with your reseller who
>can work with Force10 on identifying the issue.

I will follow your suggestion.

Thanks again.

Keio

_________________________________________________________________
??????????????????MSN Hotmail?
http://promotion.msn.co.jp/hotmail/
port numbler/mac address [ In reply to ]
Ron-san

I'm sorry, I misunderstood. I've got the right snmp-response for
dot1qTpFdbPort.

$ snmpwalk -v 2c -c public -OX 192.168.1.1 dot1qTpFdbPort
Q-BRIDGE-MIB::dot1qTpFdbPort[20][STRING: 0:0:e2:2d:17:97] = INTEGER: 1
Q-BRIDGE-MIB::dot1qTpFdbPort[20][STRING: 0:2:a5:e8:bf:56] = INTEGER: 209
:

Regards,
keio

> >The MAC address (and VLAN) is encoded in the OID that is returned to
you.
> >
> >$ snmpwalk -c public a.b.c.d .1.3.6.1.2.1.17.7.1.2.2.1.2
> >
> >SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.1.232.11.44.247 = INTEGER: 205
> >
> >100 = VLANid
> >0.1.232.11.44.247 = MAC Address in decimal format
>
>Thank you.
>I sniffed snmp-response datagrams in my environment, and found they don't
>have a port number value. VLANid and MAC Address are there. FTOS version
is
>6.2.1.3.
>
> >There was a an issue with dot1dBasePortIfIndex in an older FTOS version
> >that did not return the entire table correctly. If you feel that is the
> >case here, I'd suggest following this issue up with your reseller who
> >can work with Force10 on identifying the issue.
>
>I will follow your suggestion.
>
>Thanks again.
>
>Keio

_________________________________________________________________
MSN???????Xbox360????????
http://shopping.msn.co.jp/softcontent/softcontent.aspx?scmId=593