Closed Pelt10 closed 6 months ago
These are ingress samples, so it's quite likely that the PSAMPLE channel is reporting output-interface 0 (unknown) since that decision is made later in the pipeline. If hsflowd were to look up the routing tables then it might be able to fill in the egress interface for ingress samples. However that enhancement has not been made (yet).
So to get in/out visibility you might want to turn on bidirectional sampling.
The dent module should be able to issue the correct tc(1) commands for you, but first you need to tell the psample to expect egress samples too (the dent module will notice that and generate tc commands accordingly).
psample { group=1 ingress=on egress=on }
dent { sw=on switchport=enp.* }
Hello,
I use host-sflow on a virtual machine(Debian 11.7 with kernel 5.10.0-23) which acts as network-edge router. I have strange behaviour where I never have out interface(ifindex = 0) on all flows.
With debug enable on process I get this log (extract) :
my configuration :
With the tc_psample script(here) on all interfaces(tc_psample $DEV 1000 1).
Is there something I don't understand? Do you have any idea?