[F10-nsp] port numbler/mac address

Ron Lewkiewicz ron.nsp at force10networks.com
Fri Feb 10 18:29:56 EST 2006


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
>>>
>>> _________________________________________________________________
>>> 霑キ諠代Γ繝シ繝ォ繧・え繧、繝ォ繧ケ縺ク縺ョ蟇セ遲悶b荳・・縲勲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
>   


More information about the force10-nsp mailing list