Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2004 15:42:28 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        DrumFire <dpphln@tin.it>
Cc:        freebsd-net@FreeBSD.org
Subject:   Re: ifconfig and route problem.
Message-ID:  <20040225134228.GB24810@ip.net.ua>
In-Reply-To: <20040224124734.77e8835b.dpphln@tin.it>
References:  <20040224124734.77e8835b.dpphln@tin.it>

next in thread | previous in thread | raw e-mail | index | archive | help

--61jdw2sOBCFtR2d/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Feb 24, 2004 at 12:47:34PM +0000, DrumFire wrote:
> Hi,
>=20
> this is my configuration:
>=20
> rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=3D8<VLAN_MTU>
>         inet 192.168.100.1 netmask 0xffffff00 broadcast 192.168.100.255
>         ether 00:30:84:9e:9d:26
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
>=20
> and this is my default route=20
>=20
> default            192.168.100.254      UGS         0        0    rl0
>=20
> If I write something of this:
>=20
> # ifconfig rl0 $ip (where ip can be also 192.168.100.1), my default
> route is deleted, cut off server for my net.
>=20
The reason why this is done is because each route has a pointer to
one of the interface's address, and when this adress gets deleted,
we invalidate the entry too.  Not doing this caused us many problems
before.  You can see this linkage by using the following command:

	route -vn get default

> There's a way to avoid ifconfig delete my default route when I modify=20
> a ipaddress?
>=20
Unfortunately not, because there's no such operation like modifying
an IP address -- you essentially remove one address and replace it
with a new one (there's no such thing like SIOCCIFADDR).


Cheers,
--=20
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org

--61jdw2sOBCFtR2d/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAPKZEUkv4P6juNwoRAr+7AJ0ff1M9aG5LDyYxBoOr2VWlJmPuPQCfa8Wg
vyqf5zqW70uRn3iASEB4d6A=
=8qbE
-----END PGP SIGNATURE-----

--61jdw2sOBCFtR2d/--



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