# Configuring OPBNOS

Aviz OPBNOS provides a highly scalable, flexible and affordable solution to aggregate, filter and load balance network traffic from hardware or virtual TAPs to connected tools for analysis and visualization.

It provides line rate traffic forwarding using switching ASIC by configuring flow paths between two or multiple ports, By leveraging the OPBNOS solution, enterprises can quickly be scaled up or down to meet the ever-changing demands of network visibility and security tools.

* Download the latest build of OPBNOS from [here](https://support.aviznetworks.com/hc/en-us/sections/10268293275149-OPB)
* OPBNOS can be installed by following the [installation guide](https://aviznetworks.gitbook.io/opbnos-r2.6/getting-started/image-management)
* Login into the switch with default credentials
  * User: <mark style="color:purple;">admin</mark>
  * Password: <mark style="color:purple;">admin</mark>
* Configure [Management IP](https://aviznetworks.gitbook.io/opbnos-r2.6/cli-configuration-guide/interface-management/configuring-management-interface)

```bash
configure terminal
interface mgmt
ip address 10.4.4.96/23 gateway 10.4.4.1
end
```

* Configure [network ports](https://aviznetworks.gitbook.io/opbnos-r2.6/cli-configuration-guide/configuring-flows-and-rules/configuring-network-ports), these are the ports that connect to network-taps

```bash
configure terminal
interface ethernet Ethernet63/1
forward-error-correction rs
type network
end
```

* Configure [tool ports](https://aviznetworks.gitbook.io/opbnos-r2.6/cli-configuration-guide/configuring-flows-and-rules/configuring-tool-ports), these are the ports that connect to security tools

```bash
configure terminal
interface ethernet Ethernet64/1
forward-error-correction rs
type tool
end
```

* [Configure flow](https://aviznetworks.gitbook.io/opbnos-r2.6/cli-configuration-guide/configuring-flows-and-rules) to filter and forward traffic

```bash
// Traffic Truncation (IPv4 and IPv6)

configure terminal
interface ethernet Ethernet63/1 
truncate 64

```

```bash
// Traffic Redirection (L2 and L3 Traffic)

configure terminal
flow flow01
network-ports Ethernet63/1
tool-ports Ethernet64/1
rule 1 permit vlan 100 counters enable
rule 2 permit vlan 512 counters enable
rule 3 permit src-ip 10.10.10.1/32 dest-ip 20.20.20.1/32 counters enable
rule 4 permit src-ip 213.22.1.2/32 dest-ip 112.23.42.2/32 protocol udp counters enable
enable
end
```

<pre class="language-bash"><code class="lang-bash">// LoadBalance Traffic on Multiple Tool Ports

// Traffic Distribution (IPv4 and IPv6) and Symmetric Hashing
configure terminal
<strong>port-group 10 ports Ethernet6/1, Ethernet7/1
</strong>
flow flow2
network-ports Ethernet63/1
tool-ports port-channel10
rule 1 permit src-ip 1.1.1.1/32 dest-ip 2.2.2.2/32 protocol tcp counters enable
rule 2 permit src-ip 2401::1 src-netmask f::f dest-ip 2401::2 dest-netmask f::f counters enable
enable
end
</code></pre>

* Verify configured flow

```bash
pbnoscli# show flow summary
Flow-Name       Rule-Id        Status      Counter-Value
=========================================================
flow01          2             Active          52562              
flow01          1             Active          56289              
pbnoscli#
```

The same rules can also be configured by using the [Aviz FlowVision](https://aviznetworks.gitbook.io/opbnos-r2.6/aviz-flowvision-graphical-user-interface-guide):

<figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/y56nWUWdeIQZb0HefD0p/Picture%2011.png" alt=""><figcaption><p>Aviz FlowVision</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/sI1oJmPSmyoNwMAHBwT9/Picture%2021.png" alt=""><figcaption><p>Aviz FlowVision</p></figcaption></figure>

```bash
pbnoscli# show running-config          
configure terminal
interface ethernet Ethernet248
forward-error-correction rs
type network
!
interface ethernet Ethernet252
forward-error-correction rs
type tool
!
interface mgmt
ip address 10.4.4.96/23 gateway 10.4.4.1
!
port-group 10 ports Ethernet6/1, Ethernet7/1
flow flow01
enable
network-ports Ethernet63/1
tool-ports port-group10
rule 1 permit src-ip 10.10.10.1/32 dest-ip 20.20.20.1/32 counters enable
rule 2 permit src-ip 213.22.1.2/32 dest-ip 112.23.42.2/32 protocol udp counters enable
!
pbnoscli#
```
