I am in need to capture packets that contain VLAN tags on my Intel Pro/1000 CT NIC Card. When I try to capture packets using the command: tcpdump -ni eth2 vlan I do NOT capture any packets. I then issue the command: ifconfig eth2 mtu 1522 I then try to capture packets using the command: tcpdump -ni eth2 vlan I CAN now capture packets I then save my settings in my cfg file: /etc/sysconfig/network-scripts/ifcfg-eth2
I then reboot the computer. After the reboot I issue the command: tcpdump -ni eth2 vlan
I check the interface settings using: ifconfig eth2 The MTU setting is still there: ifconfig eth2
I then issue the command: ifconfig eth2 mtu 1524 and ifconfig eth2 mtu 1522 I then try to capture packets using the command: tcpdump -ni eth2 vlan
Any idea how to make the ability to capture packets permanent between reboots? Thanks in advance for any wisdom and guidance!! -John Various settings:ifconfig eth2
ethtool -i eth2
modinfo -d -p e1000e
lspci
ethtool eth2
asked 01 Nov '12, 12:11 xq1 edited 01 Nov '12, 13:59 |
2 Answers:
sounds like a problem with the driver or the hardware itself. Did you try to capture on the other 82574L adapter? BTW: You could try to boot the PC from Knoppix and/or BackTrack Live CD and check if you can capture. If it work, it might be a driver problem in CentOS 6.3. If it does not work it might be a problem with the adapter itself. Regards answered 01 Nov '12, 14:54 Kurt Knochner ♦ |
I did this by adding the following lines to /etc/rc.local because I was running into the same issue configuring it in the network script file on Centos 6.3
The problem with not being able to see tagged traffic was driving me crazy and I was on a wild goose chase looking at my libpcap version until I ran across this article. answered 03 May '13, 11:11 spantree33 edited 04 May '13, 06:45 Jaap ♦ |
Hi Kurt,
It will be very difficult to try and use a live CD as the problem is that this is a headless setup.
Both Intel interfaces behave the same.
If I use a Broadcom based NIC I have no problem capturing.
So this issue is somewhat related to the hardware and options with the driver for the Intel NIC.
In the past Broadcom support gave me a procedure for updating parameters in the firmware to allow VLAN tagged packets to be captured.
INTEL is refusing to assist in resolution so I am trying to procure Broadcom based NICs.
The fact that I can get it to work but it is not persistent over a restart is puzzling and points to a combo driver/hardware issue.
Words of wisdom are welcome. :-)
-John
I've converted your "answer" to a comment as that's how this site works, please see the FAQ.
There are occasions when you have to post a comment as an answer, e.g. if your comment is long, but otherwise replies to answers or other comments should be made as comments.