View Single Post
  #4 (permalink)  
Old 2007-04-04
Reaper Reaper is offline
Member
 
Join Date: 2006-11-15
Location: Tallinn, Estonia
Posts: 82
Rep Power: 2
Reaper has an average reputation (10+)
Send a message via Skype™ to Reaper
Default Re: Force one ISP with ISP REDUNDANCY

Those are linux ip rule commands:

"ip rule add from 10.0.0.10 table ISP A"

stands for:

for all traffic originating from 10.0.0.10, use routing table named ISP A.

then there is added routing entry into ISP A routing table:
ip route add default via 194.162.56.1 dev eth2 table ISP A

You can view the ISP A routing table:
ip route ls table ISP A

Btw, with "ip rule ls" you can view the order of routing tables:
0: from all lookup local
32765: from 10.0.0.10 lookup ISP A
32766: from all lookup main
32767: from all lookup default

if traffic sould not be matched in table "ISP A" then the next rule is taken... One can set up quite complicated linux routings that way.
__________________
CCNA certified
Reply With Quote