nerdexam
Cisco

210-255 · Question #175

Which filter shows only SMTP and ICMP traffic on Wireshark?

The correct answer is B. tcp.port eq 25 or icmp. The correct Wireshark display filter to capture only SMTP and ICMP traffic is 'tcp.port eq 25 or icmp', using valid display filter field names and operators.

Network Intrusion Analysis

Question

Which filter shows only SMTP and ICMP traffic on Wireshark?

Options

  • Atcp.eq 25 or icmp
  • Btcp.port eq 25 or icmp
  • Cport eq 25 and icmp
  • Dtcp.port eq 25 also icmp

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    85% (17)
  • D
    10% (2)

Why each option

The correct Wireshark display filter to capture only SMTP and ICMP traffic is 'tcp.port eq 25 or icmp', using valid display filter field names and operators.

Atcp.eq 25 or icmp

'tcp.eq 25' is not valid display filter syntax because 'tcp' is a protocol identifier and does not support a direct 'eq' comparison operator without a field name.

Btcp.port eq 25 or icmpCorrect

In Wireshark display filter syntax, 'tcp.port' is the correct field name to match TCP packets by source or destination port, and 'eq 25' specifies port 25 used by SMTP. The 'or' logical operator correctly combines this with the 'icmp' protocol filter so that packets matching either condition are displayed. This syntax adheres to Wireshark's display filter language, which differs from its capture filter (BPF) syntax.

Cport eq 25 and icmp

'port eq 25' is BPF capture filter syntax and is invalid as a Wireshark display filter; additionally, 'and' would require a packet to satisfy both conditions simultaneously, excluding pure SMTP or pure ICMP packets.

Dtcp.port eq 25 also icmp

'also' is not a valid logical operator in Wireshark display filter syntax; the correct boolean operator to combine two conditions is 'or'.

Concept tested: Wireshark display filter syntax for multiple protocols

Source: https://www.wireshark.org/docs/wsug_html_chunked/ChWorkBuildDisplayFilterSection.html

Topics

#Wireshark filters#SMTP#ICMP#display filters

Community Discussion

No community discussion yet for this question.

Full 210-255 Practice