tcpdump安装步骤及使用

准备工作:

1、安装flex

yum -y install flex

2、安装bison

yum -y install bison

安装tcpdump:

wget http://www.tcpdump.org/release/libpcap-1.5.3.tar.gz
wget http://www.tcpdump.org/release/tcpdump-4.5.1.tar.gz
tar -zxvf libpcap-1.5.3.tar.gz
cd libpcap-1.5.3
./configure
sudo make install

cd ..
tar -zxvf tcpdump-4.5.1.tar.gz
cd tcpdump-4.5.1
./configure
sudo make install

使用:

tcpdump -i eth2(网卡) dst host 10.100.3.16(目标服务器) and src host DEV-mHRO64(源地址服务器)

 

posted @ 2018-07-10 15:44  fengzmh  阅读(11176)  评论(0编辑  收藏  举报