tcpdump not listening on any other interface
Hi! On Fedora, I'm trying to get tcpdump to listen on other interfaces, besides eth0. I have a total of 6 (eth0-eth5). Whenever I specify an interface to listen on (e.g. tcpdump -i eth4), it will only listen on eth0 every time. Listening on 'any' interface yields the same results.
|
How are you determining that only eth0 is being used?
Code:
# tcpdump -i eth3 Code:
kernel: device eth3 entered promiscuous mode |
command being used:
Code:
# tcpdump -i eth4 Code:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode Code:
kernel: device eth0 entered promiscuous mode |
Looks like there might be an alias at play. Try entering the full path to tcpdump.
Code:
/usr/sbin/tcpdump -i eth4 |
That worked. Hm, where would this alias be defined? I checked /etc/profile and /etc/bashrc, as well as the local logins', but there's nothing referencing it.
|
alias -p should list your aliases. You might also check .bash_profile .bash_rc.
|
Thanks so much! That solved it.
|
ajo8,
Can you please "show" What was alias ? and in which file it was defined?. It will help others as well. Thanks |
All times are GMT -5. The time now is 03:14 PM. |