SNMP_BRIDGE(3)
π
SNMP_BRIDGE(3) β Library Functions Manual π
okay bestie, this is SNMP_BRIDGE(3) from the Library Functions Manual, and it's literally the bridge module for snmpd. no cap, it's giving network-admin main character energy. π
π NAME π
snmp_bridge β bridge module for snmpd
π LIBRARY π
the library setup is exactly this vibe:
(begemotSnmpdModulePath."bridge" = /usr/lib/snmp_bridge.so)
β¨ DESCRIPTION β¨
so the snmp_bridge module implements the BRIDGE-MIB as standardized in RFC 4188, the RSTP-MIB standardized in RFC4318, and a private BEGEMOT-BRIDGE-MIB that lets you manage multiple bridge interfaces. π¦
most of the objects defined in the private BEGEMOT-BRIDGE-MIB are duplicates of the original objects defined by the standard BRIDGE-MIB, but the private MIB also defines additional objects. those extra objects make the functionality of snmp_bridge similar to ifconfig(8) for configuring bridge interfaces. π
β οΈ real talk: the original says one should consider adding write communities or loading the snmp_bridge module on systems where security is crucial. that's a big-deal security vibe check, bestie β do not sleep on it. π
π οΈ IMPLEMENTATION NOTES π οΈ
the additional objects to configure a bridge are:
begemotBridgeBaseStatusβ bridge interfaces can be created and destroyed via this object. SNMP SET operations with the following values are allowed:createAndWaitβ will attempt to create a bridge interface with the name given by the table index.createAndGoβ will attempt to create a bridge interface with the name given by the table index and set the status of the interface to"active/up".destroyβ will attempt to destroy the bridge interface.
begemotBridgeBaseSpanEnabledβ a SNMP SET operation on this object is only successful if the corresponding port has not been added as member of the bridge interface on the system.begemotBridgeBasePortStatusβ SNMP SET operations with the following values are allowed:createAndWaitβ will create a new row for the bridge member in the SNMPbegemotBridgeBasePortTablebut will not try to commit the information to the system.activeβ will attempt to commit the information to the system and will be successful only if a value forbegemotBridgeBaseSpanEnabledhas been SET already.destroyβ will attempt to remove the interface from the system bridge interface.
begemotBridgeBasePortPrivateβ this object controls a bridge interface flag calledPRIVATEwhere any private port can not communicate with another private port. π
π§ RESTRICTIONS π§
not all information in the MIBs is currently available in FreeBSD. the following variables carry no information:
dot1dBasePortCircuitdot1dBasePortDelayExceededDiscardsdot1dBasePortMtuExceededDiscardsbegemotBridgeBasePortDelayExceededDiscardsbegemotBridgeBasePortMtuExceededDiscards
π FILES π
/usr/share/snmp/defs/bridge_tree.defβ the description of the MIB tree implemented bysnmp_bridge./usr/share/snmp/mibs/BRIDGE-MIB.txtβ this is theBRIDGE-MIBthat is implemented by this module./usr/share/snmp/mibs/RSTP-MIB.txtβ this is theRSTP-MIBimplemented by this module./usr/share/snmp/mibs/BEGEMOT-BRIDGE-MIB.txtβ this is the privateBEGEMOT-BRIDGE-MIBthat is implemented by this module.
π SEE ALSO π
go check out bsnmpd(1), gensnmptree(1), snmpmod(3), if_bridge(4), and ifconfig(8). iykyk. π
π AUTHORS π
Shteryana Shopova <syrinx@FreeBSD.org> β iconic. periodt. π
and that's the page, bestie: this came from Debian, dated August 6, 2007, and it's the SNMP_BRIDGE(3) manual. slay. π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (C) 2006 Shteryana Shopova <syrinx@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms