Mailinglist Archive: opensuse (770 mails)

< Previous Next >
Re: [opensuse] Split Access two ISP's SOLVED with
Here is the cleaned up version that solves the problem

IF1=eth0
IF2=eth1
IP1=198.60.105.164
IP2=168.103.176.49
IP3=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 dev $IF1 src $IP1 table T1
ip route add default via $P1 table T1
ip route add $P2_NET dev $IF2 src $IP2 table T2
ip route add $P2_NET dev $IF2 src $IP3 table T2
ip route add default via $P2 table T2
ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src $IP2
ip route add $P2_NET dev $IF2 src $IP3
ip route add default via $P1
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
ip rule add from $IP3 table T2
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 $P1_NET_MASK dev $IF1 table T2
ip route add 127.0.0.0/8 dev lo table T2

--
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 >