I am trying to practice some packet sniffing on my virtual machine using tcpdump and writing it to a pcap file. I put wlan0 into monitor mode using these commands:
ifconfig wlan0 down iwconfig wlan0 mode Monitor ifconfig wlan0 up
I then used the command tcpdump -i wlan0 -s 1500 -v -w traffic.pcap to capture packets. However, it is saying that wlan0 has captured 0 packets. I am pretty sure this is cause all traffic is going through the eth0 interface, but I am not sure how to have the traffic go through the wlan0 interface as wlan0 can support monitor mode. Any help would be great thanks! Also I am running this on kali linux.