Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

tcpdump on APA lan

Highlighted
SAM_24
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
VVS
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.
SAM_24
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
Abid Iqbal
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.
hpuser72
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.

Matti_Kurkela
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