[ixpmanager] update-l2database.pl not updating database

Nick Hilliard nick at inex.ie
Wed Sep 25 22:12:30 IST 2013


On 25/09/2013 20:54, Brian Thompson wrote:
> My understanding of Juniper is without the dot is layer 2 switching and
> with the dot is layer 3 routing.

without the dot is the physical port.  With the dot is the L2 or L3
interface.  If the number after the dot is zero, then it's a non .1q-tagged
port.  If the number after the dot is >= 0, then that refers to the logical
unit of the interface, which will often (but not necessarily) be the same
as the vlan tag.

I'm pretty sure that update-l2database.pl is correct here.  For MAC address
00d02b194100, the data obtained from the switch is:

> 00d02b194100 == 0.208.43.25.65.0
> 
> dot1qTpFdbPort: .1.3.6.1.2.1.17.7.1.2.2.1.2.2.0.208.43.25.65.0 = INTEGER: 552
> 
> dot1dBasePortIfIndex: .1.3.6.1.2.1.17.1.4.1.2.552 = INTEGER: 623
> 
> ifDescr: .1.3.6.1.2.1.2.2.1.2.622 = STRING: "ge-0/0/39"
> ifDescr: .1.3.6.1.2.1.2.2.1.2.623 = STRING: "ge-0/0/39.0"

This means that mac address 00d02b194100 points to FdbPort ID 552 which is
IfIndex 623, i.e. ifDescr "ge-0/0/39.0", not "ge-0/0/39".

In order to make this work, we either need to cook the entries here (which
I think is probably technically wrong), or else update the entries in the
ixp manager switchport database to use the ".0" variant.

Maybe the way to fix this is to select all ports of type 53:

ifType.622 = INTEGER: 6
ifType.623 = INTEGER: 53

ifType 6 (i.e. "ethernet-csmacd" - physical hardware), whereas type 53 is
Juniper's idea of the logical interface attached to the physical hardware.
 Ref:

http://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib

Nick



More information about the ixpmanager mailing list