You are not logged in.

#1 2022-03-11 03:32:10

lomov_vl
Member
From: Russia, Irkutsk
Registered: 2010-01-20
Posts: 34
Website

How to translate ip-route command to systemd-networkd conf

Hello.

Could someone tell me how to translate such ip route command

  ip route add fd01:2022:0311:1::/64 dev br0 src fd01:2022:0311:1::1:1

into systemd-networkd configuration (.network) file?

I read systemd.network(5) but didn't find any key associated with the 'src' part
of ip-route.

Reason:
I have set several IPv6 addresses for br0 interface but want to connect from the
host using only concrete IPv6 address. As I understand it, the 'src' part of
ip-route do exactly that.

Offline

#2 2022-03-11 08:59:12

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: How to translate ip-route command to systemd-networkd conf

I had to check what 'src' was for: "the source address to prefer when sending to the destinations covered by the route prefix."

That seems to match PreferredSource in https://man.archlinux.org/man/systemd.n … ON_OPTIONS

Offline

#3 2022-03-13 23:44:17

lomov_vl
Member
From: Russia, Irkutsk
Registered: 2010-01-20
Posts: 34
Website

Re: How to translate ip-route command to systemd-networkd conf

Thank you Raynman!

P.S. I don't know how I could missed that parameter, I tried `Source`, but of course, it is not the right one.

Offline

Board footer

Powered by FluxBB