From owner-freebsd-net Sun Mar 3 18:10:57 2002 Delivered-To: freebsd-net@freebsd.org Received: from m2.mv.meer.net (mail.meer.net [209.157.152.14]) by hub.freebsd.org (Postfix) with ESMTP id 42F0B37B404 for ; Sun, 3 Mar 2002 18:10:54 -0800 (PST) Received: from neville-neil.com ([209.157.133.226]) by m2.mv.meer.net (8.12.1/8.12.1/meer) with ESMTP id g242ARBu093357; Sun, 3 Mar 2002 18:10:27 -0800 (PST) Message-Id: <200203040210.g242ARBu093357@m2.mv.meer.net> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Rogier R. Mulhuijzen" Cc: Brendan Kosowski , FreeBSD Networking Subject: Re: How can I give one route priority over the other route ? In-Reply-To: Message from "Rogier R. Mulhuijzen" of "Mon, 04 Mar 2002 02:59:04 +0100." <5.1.0.14.0.20020304025555.02c9eac8@mail.drwilco.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 Mar 2002 18:10:36 -0800 From: "George V. Neville-Neil" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > >In situations where there are 2 routes in your routing table that apply to > >a given destination IP address, how do you give one route priority over > >the other ? > > The one with the widest netmask is used. > > So if you have both 10.0.0.0/8 and 10.42.69.0/24 in your routing table and > for instance a packet needs to go to 10.42.69.13 the latter is used. > Alas this is not what the writer is asking for. This is an issue with the routing system design. Many routers allow duplicate routes (same netmask) that have different priorities. This makes it quicker to switch routes during a failure. At the moment, the only way to do this in *BSD that I know if is to hack the sources and add sysctl/ioctls to address this. There is a derivative implementation that puts a list of addresses at each node but that's not the best solution. Later, George -- George V. Neville-Neil gnn@neville-neil.com NIC:GN82 "Those who would trade liberty for temporary security deserve neither" - Benjamin Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message