From: "Jan Andersen" Date: Sat, 09 Jul 2005 19:29:58 +0000 Subject: [LARTC] Problems with iproute2 Message-Id: <20050709193002.BF59BCC4@agile.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/s24/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