Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 19:40:19 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Mark Blackman <mark.blackman@netscalibur.co.uk>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: default route disappears on address changes for interface.
Message-ID:  <20010711194019.A97306@sunbay.com>
In-Reply-To: <200107091035.LAA90463@mailhost2.dircon.co.uk>; from mark.blackman@netscalibur.co.uk on Mon, Jul 09, 2001 at 11:35:29AM %2B0100
References:  <200107091035.LAA90463@mailhost2.dircon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 09, 2001 at 11:35:29AM +0100, Mark Blackman wrote:
> 
> 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.
> 
Yes.  The previous routing code behavior was incorrect,
since it did not update the address in the rtentry structure,
and the old IP address (10.0.0.1) was still being used for
anonymous (with ip_src of INADDR_ANY) IP datagrams.

See PR kern/20785 for details, as well as the comment in
the sys/netinet/in_rmx.c, before the in_ifadownkill() function.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010711194019.A97306>