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 126.96.36.199 lookup 112
32764: from 188.8.131.52 lookup 47
32766: from all lookup main
32767: from all lookup default
#ip route sh table 112
default via 184.108.40.206 dev eth0
#ip route sh table 47
default via 220.127.116.11 dev eth2
Also I have default gw to second ISP:
route add default gw 18.104.22.168
Everything works fine - if the IP packet comes from internet to 22.214.171.124 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: 126.96.36.199/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 188.8.131.52/24 network comes from isp1 - the answer packets go via eth2 (isp2) - becouse default gw 184.108.40.206. This is not normal situation - but how to resolve it with iproute - i don't know