Hi
I have a Suse 9.0 Linux box with two network interfaces and i like to configure it in the way that the box ansers a request trought the same provider as it got in.
eth0 / ip=192.168.100.100 / 192.168.100.0/24 / gw=100.1
eth1 / ip=192.168.102.100 / 192.168.102.0/24 / gw=102.1
I found a document which should help me to get the solution, but no luck.
I added the tables to /etc/iproute2/rt_tables
10 T1
20 T2
the commands i am using are
- ip route add 192.168.100.0/24 dev eth0 src 192.168.100.100 table T1
- ip route add default via 192.168.100.1 table T1
- ip route add 192.168.102.0/24 dev eth1 src 192.168.102.100 table T2
- ip route add default via 192.168.102.1 table T2
*1 ip route add 192.168.100.0/24 dev eth0 src 192.168.100.100
*1 ip route add 192.168.102.9/24 dev eth1 src 192.168.102.100
*1 ip route add default via 192.168.100.1
*2 ip route add from 192.168.100.100 table T1
*2 ip route add from 192.168.102.100 table T2
*1 reuslt: RTNETLINK ansers: File exists
*2 result: RTNETLINK ansers: No such device
Anybody with a solution?
Thanks,
Reto
I have a Suse 9.0 Linux box with two network interfaces and i like to configure it in the way that the box ansers a request trought the same provider as it got in.
eth0 / ip=192.168.100.100 / 192.168.100.0/24 / gw=100.1
eth1 / ip=192.168.102.100 / 192.168.102.0/24 / gw=102.1
I found a document which should help me to get the solution, but no luck.
I added the tables to /etc/iproute2/rt_tables
10 T1
20 T2
the commands i am using are
- ip route add 192.168.100.0/24 dev eth0 src 192.168.100.100 table T1
- ip route add default via 192.168.100.1 table T1
- ip route add 192.168.102.0/24 dev eth1 src 192.168.102.100 table T2
- ip route add default via 192.168.102.1 table T2
*1 ip route add 192.168.100.0/24 dev eth0 src 192.168.100.100
*1 ip route add 192.168.102.9/24 dev eth1 src 192.168.102.100
*1 ip route add default via 192.168.100.1
*2 ip route add from 192.168.100.100 table T1
*2 ip route add from 192.168.102.100 table T2
*1 reuslt: RTNETLINK ansers: File exists
*2 result: RTNETLINK ansers: No such device
Anybody with a solution?
Thanks,
Reto