The documentation of "ip route delete" in the ip-route(8) man page is incorrect. The man page says:
ip route delete
delete route
ip route del has the same arguments as ip route add, but their
semantics are a bit different.
Key values (to, tos, preference and table) select the route to
delete. If optional attributes are present, ip verifies that they
coincide with the attributes of the route to delete. If no route
with the given key and attributes was found, ip route del fails.
But the behavior is unclear when several routes match the argument.
Please report such issues directly upstream on netdev, preferably with
a patch. There is no point in opening downstream bugs about manpages
that are just shipped as-is, it's just churn and noise. Thanks.
Vincent Lefevre <vincent@vinc17.net> writes:
The documentation of "ip route delete" in the ip-route(8) man page is incorrect. The man page says:
ip route delete
delete route
ip route del has the same arguments as ip route add, but their
semantics are a bit different.
Key values (to, tos, preference and table) select the route to
delete. If optional attributes are present, ip verifies that they
coincide with the attributes of the route to delete. If no route
with the given key and attributes was found, ip route del fails.
But the behavior is unclear when several routes match the argument.
Please demonstrate that.
What should happen if one has
192.134.164.161 via 192.168.1.1 dev eth0 src 192.168.1.13 metric 100 192.134.164.161 via 192.168.1.1 dev wlp0s20f3 src 192.168.1.14 metric 600
and "ip route del 192.134.164.161" is done?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 150:53:14 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,791 |