Znyx Networks bh5700 Manuel D’Utilisation
Counter 30: 0
Counter 31: 0
iptables(8) is used to setup a rule, and associate that rule with a counter. For instance, add a
rule to accept all packets from 10.0.0.11 and associate that rule with FFP Counter 1.
rule to accept all packets from 10.0.0.11 and associate that rule with FFP Counter 1.
iptables –A FORWARD –s 10.0.0.11 –j ZACTION -–accept
–-counter 1
–-counter 1
Start zfilterd to move the rule entered with iptables(8) down into the switching silicon.
zfilterd
Counter 1 will now increment as traffic is sent to the switch from host 10.0.0.11.
zffpcounter
Counter 0: 0
Counter 1: 98
Counter 2: 0
.
.
.
The next example queries ports 2-7, 15, and 19-21.
zffpcounter -P 1..4, 15, 19..21
Counter 1: 98
Counter 2: 0
Counter 3: 0
Counter 4: 0
Counter 15: 0
Ethernet Switch Blade User's Guide
release 3.2.2j
page 290