lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <521826b0-18eb-1d67-7c05-73c8b62ebc61@gmail.com>
Date:   Mon, 14 May 2018 14:20:10 -0600
From:   David Ahern <dsahern@...il.com>
To:     Ryan Whelan <rcwhelan@...il.com>
Cc:     netdev@...r.kernel.org
Subject: Re: iproute2 - modifying routes in place

On 5/14/18 2:10 PM, Ryan Whelan wrote:
> On Mon, May 14, 2018 at 2:49 PM David Ahern <dsahern@...il.com> wrote:
> 
>> On 5/14/18 12:40 PM, Ryan Whelan wrote:
>>> Same behavior:
>>>
>>>
>>> root@...elan-linux ~
>>> # ip -6 route
>>> ::1 dev lo proto kernel metric 256 pref medium
>>> fd9b:caee:ff93:ceef:3431:3831:3930:3031 dev internal0 proto kernel
> metric
>>> 256 pref medium
>>> fd9b:caee:ff93:ceef:3431:3831:3930:3032 dev internal0 src
>>> fd9b:caee:ff93:ceef:3431:3831:3930:3031 metric 1024 pref medium
>>> fe80::/64 dev enp0s3 proto kernel metric 256 pref medium
>>> fe80::/64 dev enp0s8 proto kernel metric 256 pref medium
>>> fe80::/64 dev internal0 proto kernel metric 256 pref medium
>>>
>>> root@...elan-linux ~
>>> # ip -6 route change fd9b:caee:ff93:ceef:3431:3831:3930:3032 dev
> internal0
>>> src fd9b:caee:ff93:ceef:3431:3831:3930:3031 metric 10
>>> RTNETLINK answers: No such file or directory
> 
>> 'change' only sets NLM_F_REPLACE. Since NLM_F_CREATE is not set ('ip ro
>> replace') it does not add a new route and expects one to exist. Your
>> table above shows the prefix with metric 256 not metric 10 so the route
>> does not match. You should be seeing a message in dmesg to this effect.
> 
> 
> Is there a syntax for changing a route in-place?  Specifically, i'm
> interesting in changing the metric of currently existing routes.
> 

No. Metric is one of the keys. You will need to insert and delete.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ