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.\" 267850265eSShteryana Shopova.\" $FreeBSD$ 277850265eSShteryana Shopova.\" 2824988ed3SShteryana Shopova.Dd August 6, 2007 297850265eSShteryana Shopova.Dt snmp_bridge 3 307850265eSShteryana Shopova.Os 317850265eSShteryana Shopova.Sh NAME 327850265eSShteryana Shopova.Nm snmp_bridge 337850265eSShteryana Shopova.Nd "bridge module for snmpd. 347850265eSShteryana Shopova.Sh LIBRARY 357850265eSShteryana Shopova.Pq begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so" 367850265eSShteryana Shopova.Sh DESCRIPTION 377850265eSShteryana ShopovaThe 387850265eSShteryana Shopova.Nm snmp_bridge 39b5906f8eSShteryana Shopovamodule implements the BRIDGE-MIB as standardized in RFC 4188, the RSTP-MIB 40b5906f8eSShteryana Shopovastandardized in RFC4318 and a private BEGEMOT-BRIDGE-MIB, which allows 41b5906f8eSShteryana Shopovamanagement of multiple bridge interfaces. 427850265eSShteryana ShopovaMost of the objects defined in the private BEGEMOT-BRIDGE-MIB are duplicates 437850265eSShteryana Shopovaof the original objects defined by the standard BRIDGE-MIB, but the private 447850265eSShteryana ShopovaMIB also defines additional objects which make the functionality of 457850265eSShteryana Shopova.Nm 467850265eSShteryana Shopovasimilar to 477850265eSShteryana Shopova.Xr ifconfig 8 487850265eSShteryana Shopovafor configuring bridge interfaces. 497850265eSShteryana ShopovaTherefore one should consider adding write comminities or loading the 507850265eSShteryana Shopova.Nm 517850265eSShteryana Shopovamodule on systems where security is crucial. 527850265eSShteryana Shopova.Sh IMPLEMENTATION NOTES 537850265eSShteryana ShopovaThe additional objects to configure a bridge are: 547850265eSShteryana Shopova.Bl -tag -width "XXXXXXXXX" 557850265eSShteryana Shopova.It Va begemotBridgeBaseStatus 567850265eSShteryana ShopovaBridge interfaces can be created and destroyed via this object. 577850265eSShteryana ShopovaSNMP SET operations with the following values are allowed: 587850265eSShteryana Shopova.Bl -tag -width ".It Va createAndWait" 597850265eSShteryana Shopova.It Va createAndWait 607850265eSShteryana Shopovawill attempt to create a bridge interface with the name given by the table 617850265eSShteryana Shopovaindex. 627850265eSShteryana Shopova.It Va createAndGo 637850265eSShteryana Shopovawill attempt to create a bridge interface with the name given by the table 647850265eSShteryana Shopovaindex and set the status of the interface to "active/up". 657850265eSShteryana Shopova.It Va destroy 666b3d6017SPawel Jakub Dawidekwill attempt to destroy the bridge interface. 677850265eSShteryana Shopova.El 687850265eSShteryana Shopova.It Va begemotBridgeBaseSpanEnabled 697850265eSShteryana ShopovaA SNMP SET operation on this object is only successfull if the corresponding 707850265eSShteryana Shopovaport has not been added as member of the bridge interface on the system. 717850265eSShteryana Shopova.It Va begemotBridgeBasePortStatus 727850265eSShteryana ShopovaSNMP SET operations with the following values are allowed: 737850265eSShteryana Shopova.Bl -tag -width ".It Va createAndWait" 747850265eSShteryana Shopova.It Va createAndWait 757850265eSShteryana Shopovawill create a new row for the bridge member in the SNMP 767850265eSShteryana Shopova.Va begemotBridgeBasePortTable 777850265eSShteryana Shopovabut will not try to commit the information to the system. 787850265eSShteryana Shopova.It Va active 797850265eSShteryana Shopovawill attempt to commit the information to the system and will be successful 807850265eSShteryana Shopovaonly if a value for 817850265eSShteryana Shopova.Va begemotBridgeBaseSpanEnabled 827850265eSShteryana Shopovahas been SET already. 837850265eSShteryana Shopova.It Va destroy 847850265eSShteryana Shopovawill attempt to remove the interface from the system bridge interface. 857850265eSShteryana Shopova.El 8624988ed3SShteryana Shopova.It Va begemotBridgeBasePortPrivate 8724988ed3SShteryana ShopovaThis object controls a bridge interface flag called PRIVATE where any private 8824988ed3SShteryana Shopovaport can not communicate with another private port. 897850265eSShteryana Shopova.El 907850265eSShteryana Shopova.Sh RESTRICTIONS 917850265eSShteryana ShopovaNot all information in the MIBs is currently available in FreeBSD. 927850265eSShteryana ShopovaThe following variables carry no information: 937850265eSShteryana Shopova.Bl -tag -width "XXXXXXXXX" 947850265eSShteryana Shopova.It Va dot1dBasePortCircuit 957850265eSShteryana Shopova.It Va dot1dBasePortDelayExceededDiscards 967850265eSShteryana Shopova.It Va dot1dBasePortMtuExceededDiscards 977850265eSShteryana Shopova.It Va begemotBridgeBasePortDelayExceededDiscards 987850265eSShteryana Shopova.It Va begemotBridgeBasePortMtuExceededDiscards 997850265eSShteryana Shopova.El 1007850265eSShteryana Shopova.Sh FILES 1017850265eSShteryana Shopova.Bl -tag -width "XXXXXXXXX" 1027850265eSShteryana Shopova.It Pa /usr/share/snmp/defs/bridge_tree.def 1037850265eSShteryana ShopovaThe description of the MIB tree implemented by 1047850265eSShteryana Shopova.Nm . 1057850265eSShteryana Shopova.It Pa /usr/share/snmp/mibs/BRIDGE-MIB.txt 1067850265eSShteryana ShopovaThis is the BRIDGE-MIB that is implemented by this module. 107b5906f8eSShteryana Shopova.It Pa /usr/share/snmp/mibs/RSTP-MIB.txt 108b5906f8eSShteryana ShopovaThis is the RSTP-MIB implemented by this module. 1097850265eSShteryana Shopova.It Pa /usr/share/snmp/mibs/BEGEMOT-BRIDGE-MIB.txt 1107850265eSShteryana ShopovaThis is the private BEGEMOT-BRIDGE-MIB that is implemented by this module. 1117850265eSShteryana Shopova.El 1127850265eSShteryana Shopova.Sh SEE ALSO 1137850265eSShteryana Shopova.Xr bsnmpd 1 , 1147850265eSShteryana Shopova.Xr gensnmptree 1 , 1157850265eSShteryana Shopova.Xr if_bridge 4 , 1167850265eSShteryana Shopova.Xr ifconfig 8 , 1177850265eSShteryana Shopova.Xr snmpmod 3 1187850265eSShteryana Shopova.Sh AUTHORS 1197850265eSShteryana Shopova.An Shteryana Shopova Aq syrinx@FreeBSD.org 120