Mailinglist Archive: opensuse (770 mails)

< Previous Next >
Re: [opensuse] Split Access two ISP's
James Knott [31.08.2012 14:19]:
Boyd Lynn Gerber wrote:
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

You can only have one default route.


Looking at <http://lartc.org/howto/lartc.rpdb.multiple-links.html>,
"table Tn" makes the difference. So there is

ip route add default via $P1 table T1
ip route add default via $P2 table T2
ip route add default via $P2

I think the commented lines were quoted only to raise the confusion
factor ;-)

Regards,
Werner
--

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

< Previous Next >
Follow Ups