packet capture

can anyone tell me how can i capture the packets. i have tried ethernet software to capture them but its not doing what i want it to do it

Which OS?

I assume you mean some kind of packet sniffer?