---
name: "SNMP::Info::IEEE802_Bridge"
section: "3pm"
platform: "linux"
package: "libsnmp-info-perl"
version: "3.972002-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SNMP::Info::IEEE802_Bridge"
---

# SNMP::Info::IEEE802\_Bridge(3pm)

SNMP Interface to SNMP data available through the IEEE8021-Q-BRIDGE-MIB

## NAME

SNMP::Info::IEEE802\_Bridge - SNMP Interface to SNMP data available through the IEEE8021-Q-BRIDGE-MIB

## AUTHOR

Jeroen van Ingen

## SYNOPSIS

FIXME update with better example\
  my `$bridge` = new SNMP::Info (\
                              AutoSpecify =\> 1,\
                              Debug       =\> 1,\
                              DestHost    =\> 'switch',\
                              Community   =\> 'public',\
                              Version     =\> 2\
                              );

```
 my $class = $bridge->class();
 print " Using device sub class : $class\n";
 # Grab Forwarding Tables
 my $interfaces = $bridge->interfaces();
 my $fw_mac     = $bridge->fw_mac();
 my $fw_port    = $bridge->fw_port();
 my $bp_index   = $bridge->bp_index();
 foreach my $fw_index (keys %$fw_mac){
    my $mac   = $fw_mac->{$fw_index};
    my $bp_id = $fw_port->{$fw_index};
    my $iid   = $bp_index->{$bp_id};
    my $port  = $interfaces->{$iid};
    print "Port:$port forwarding to $mac\n";
 }
```

## DESCRIPTION

*IEEE8021-Q-BRIDGE-MIB* is used by some newer switches / Layer 2 devices. It is derived from the IETF Q-BRIDGE-MIB (RFC 4363), extending it with the concept of multiple VLAN-aware bridges (PBB).

Create or use a subclass of SNMP::Info that inherits this class.  Do not use directly.

For debugging you can call **new()** directly as you would in SNMP::Info

```
 my $bridge = new SNMP::Info::IEEE802_Bridge(...);
```

### Inherited Classes

None.

### Required MIBs

- *IEEE8021-Q-BRIDGE-MIB*

  ## GLOBALS

These are methods that return scalar values from SNMP

## TABLE METHODS

These are methods that return tables of information in the form of a reference to a hash.

### Per-port VLAN configuration in the device ("ieee8021QBridgePortVlanTable")

- $bridge-\>**iqb\_i\_vlan()**

  (`"ieee8021QBridgePvid"`)

- $bridge-\>**iqb\_i\_vlan\_type()**

  (`"ieee8021QBridgePortAcceptableFrameTypes"`)

- $bridge-\>**iqb\_i\_vlan\_in\_flt()**

  (`"ieee8021QBridgePortIngressFiltering"`)

### VLAN Current Table ("ieee8021QBridgeVlanCurrentTable")

- $bridge-\>**iqb\_cv\_egress()**

  (`"ieee8021QBridgeVlanCurrentEgressPorts"`)

- $bridge-\>**iqb\_cv\_untagged()**

  (`"ieee8021QBridgeVlanCurrentUntaggedPorts"`)

- $bridge-\>**iqb\_cv\_stat()**

  (`"ieee8021QBridgeVlanStatus"`)

### VLAN Static Table ("ieee8021QBridgeVlanStaticTable")

- $bridge-\>**iqb\_v\_name()**

  (`"ieee8021QBridgeVlanStaticName"`)

- $bridge-\>**iqb\_v\_egress()**

  (`"ieee8021QBridgeVlanStaticEgressPorts"`)

- $bridge-\>**iqb\_v\_fbdn\_egress()**

  (`"ieee8021QBridgeVlanForbiddenEgressPorts"`)

- $bridge-\>**iqb\_v\_untagged()**

  (`"ieee8021QBridgeVlanStaticUntaggedPorts"`)

- $bridge-\>**iqb\_v\_stat()**

  `"active"` !

  (`"ieee8021QBridgeVlanStaticRowStatus"`)
