Results 1 to 1 of 1
I'v read a lot of samples about iproute2 configuration with two isp's, where describe how to setup source routing based on ip source address. This is very good, but how ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-21-2007 #1
- Join Date
- Sep 2007
iproute2 - setup question...
Let me explain what i want:
I have a router (linuxbox with 3 ethernet cards) with connections to 2 ISP.
#ip rule ls
0: from all lookup local
32758: from 22.214.171.124 lookup 112
32764: from 126.96.36.199 lookup 47
32766: from all lookup main
32767: from all lookup default
#ip route sh table 112
default via 188.8.131.52 dev eth0
#ip route sh table 47
default via 184.108.40.206 dev eth2
Also I have default gw to second ISP:
route add default gw 220.127.116.11
Everything works fine - if the IP packet comes from internet to 18.104.22.168 address it is routing back to eth0 and the same situation with eth2 - this is very good!
But now I am plannig to add NEW network: 22.214.171.124/24, the main feature of this network that it is Provider Independed Network and this network visible from BOTH ISPs simultaneously. I setup this new network as alias on eth1 interface - eth1:1. And now if the packets for 126.96.36.199/24 network comes from isp1 - the answer packets go via eth2 (isp2) - becouse default gw 188.8.131.52. This is not normal situation - but how to resolve it with iproute - i don't know