Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 6 Jan 2002 15:26:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 6 Jan 2002 15:26:28 -0500 Received: from [216.218.222.115] ([216.218.222.115]:60055 "EHLO zarzycki.org") by vger.kernel.org with ESMTP id ; Sun, 6 Jan 2002 15:26:14 -0500 Date: Sun, 6 Jan 2002 12:23:50 -0800 (PST) From: Dave Zarzycki To: Subject: In kernel routing table vs. /sbin/ip vs. /sbin/route Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Using /sbin/route, I can add multiple default routes like so: /sbin/route add -net default gw 192.168.0.1 /sbin/route add -net default gw 192.168.0.2 But I cannot do the same with /sbin/ip: /sbin/ip route add default via 192.168.0.1 /sbin/ip route add default via 192.168.0.2 RTNETLINK answers: File exists Given that /sbin/ip is the more powerful and modern tool, I'm lead to believe that /sbin/route might be leaving the in kernel routing table in a weird state. My two simple questions are as follows: 1) Which tool is more correct? 2) What is the behavior of the kernel when multiple default routes are defined? Thanks, davez -- Dave Zarzycki http://zarzycki.org/~dave/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/