【运维】日常笔记

删除虚拟网卡

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章