• I have these interfaces on my linux machine : eth0, vti1 and vti2.
  • vti1 and vti2 were added after I configured libreswan IPSec. Now I want to distribute traffic through both these interfaces equally. How can I configure linux routing to achieve this?

I tried this but it did not work

  • ip route add 'DEST-CIDR' nexthop dev vti1 weight 1 nexthop dev vti2 weight 1

Can anyone help me in this?

  • 1
    Could you please add to the question the current routing table? ip route show How many ISPs are you using? Do you use PI or PA classes? en.wikipedia.org/wiki/Provider-independent_address_space – Mircea Vutcovici Sep 27 '20 at 14:17
  • @Mircea here it is : 1.) default via dev eth0 proto dhcp metric 100\n 2.)\n nexthop dev vti1 weight 1\n nexthop dev vti2 weight 1\n 3.) dev eth0 proto kernel scope link src metric 100\n – himanshu Sep 27 '20 at 19:26
  • I am using an ec2 instance in AWS. – himanshu Sep 27 '20 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.