ip rule add (Changing order of rules?)

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to route:

from 196.33.50.0/25  (default route) to ISP1
from 196.33.248.0/24 (default route) to ISP2


ISP1 --------- fire --+---- 196.33.248.0/24
              /       |
ISP2 --------/        +---- router ----- router ----- 196.33.50.0/25


What I've done:
Default route via ISP1
created routing table ISP2 for default route via ISP2

I would like to do the following but they get loaded in the wrong order:

ip rule add from 196.33.248.0/24 to 196.33.248.0/24 table main
ip rule add from 196.33.248.0/24 table ISP2



Everything works but 196.33.248.0/24 can't connect to fire as fire is 
loading the rule pointing at ISP2 first...


Regards
David Herselman  (Executive Proprietor)  -=*> Syrex Intranets <*=-

=- 12 Coronation Road      http://www.syrex.co.za
   Sandhurst               +27-(0)11-883-2246 Voice
   2196                    +27-(0)11-884-7945 Fax

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux