[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1107739: iproute2: ip-route(8) man page: incorrect "ip route delete" documentation



On 2025-06-13 18:15:55 +0200, Bjørn Mork wrote:
> 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?

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)


Reply to: