nerdexam
LPI

303-300 · Question #79

Which of the following commands displays all ebtable rules contained in the table filter including their packet and byte counters?

The correct answer is C. ebtables -t filter -L --Lc. Option C is correct because ebtables -t filter -L --Lc properly combines all three required elements: -t filter targets the correct table, -L lists all rules in that table, and --Lc is the specific long-form option that appends packet and byte counters to each rule entry - note…

Network Security

Question

Which of the following commands displays all ebtable rules contained in the table filter including their packet and byte counters?

Options

  • Aebtables -t nat -L -v
  • Bebtables -L -t filter -Lv
  • Cebtables -t filter -L --Lc
  • Debtables -t filter -Ln -L
  • Eebtables -L -Lc -t filter

How the community answered

(34 responses)
  • A
    3% (1)
  • C
    94% (32)
  • E
    3% (1)

Explanation

Option C is correct because ebtables -t filter -L --Lc properly combines all three required elements: -t filter targets the correct table, -L lists all rules in that table, and --Lc is the specific long-form option that appends packet and byte counters to each rule entry - note the double dash, which is required for this option.

Option A fails immediately because it specifies -t nat instead of -t filter, targeting the wrong table entirely. Option B uses -Lv which is invalid syntax; verbose mode (-v) does add information but is not the mechanism for packet/byte counters, and the flag combination is malformed. Option D uses -Ln (which would enable numeric output, not counters) and redundantly repeats -L without ever specifying a counter flag. Option E looks plausible but uses -Lc with a single dash, which is invalid - --Lc requires a double dash as a long option, making this a syntax error.

Memory tip: Think "double dash, double data" - --Lc needs two dashes and gives you two metrics (packets and bytes). Any option using -Lc (one dash) is a trap answer.

Topics

#ebtables#firewall rules#packet counters#bridge filtering

Community Discussion

No community discussion yet for this question.

Full 303-300 Practice