Mailinglist Archive: opensuse (770 mails)

< Previous Next >
[opensuse] Split Access two ISP's
Hi,

Well I am able to use both from my first ISP's shell account but I am told that anywhere else is not working. I added tables T1 and T2 to /etc/iproute2/rt_table

Is a good resource.

http://www.lartc.org/lartc.htmlhttp://www.lartc.org/lartc.html

I run through the various things and everything apears to look OK.

ip link list
ip address show
ip route list table T1
ip route list table T2

All look good.

I have put these commands into a file in /usr/local/bin/
#!/bin/bash
# Authors: Boyd Lynn Gerber <gerberb@xxxxxxxxx>
#
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:$PATH#
# reserved values
#
IF0=eth1
IF1=eth0
IF2=eth1
IP0=192.168.0.164
IP1=198.60.105.164
IP2=168.103.176.49
IP2a=168.103.176.52
P0=192.168.0.1
P1=198.60.105.2
P2=168.103.176.54
P0_NET=192.168.0.0/24
P1_NET=198.60.105.0/24
P2_NET=168.103.176.248/29
P0_NET_MASK=255.255.255.0
P1_NET_MASK=255.255.255.0
P2_NET_MASK=255.255.255.248
##ip route add $P1_NET_MASK dev $IF1 src $IP1 table T1
##ip route add default via $P1 table T1
##ip route add $P2_NET_MASK dev $IF2 src $IP2 table T2
##ip route add default via $P2 table T2
##ip route add $P1_NET_MASK dev $IF1 src $IP1
##ip route add $P2_NET_MASK dev $IF2 src $IP2
ip route add $P1_NET dev $IF1 src $IP1 table T1
ip route add default via $P1 table T1
ip rule add from $IP1 table T1
ip route add $P2_NET dev $IF2 src $IP2 table T2
#ip route add $P2_NET dev $IF2 src $IP2a table T2
ip route add default via $P2 table T2
ip rule add from $IP2 table T2
ip rule add from $IP2a table T2
#ip route add $P1_NET_MASK dev $IF1 src $IP1
#ip route add $P2_NET_MASK dev $IF2 src $IP2
#ip route add default via $P1
ip route add default via $P2
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
ip route add $P0_NET_MASK dev $IF0 table T1
ip route add $P2_NET_MASK dev $IF2 table T1
ip route add 127.0.0.0/8 dev lo table T1
ip route add $P0_NET_MASK dev $IF0 table T2
ip route add $P1_NET_MASK dev $IF1 table T2
ip route add 127.0.0.0/8 dev lo table T2

Any ideas on how to proceede?

Thanks in advance.

--
Boyd Gerber <gerberb@xxxxxxxxx> 801 849-0213
ZENEZ 1042 East Fort Union #135, Midvale Utah 84047

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups