All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Problems with iproute2
@ 2005-07-09 19:29 Jan Andersen
  2005-07-10  0:35 ` gypsy
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Andersen @ 2005-07-09 19:29 UTC (permalink / raw)
  To: lartc

I'm using Debian (sarge)

I do now have 2 ISP, one DSL and one cabel.

I want to use the DSL as my primary and only use the cabel-modem if the DSL
fails.

The setup is:

IP1 -> Router -> NAT_IP1 -> eth0 -> eth2 (LAN)
IP2 -> Cable-Modem       -> eth1 -> eth2 (LAN) 

I wrote the following in my /etc/iproute2/rt_tables

ip rule add from NAT_IP1 lookup 1
ip route add 10.1.0.0/16 via 10.1.1.1 table 1
ip route add 0/0 via NAT_IP1 table 1

ip rule add from IP2 lookup 2
ip route add 10.1.0.0/16 via 10.1.1.1 table 2
ip route add 0/0 via IP2 table 2

The problem is identical to http://www.samag.com/documents/s\x1824/sam0201h/

But if I write "ip rule list" I get the following error:

Database /etc/iproute2/rt_tables is corrupted at ip rule add from
192.168.100.254 lookup 1

Does anyone know and have a solution to this problem?

Regards

Jan Andersen

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Problems with iproute2
  2005-07-09 19:29 [LARTC] Problems with iproute2 Jan Andersen
@ 2005-07-10  0:35 ` gypsy
  0 siblings, 0 replies; 2+ messages in thread
From: gypsy @ 2005-07-10  0:35 UTC (permalink / raw)
  To: lartc

Jan Andersen wrote:
> 
> I'm using Debian (sarge)
> 
> I do now have 2 ISP, one DSL and one cabel.
> 
> I want to use the DSL as my primary and only use the cabel-modem if the DSL
> fails.
> 
> The setup is:
> 
> IP1 -> Router -> NAT_IP1 -> eth0 -> eth2 (LAN)
> IP2 -> Cable-Modem       -> eth1 -> eth2 (LAN)
> 
> I wrote the following in my /etc/iproute2/rt_tables
> 
> ip rule add from NAT_IP1 lookup 1
> ip route add 10.1.0.0/16 via 10.1.1.1 table 1
> ip route add 0/0 via NAT_IP1 table 1
> 
> ip rule add from IP2 lookup 2
> ip route add 10.1.0.0/16 via 10.1.1.1 table 2
> ip route add 0/0 via IP2 table 2
> 
> The problem is identical to http://www.samag.com/documents/s\x1824/sam0201h/
> 
> But if I write "ip rule list" I get the following error:
> 
> Database /etc/iproute2/rt_tables is corrupted at ip rule add from
> 192.168.100.254 lookup 1
> 
> Does anyone know and have a solution to this problem?
> 
> Regards
> 
> Jan Andersen

No, I don't have a solution.  What is in your /etc/iproute2/rt_tables file?

Normally, everything should be commented except
255	local
254	main
253	default
0	unspec

Are you sure 'route add' should work when both routes are identical?

Where does the 192.168.100.254 come from?

Why allow NAT of the internet IPs?  
OPINION 1: One NAT is plenty, two is begging trouble.
OPINION 2: Most of the problems reported here have "example.com" ip addresses,
so avoiding NAT is A Good Thing.
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-10  0:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-09 19:29 [LARTC] Problems with iproute2 Jan Andersen
2005-07-10  0:35 ` gypsy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.