xref: /freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
17850265eSShteryana Shopova.\"-
27850265eSShteryana Shopova.\" Copyright (C) 2006 Shteryana Shopova <syrinx@FreeBSD.org>
37850265eSShteryana Shopova.\" All rights reserved.
47850265eSShteryana Shopova.\"
57850265eSShteryana Shopova.\" Redistribution and use in source and binary forms, with or without
67850265eSShteryana Shopova.\" modification, are permitted provided that the following conditions
77850265eSShteryana Shopova.\" are met:
87850265eSShteryana Shopova.\" 1. Redistributions of source code must retain the above copyright
97850265eSShteryana Shopova.\"    notice, this list of conditions and the following disclaimer.
107850265eSShteryana Shopova.\" 2. Redistributions in binary form must reproduce the above copyright
117850265eSShteryana Shopova.\"    notice, this list of conditions and the following disclaimer in the
127850265eSShteryana Shopova.\"    documentation and/or other materials provided with the distribution.
137850265eSShteryana Shopova.\"
147850265eSShteryana Shopova.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
157850265eSShteryana Shopova.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
167850265eSShteryana Shopova.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
177850265eSShteryana Shopova.\" ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
187850265eSShteryana Shopova.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
197850265eSShteryana Shopova.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
207850265eSShteryana Shopova.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
217850265eSShteryana Shopova.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
227850265eSShteryana Shopova.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
237850265eSShteryana Shopova.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
247850265eSShteryana Shopova.\" SUCH DAMAGE.
257850265eSShteryana Shopova.\"
2624988ed3SShteryana Shopova.Dd August 6, 2007
27a6d11f71SRuslan Ermilov.Dt SNMP_BRIDGE 3
287850265eSShteryana Shopova.Os
297850265eSShteryana Shopova.Sh NAME
307850265eSShteryana Shopova.Nm snmp_bridge
31c2025a76SJoel Dahl.Nd "bridge module for snmpd"
327850265eSShteryana Shopova.Sh LIBRARY
337850265eSShteryana Shopova.Pq begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
347850265eSShteryana Shopova.Sh DESCRIPTION
357850265eSShteryana ShopovaThe
367850265eSShteryana Shopova.Nm snmp_bridge
37b5906f8eSShteryana Shopovamodule implements the BRIDGE-MIB as standardized in RFC 4188, the RSTP-MIB
38b5906f8eSShteryana Shopovastandardized in RFC4318 and a private BEGEMOT-BRIDGE-MIB, which allows
39b5906f8eSShteryana Shopovamanagement of multiple bridge interfaces.
407850265eSShteryana ShopovaMost of the objects defined in the private BEGEMOT-BRIDGE-MIB are duplicates
417850265eSShteryana Shopovaof the original objects defined by the standard BRIDGE-MIB, but the private
427850265eSShteryana ShopovaMIB also defines additional objects which make the functionality of
437850265eSShteryana Shopova.Nm
447850265eSShteryana Shopovasimilar to
457850265eSShteryana Shopova.Xr ifconfig 8
467850265eSShteryana Shopovafor configuring bridge interfaces.
47c2025a76SJoel DahlTherefore one should consider adding write communities or loading the
487850265eSShteryana Shopova.Nm
497850265eSShteryana Shopovamodule on systems where security is crucial.
507850265eSShteryana Shopova.Sh IMPLEMENTATION NOTES
517850265eSShteryana ShopovaThe additional objects to configure a bridge are:
527850265eSShteryana Shopova.Bl -tag -width "XXXXXXXXX"
537850265eSShteryana Shopova.It Va begemotBridgeBaseStatus
547850265eSShteryana ShopovaBridge interfaces can be created and destroyed via this object.
557850265eSShteryana ShopovaSNMP SET operations with the following values are allowed:
567850265eSShteryana Shopova.Bl -tag -width ".It Va createAndWait"
577850265eSShteryana Shopova.It Va createAndWait
587850265eSShteryana Shopovawill attempt to create a bridge interface with the name given by the table
597850265eSShteryana Shopovaindex.
607850265eSShteryana Shopova.It Va createAndGo
617850265eSShteryana Shopovawill attempt to create a bridge interface with the name given by the table
627850265eSShteryana Shopovaindex and set the status of the interface to "active/up".
637850265eSShteryana Shopova.It Va destroy
646b3d6017SPawel Jakub Dawidekwill attempt to destroy the bridge interface.
657850265eSShteryana Shopova.El
667850265eSShteryana Shopova.It Va begemotBridgeBaseSpanEnabled
67f6ac2391SJoel DahlA SNMP SET operation on this object is only successful if the corresponding
687850265eSShteryana Shopovaport has not been added as member of the bridge interface on the system.
697850265eSShteryana Shopova.It Va begemotBridgeBasePortStatus
707850265eSShteryana ShopovaSNMP SET operations with the following values are allowed:
717850265eSShteryana Shopova.Bl -tag -width ".It Va createAndWait"
727850265eSShteryana Shopova.It Va createAndWait
737850265eSShteryana Shopovawill create a new row for the bridge member in the SNMP
747850265eSShteryana Shopova.Va begemotBridgeBasePortTable
757850265eSShteryana Shopovabut will not try to commit the information to the system.
767850265eSShteryana Shopova.It Va active
777850265eSShteryana Shopovawill attempt to commit the information to the system and will be successful
787850265eSShteryana Shopovaonly if a value for
797850265eSShteryana Shopova.Va begemotBridgeBaseSpanEnabled
807850265eSShteryana Shopovahas been SET already.
817850265eSShteryana Shopova.It Va destroy
827850265eSShteryana Shopovawill attempt to remove the interface from the system bridge interface.
837850265eSShteryana Shopova.El
8424988ed3SShteryana Shopova.It Va begemotBridgeBasePortPrivate
8524988ed3SShteryana ShopovaThis object controls a bridge interface flag called PRIVATE where any private
8624988ed3SShteryana Shopovaport can not communicate with another private port.
877850265eSShteryana Shopova.El
887850265eSShteryana Shopova.Sh RESTRICTIONS
897850265eSShteryana ShopovaNot all information in the MIBs is currently available in FreeBSD.
907850265eSShteryana ShopovaThe following variables carry no information:
917850265eSShteryana Shopova.Bl -tag -width "XXXXXXXXX"
927850265eSShteryana Shopova.It Va dot1dBasePortCircuit
937850265eSShteryana Shopova.It Va dot1dBasePortDelayExceededDiscards
947850265eSShteryana Shopova.It Va dot1dBasePortMtuExceededDiscards
957850265eSShteryana Shopova.It Va begemotBridgeBasePortDelayExceededDiscards
967850265eSShteryana Shopova.It Va begemotBridgeBasePortMtuExceededDiscards
977850265eSShteryana Shopova.El
987850265eSShteryana Shopova.Sh FILES
997850265eSShteryana Shopova.Bl -tag -width "XXXXXXXXX"
1007850265eSShteryana Shopova.It Pa /usr/share/snmp/defs/bridge_tree.def
1017850265eSShteryana ShopovaThe description of the MIB tree implemented by
1027850265eSShteryana Shopova.Nm .
1037850265eSShteryana Shopova.It Pa /usr/share/snmp/mibs/BRIDGE-MIB.txt
1047850265eSShteryana ShopovaThis is the BRIDGE-MIB that is implemented by this module.
105b5906f8eSShteryana Shopova.It Pa /usr/share/snmp/mibs/RSTP-MIB.txt
106b5906f8eSShteryana ShopovaThis is the RSTP-MIB implemented by this module.
1077850265eSShteryana Shopova.It Pa /usr/share/snmp/mibs/BEGEMOT-BRIDGE-MIB.txt
1087850265eSShteryana ShopovaThis is the private BEGEMOT-BRIDGE-MIB that is implemented by this module.
1097850265eSShteryana Shopova.El
1107850265eSShteryana Shopova.Sh SEE ALSO
1117850265eSShteryana Shopova.Xr bsnmpd 1 ,
1127850265eSShteryana Shopova.Xr gensnmptree 1 ,
113*914f6e62SJoel Dahl.Xr snmpmod 3 ,
1147850265eSShteryana Shopova.Xr if_bridge 4 ,
115*914f6e62SJoel Dahl.Xr ifconfig 8
1167850265eSShteryana Shopova.Sh AUTHORS
11701c2b8acSBaptiste Daroussin.An Shteryana Shopova Aq Mt syrinx@FreeBSD.org
118