刪除虛擬網卡
sudo apt install bridge-utils
ifconfig br-xxxxxxxxxxx down
brctl delbr br-xxxxxxxxxxx
抓包
tcpdump -nn -i <網口>
例如:
在本機A上 tcpdump --nn -i eth0
在另一臺機器 B 上 ping A上eh0的ip地址
ICMP ping
ping -I 192.168.xx.A 192.168.xx.B
-I:使用指定的網絡界面送出數據包
結果:
PING 192.168.xx.A (192.168.xx.A) from 192.168.xx.B : xx(84) bytes of data.
64 bytes from 192.168.xx.B: icmp_seq=1 ttl=64 time=0.172 ms