Howto install tcpdump on Centos 6.3 or Redhat 6.3 RHEL

Howto install tcpdump on Centos 6.3 or Redhat 6.3 RHEL

1. Install Tcpdump on Centos or Redhat

[root@Centos6 /]# yum install tcpdump
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: ftp.neowiz.com
* extras: centos-hcm.viettelidc.com.vn
* rpmforge: apt.sw.be
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package tcpdump.i686 14:4.0.0-3.20090921gitdf3cb4.2.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
tcpdump i686 14:4.0.0-3.20090921gitdf3cb4.2.el6 base 330 kTransaction Summary
=====================================================================================================================================================================================================
Install 1 Package(s)Total download size: 330 k
Installed size: 757 k
Is this ok [y/N]: y
Downloading Packages:
tcpdump-4.0.0-3.20090921gitdf3cb4.2.el6.i686.rpm | 330 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 14:tcpdump-4.0.0-3.20090921gitdf3cb4.2.el6.i686 1/1
Verifying : 14:tcpdump-4.0.0-3.20090921gitdf3cb4.2.el6.i686 1/1Installed:
tcpdump.i686 14:4.0.0-3.20090921gitdf3cb4.2.el6

Complete!
[root@Centos6 /]#

2. Try to using that

[root@Centos6 /]# tcpdump -i eth0 port 80
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes

That’s all. Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>