Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 2010 14:06:49 -0700
From:      "Guojun Jin" <gjin@ubicom.com>
To:        "Alberto Mijares" <amijaresp@gmail.com>
Cc:        questions@freebsd.org, bug-followup@freebsd.org
Subject:   RE: Ifconfig (DHCP?) configures two IPs in one IF
Message-ID:  <CB2DD11991B27C4F99935E6229450D3203950C39@STORK.scenix.com>
References:  <CB2DD11991B27C4F99935E6229450D3203950C38@STORK.scenix.com> <AANLkTikwYjK-qM6ioV5%2Bj_zFbYgtTNTe-u-C7r4EQSqw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"-alias" works, also "delete" works.=20
The 'delete: cannot have "-" in front of it, otherwise, it gives an =
improper message;

# ifconfig rl0 -delete 1.2.3.4
ifconfig: -delete: bad value

This seems telling the 1.2.3.4 is a bad value. It should say:
ifconfig: -delete -- bad option/switch

Now we know "-delete: itself is bad, not the value after it is bad.

-----Original Message-----
From: Alberto Mijares [mailto:amijaresp@gmail.com]
Sent: Thu 8/5/2010 12:24 PM
To: Guojun Jin
Cc: bug-followup@freebsd.org; questions@freebsd.org
Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF
=20
>
> rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
> =A0 =A0 =A0 =A0options=3D8<VLAN_MTU>
> =A0 =A0 =A0 =A0ether 00:40:f4:d1:23:9a
> =A0 =A0 =A0 =A0inet 192.168.0.10 netmask 0xffffff00 broadcast =
192.168.0.255
> =A0 =A0 =A0 =A0inet 10.10.50.126 netmask 0xffffff00 broadcast =
10.10.50.255
> =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX <full-duplex>)
> =A0 =A0 =A0 =A0status: active
> plip0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
>
>
> I tried unplumb/delete rl0, but if does not =A0work.
> Before the bug can be fixed, is any way to fix the IP without =
rebooting the machine?
>


Try this

# ifconfig rl0 -alias 192.168.0.10

Regards


Alberto Mijares




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