On Thu, Mar 17, 2016 at 12:31:28PM -0700, Shohrukh Shoyoqubov wrote:
> >Synopsis: pflow(4) is not sending packets when initialized through
> hostname.if(5) and flowsrc is on trunk(4)
> >Category: system i386
> >Environment:
> System      : OpenBSD 5.8
> Details     : OpenBSD 5.8 (GENERIC.MP) #1098: Sun Aug 16 02:38:27 MDT 2015
> dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> 
> Architecture: OpenBSD.i386
> Machine     : i386
> >Description:
> This is on Soekris 6501-70 with 4 em 1Gbps NICs. NICs em0 and em1 are part
> of trunk0 with only em1 plugged in. em2 is connected to ISP. em3 is not
> used. After system starts up, pflow0 is up but no packets are being sent.
> flowsrc of pflow0 is set to the IP address of trunk0. I have another exact
> same box without trunk interface used and pflow initializes at start up and
> works fine on it.
> 
> /etc/hostname.pflow0
> flowsrc 10.10.10.9 flowdst 192.168.1.26:9997
> pflowproto 10
> 
> /etc/hostname.trunk0
> trunkproto failover trunkport em0 trunkport em1 10.10.10.9 netmask
> 255.255.255.248
> 
> >How-To-Repeat:
> Bind two interfaces in trunk0. Create a hostname.pflow0 file which uses
> trunk0 interface's IP address as flowsrc. Restart the machine. Once pflow0
> interface is up, use tcpdump to watch for pflow packets on trunk0
> interface. There should be none.
> >Fix:
> Once the system boots up, manually running the following command fixes the
> issue and packets start to flow.
> ifconfig pflow0 flowsrc 10.10.10.9 flowdst 192.168.1.26:9997 pflowproto 10
> 

What's the output of 
    ifconfig pflow0
directly after boot, i.e. when it's not working?
Wild guess: flags are UP but not RUNNING
Can you observe the boot process? Another wild guess, there will be a
    "ifconfig: SIOCSETPFLOW: Can't assign requested address"
in there.

Thanks,
Florian

-- 
I'm not entirely sure you are real.

Reply via email to