Re: [Openvpn-devel] [PATCH] metric: Enable support for route metric on FreeBSD

Pouria Mousavizadeh Tehrani <[email protected]>
Newsgroups net.sourceforge.lists.openvpn-devel
Message-ID <[email protected]>
Hi,

I haven't contributed to this project before, and I followed the 
CONTRIBUTING.rst guide.

I'd like to help move this patch forward. Did I miss anything in the 
process, or is there anything else I should do on my side to assist?

Thank you.

On 8/5/26 17:45, Pouria Mousavizadeh Tehrani wrote:
> Hi
> 
> On 8/5/26 16:16, Gert Doering wrote:
>> Hi,
>>
>> On Wed, Aug 05, 2026 at 02:06:33PM +0330, Pouria Mousavizadeh Tehrani 
>> wrote:
>>> The route metric has been available since FreeBSD version 1600019.
>>
>> Is there some documentation what this does?  As in, can you now install
>> two routes for the same prefix, with different metrics, and the one
>> with the "lowest metric wins"?
> 
> Yes, the route(8) manual is updated.
> https://man.freebsd.org/cgi/man.cgi? 
> query=route&sektion=8&manpath=freebsd-current
> 
> To answer your question:
> ```
> % mdo route -n4 add -net 172.31.0.0/16 -gateway 192.168.1.1 -metric 10
> add net 172.31.0.0: gateway 192.168.1.1
> % mdo route -n4 add -net 172.31.0.0/16 -gateway 192.168.1.2 -metric 1
> add net 172.31.0.0: gateway 192.168.1.2
> % netstat -rn4W | grep 172.31.0.0
> 172.31.0.0/16 192.168.1.1 UGS 0 1500 bridge0 10
> 172.31.0.0/16 192.168.1.2 UGS 0 1500 bridge0  1
> % route -n4 get 172.31.0.0
>       route to: 172.31.0.0
>    destination: 172.31.0.0
>           mask: 255.255.0.0
>        gateway: 192.168.1.2
> ...
> ```
> 
>>
>> gert
> 
> 
> 
> _______________________________________________
> Openvpn-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel

-- 
Pouria

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
OpenPGP_signature.asc (application/pgp-signature, 265 B)
-----BEGIN PGP SIGNATURE-----

iJEEARYKADkWIQSqt7cppfvJ816gj0lUwVnUeMwagAUCannLKxsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwyLDMACgkQVMFZ1HjMGoDi0gEAy1AxNhVoCo1Fk7/q6mB7
dDwaZ0nMvYVHAfBZiv8rCFMA/3htrJ0J0E07vWtUhZc6qhbz1R9x/1lh2UWGewd/
rSwN
=qyPZ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.