From owner-freebsd-net Mon Jul 9 3:40:14 2001 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 9899B37B408 for ; Mon, 9 Jul 2001 03:40:10 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.4/8.11.4) with ESMTP id f69AdnI13180; Mon, 9 Jul 2001 11:39:49 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.4/8.11.4) with ESMTP id f69AfbQ61858; Mon, 9 Jul 2001 11:41:37 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200107091041.f69AfbQ61858@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Mark Blackman" Cc: freebsd-net@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: default route disappears on address changes for interface. In-Reply-To: Message from "Mark Blackman" of "Mon, 09 Jul 2001 11:35:29 BST." <200107091035.LAA90463@mailhost2.dircon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Jul 2001 11:41:37 +0100 From: Brian Somers 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 ifconfig(8) deletes and re-adds the given address. When the delete happens, the route (now) disappears. IMHO, ifconfig(8) should be smart enough to optimise out no-ops. > on FreeBSD 4.3-STABLE #1: Thu May 24 13:03:35 BST 2001 > > Is it now standard/expected behaviour that default routes > disappear on an IP address change even within the same netmask > or even to the same address if the default route is on that > interface? > > Say I've got the following setup. > > ifconfig ep0 inet 10.0.0.1 netmask 255.255.255.0 > route add default 10.0.0.254 > > then i do > > ifconfig ep0 inet 10.0.0.2 (or even 10.0.0.1) > > suddenly my default route disappears. Is this expected > behaviour and has this always been the case? I'm pretty > sure it wasn't. > > Thanks, > Mark Blackman -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message