Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Aug 2010 01:36:42 +0530
From:      ashish@FreeBSD.org (Ashish SHUKLA)
To:        "Guojun Jin" <gjin@ubicom.com>
Cc:        questions@freebsd.org, bug-followup@FreeBSD.org
Subject:   Re: Ifconfig (DHCP?) configures two IPs in one IF
Message-ID:  <86y6ckhlil.fsf@chateau.d.if>
In-Reply-To: <CB2DD11991B27C4F99935E6229450D3203950C38@STORK.scenix.com> (Guojun Jin's message of "Thu, 5 Aug 2010 11:17:21 -0700")
References:  <CB2DD11991B27C4F99935E6229450D3203950C38@STORK.scenix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Guojun Jin writes:

> This problem comes  in 8.1-R. I have seen it before and  thought I filed =
a report but cannot find it.
> I found one (bin/21292) for ifconfig, but it was for two NICs with a same=
 IP. Now is a reversed case
> One NIC has two IPs.

> Here is the description:

> Due to DHCP server down, I manually configured rl0 to 192.168.0.10 for te=
mporarily use.
> In the middle of working, DHCP came back and assigned  another IP on the =
rl0, now NIC is down
> due to two conflict IP addresses.

> rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
>         options=3D8<VLAN_MTU>
>         ether 00:40:f4:d1:23:9a
>         inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
>         inet 10.10.50.126 netmask 0xffffff00 broadcast 10.10.50.255
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> plip0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500


> I tried unplumb/delete rl0, but if does not  work.
> Before the bug can be fixed, is any way to fix the IP without rebooting t=
he machine?

# ifconfig rl0 -alias 192.168.0.10

Above will cause 192.168.0.10 to be removed from the interface. For details,
see ifconfig(1).

HTH
=2D-=20
Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

=E2=80=9CFew false ideas have more firmly gripped the minds of so many
intelligent men than the one that, if they just tried, they could
invent a cipher that no one could break.=E2=80=9D (David Kahn, "The
Codebreakers", 1967)

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iQIcBAEBCgAGBQJMWxnWAAoJEMdGz6nnT6SwctsP/0RQxO2ZKFBkRwSGk/u1VuEn
SGr5Yl+7PpnZSzgGa9iowBkig9bSEtOXkERilUASW/nLH2DUd1w9rag3aZJxLIzg
ZmFI1AFL2Wr+CmjkCnivkV8pBKow1nJGDlqxLFGBf9uZk+BhAZ5GTTlBS1WM+aSx
K5ZYbySxhgb9sgxWUNcoavO5Nx2u4Y98q/AWgNvpochuiwNuEXqPyy/NoR1C9aZA
gvzp2v8d9eVzza6u88BemLErCtY71RdKJX1xzgqxnDJBjjBJH/xcgW2ohyeMSSrq
paO3olqkc4XoRMJP/cy1C3pT7bpZMzZ54zt4VbPRGaNVFn/uGfpOxsyoFtL76zvA
90JhbqD1cv2uzGqAKvBo8mJ45/LwgQxtS+SfW9R6WHunK4n+sVt3AMqzQCDgOQj2
dIgNLa2NAoBUeVOhdztLt2bMuJC02HDEPmK+tUy6UoexHQ9bwfFuct0BaErHgPqs
ch6MJNl3F2a5ok00naTLOh7SM//RN1jTS4FcItggnVZWNv48L0hrR5T+q5GW7Lee
5TDtO2T6owoTmI87oYksnCFsPCsMCrYkpthuL2piOZsZ28eearmpqdPRUQdBdl5r
t1I3FRPn4ZXlxy74meIbeJWvYr0B6095oed93ysQRM2nl9yUkKhSVEZ+8vOOacV3
kpbgUvkFzXi6DkVaHKWz
=WYIO
-----END PGP SIGNATURE-----
--=-=-=--



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