Thanks a lot for your response because i become so desperate. Sorry i wasnīt very clear with my issue.
Iīm gonna put my configuration again with more details:
This is my configuration IP:
Code:
eth0 Link encap:Ethernet HWaddr 00:50:56:AF:00:0E
inet addr:172.24.220.25 Bcast:172.24.220.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:feaf:e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2345012 errors:216 dropped:125 overruns:0 frame:0
TX packets:731249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:486347570 (463.8 MiB) TX bytes:166293313 (158.5 MiB)
Interrupt:59 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 00:50:56:AF:00:1B
inet addr:172.24.100.1 Bcast:172.24.100.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:feaf:1b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:103024 errors:0 dropped:0 overruns:0 frame:0
TX packets:95166 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9559295 (9.1 MiB) TX bytes:26251018 (25.0 MiB)
Interrupt:67 Base address:0x2080
This is my route after make configuration with iproute2 (the eth1 GW it would be 172.24.100.254):
Code:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.24.220.0 * 255.255.255.255 UH 0 0 0 eth0
172.24.100.0 * 255.255.255.255 UH 0 0 0 eth1
172.24.100.0 * 255.255.255.0 U 0 0 0 eth1
172.24.220.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 172.24.220.254 0.0.0.0 UG 0 0 0 eth0
And this is my iproute2 configuration:
Code:
echo "201 t1" >> /etc/iproute2/rt_tables
echo "202 t2" >> /etc/iproute2/rt_tables
ip route add 172.24.220.0 dev eth0 src 172.24.220.25 table t1
ip route add default via 172.24.220.254 table t1
ip route add 172.24.100.0 dev eth1 src 172.24.100.1 table t2
ip route add default via 172.24.100.254 table t2
ip route add 172.24.220.0 dev eth0 src 172.24.220.25
ip route add 172.24.100.0 dev eth1 src 172.24.100.1
ip route add default via 172.24.220.254
ip rule add from 172.24.220.25 table t1
ip rule add from 172.24.100.1 table t2
But with this configuration doesnīt work any of two interfaces. if instead of iproute2 using iptables with masquerade over eth0 both subnet access to internet through the same ip provider. And if i try to put 2 default gateways only one of them has access to internet.
Please i need to find a solution because iīm very desperate. if it necesary i will pay (thatīs a joke)!!! But seriously i will apreciate any help that you can me offer