Showing results for 
Search instead for 
Do you mean 

tcpdump on APA lan

Frequent Advisor

tcpdump on APA lan

Hi,

How do I do capture on system where I run auto port aggregation? It says lan900 is invalid.

Thanks.
Never quit
5 REPLIES
Regular Advisor Regular Advisor

Re: tcpdump on APA lan

First, run "tcpdump -D" to identify the index numbers of your interfaces.

Then use the below commands,

tcpdump -lni

Thanks,
VVS
Work is life, you know, and without it, there's nothing but fear and insecurity.
Frequent Advisor

Re: tcpdump on APA lan

tcpdump -D didn't produce any result.

We're only running APA configured interfaces.

# lanscan -q
0
1
900 2 4
901 3 5
902
903
904
Never quit
Regular Advisor

Re: tcpdump on APA lan

Hi,
Output required.
lanscan
netstat -rn
swlist | grep -i auto-port
Go to sam > networking.. > auto port...
and there you find the lan900 status.
Occasional Visitor

Re: tcpdump on APA lan

Hi all,

I have the same problem.

 

The configured aggregation on host  is lan900 with lan0 and lan3:

#lanscan -q

900        0 3

 

But when I execute tcpdump command, I have not output of lan description:

#tcpdump -D

<no output>

 

And "lni" tcpdump option, give invalid index:

#tcpdump -lni 900
tcpdump: Invalid adapter index

 

Any suggestions?

Thank you in advance.

 

Fabio.

Highlighted
Honored Contributor Honored Contributor

Re: tcpdump on APA lan

On my system, "man tcpdump" includes this note for the -D option:

The -D flag will not be supported if tcpdump was built with an
older version of libpcap that lacks the pcap_findalldevs() function.

 

So, what are your versions of tcpdump and libpcap?

(If you run tcpdump with invalid options, the usage message will include both tcpdump and libpcap version numbers.)


Example:

# tcpdump -V
tcpdump version 4.1.1
libpcap version 1.1.1
Usage: tcpdump [-aAbdDefIKlLnNOpqRStuUvxX] [ -B size ] [ -c count ]
                [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]
                [ -i interface ] [ -M secret ] [ -r file ]
                [ -s snaplen ] [ -T type ] [ -w file ] [ -W filecount ]
                [ -y datalinktype ] [ -z command ] [ -Z user ]
                [ expression ]

 

Index numbers are acceptable as an argument for the -i option only if the option -D is supported. If -D is not supported in your current version, you should be using the full interface name, not just the number, e.g. "tcpdump -lni lan900".

MK