Configuring OPBNOS
configure terminal
interface mgmt
ip address 10.10.10.1/23 gateway 10.4.4.1
endconfigure terminal
interface ethernet Ethernet248
forward-error-correction rs
type network
endLast updated
configure terminal
interface mgmt
ip address 10.10.10.1/23 gateway 10.4.4.1
endconfigure terminal
interface ethernet Ethernet248
forward-error-correction rs
type network
endLast updated
configure terminal
interface ethernet Ethernet252
forward-error-correction rs
type tool
end// Matching on L2 traffic
configure terminal
flow flow01
network-ports Ethernet248
tool-ports Ethernet252
rule 1 permit vlan 100 counters enable
rule 2 permit vlan 512 counters enable
enable
end// Matching on L3 traffic
configure terminal
flow flow01
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
enable
endpbnoscli# show flow summary
Flow-Name Rule-Id Status Counter-Value
=========================================================
flow01 2 Active 52562
flow01 1 Active 56289
pbnoscli#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.10.10.1/23 gateway 10.4.4.1
!
flow flow01
enable
network-ports Ethernet248
tool-ports Ethernet252
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#