Re: add "src" attribute to kernel route

2019-01-22 Thread Alexander Zubkov
Hi, Yes, it is possible. Take a look at the docs: https://bird.network.cz/?get_doc&v=16&f=bird-6.html#rta-krt-prefsrc On Tue, Jan 22, 2019 at 9:41 AM Volodymyr Litovka wrote: > > Hi colleagues, > > in Linux it is possible to specify source IP address for all packets > with undefined this field,

add "src" attribute to kernel route

2019-01-22 Thread Volodymyr Litovka
Hi colleagues, in Linux it is possible to specify source IP address for all packets with undefined this field, like: root@n1:~# ip route 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.1 10.1.0.2 via 10.0.0.2 dev eth1 src 10.1.0.1 using the command root@n1:~# ip route add 10.1.0.2/32