show ip route 192.0.2.0/24 prints a different prefix: eleven show commands silently drop their argument #1403
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1403
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by pointing every
showcommand that takes a filter at arguments nobody implemented, and asking whether theanswer changed. Twelve of fourteen did not. The worst was not an empty answer:
The table held one route,
10.0.0.0/24. The question was whether192.0.2.0/24was installed. The answer printed adifferent 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 thoughnothing had been asked.
What must be true instead
has an answer, names the command that gives it;
the box does not have).
showrefusals point at answers that do not exist: the rejected word is offered back as a port, and the route refusal names a table it never printed #2146showrefusal names a command this box can run, and no table it did not print (#2146) #2147show ip bgprefuses a word it cannot use, instead of dropping it #2263