If your OS has (and uses) /etc/rc.local you could include a script there
similar to:
#!/bin/bash
for INT in `cat /root/configs/interfaces_to_monitor`
do
ifconfig ${INT} down
done
modprobe -r igb pf_ring
sleep 1
modprobe igb
modprobe pf_ring
sleep 1
for INT in `cat /root/configs/interfaces_to_monitor`
do
ethtool -G ${INT} rx 4096
ethtool -C ${INT} adaptive-rx off
ethtool -K ${INT} tso off
ethtool -K ${INT} gro off
ethtool -K ${INT} lro off
ethtool -K ${INT} gso off
ethtool -K ${INT} rx off
ethtool -K ${INT} tx off
ethtool -K ${INT} sg off
ifconfig ${INT} up
done
##
You will need to have a file containing a list of interfaces you want to
monitor and substitute the appropriate driver for your system (i.e., igb,
e1000e, or ixgbe)...
There may (should) of course be better ways to do it, but that's how I got
it done on my system...
HTH,
Jesse
On Fri, Mar 1, 2013 at 1:13 PM, frwa onto <[email protected]> wrote:
> Dear All,
> We are having an issue here where each time after reboot we
> have to run insmod pf_ring.ko. Is there any mechanism to overcome this? The
> problem we have set cronjob @reboot to run if before running the packet
> capture script but when we check the sequence is that packet capture script
> runs first and fail and there after only the insmod pr_ring.ko shell script
> is ran?
>
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
--
Jesse Bowling
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc