Ifconfig (DHCP?) configures two IPs in one IF
Guojun Jin
gjin at ubicom.com
Thu Aug 5 21:08:40 UTC 2010
"-alias" works, also "delete" works.
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 at gmail.com]
Sent: Thu 8/5/2010 12:24 PM
To: Guojun Jin
Cc: bug-followup at freebsd.org; questions at freebsd.org
Subject: Re: Ifconfig (DHCP?) configures two IPs in one IF
>
> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> options=8<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=8810<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 the machine?
>
Try this
# ifconfig rl0 -alias 192.168.0.10
Regards
Alberto Mijares
More information about the freebsd-questions
mailing list