show ip route 192.0.2.0/24 prints a different prefix: eleven show commands silently drop their argument #1403

Closed
opened 2026-11-11 00:22:14 +00:00 by jaylouisw · 0 comments
Owner

Found by pointing every show command that takes a filter at arguments nobody implemented, and asking whether the
answer changed. Twelve of fourteen did not. The worst was not an empty answer:

r1#show ip route 192.0.2.0/24
Codes: C - connected, S - static, O - OSPF, B - BGP
C   10.0.0.0       /24  is directly connected, Gi0

The table held one route, 10.0.0.0/24. The question was whether 192.0.2.0/24 was installed. The answer printed a
different prefix — and an operator checking whether a prefix is installed is checking exactly the thing a silent drop
fabricates: the table came back looking like a yes.

The others, same shape: show arp <address>, show vlan <id>, show spanning-tree <port>, show lldp neighbors <port>, show ip interface brief <port>, show running-config interface <port>, show access-lists <n>,
show etherchannel <x>, show vrrp <group>, show version <x> — all answered with the whole table as though
nothing had been asked.

What must be true instead

  • a command that cannot use the words says so, quoting them and naming the command — and where a narrower question
    has an answer, names the command that gives it;
  • a refusal is not a table with a sentence on top;
  • an unknown port is named as unknown, never described as a port that "is not carrying OSPF" (a claim about a socket
    the box does not have).
Found by pointing every `show` command that takes a filter at arguments nobody implemented, and asking whether the answer changed. **Twelve of fourteen did not.** The worst was not an empty answer: ``` r1#show ip route 192.0.2.0/24 Codes: C - connected, S - static, O - OSPF, B - BGP C 10.0.0.0 /24 is directly connected, Gi0 ``` The table held one route, `10.0.0.0/24`. The question was whether `192.0.2.0/24` was installed. The answer printed a different prefix — and an operator checking whether a prefix is installed is checking exactly the thing a silent drop fabricates: the table came back looking like a yes. The others, same shape: `show arp <address>`, `show vlan <id>`, `show spanning-tree <port>`, `show lldp neighbors <port>`, `show ip interface brief <port>`, `show running-config interface <port>`, `show access-lists <n>`, `show etherchannel <x>`, `show vrrp <group>`, `show version <x>` — all answered with the whole table as though nothing had been asked. ## What must be true instead * a command that cannot use the words says so, quoting them and naming the command — and where a narrower question has an answer, names the command that gives it; * a refusal is not a table with a sentence on top; * an unknown port is named as unknown, never described as a port that "is not carrying OSPF" (a claim about a socket the box does not have).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge#1403
No description provided.