Results 1 to 1 of 1
Thread: iproute2 - setup question...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 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 188.8.131.52 lookup 112
32764: from 184.108.40.206 lookup 47
32766: from all lookup main
32767: from all lookup default
#ip route sh table 112
default via 220.127.116.11 dev eth0
#ip route sh table 47
default via 18.104.22.168 dev eth2
Also I have default gw to second ISP:
route add default gw 22.214.171.124
Everything works fine - if the IP packet comes from internet to 126.96.36.199 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: 188.8.131.52/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 184.108.40.206/24 network comes from isp1 - the answer packets go via eth2 (isp2) - becouse default gw 220.127.116.11. This is not normal situation - but how to resolve it with iproute - i don't know